Button-Symbole geändert, automatisches Zusammenfügen beim Klicken auf das Häkchen implementiert

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2023-01-14 12:57:55 +01:00
parent 34e4dde212
commit b1e071fd69
2 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>BelegScanner</groupId>
<artifactId>BelegScanner</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>
<name>BelegScanner</name>
<packaging>jar</packaging>

View File

@@ -74,9 +74,9 @@ public class DocTable extends JPanel{
buttons = new JPanel();
buttons.setLayout(new FlowLayout());
buttons.add(button("🗀",t("open folder"),ev -> openFolder(path)));
buttons.add(button("",t("open folder"),ev -> openFolder(path)));
buttons.add(joinButton = button("",t("join PDFs"),ev -> joinDocs(path)));
buttons.add(button("🖻",t("display preview"),ev -> preview(path)));
buttons.add(button("",t("display preview"),ev -> preview(path)));
buttons.add(button("",t("done"),ev -> drop(this)));
buttons.add(button("",t("drop file"),ev -> dropFile(path)));
@@ -89,6 +89,7 @@ public class DocTable extends JPanel{
* @param row
*/
private void drop(Row row) {
if (row.joinButton.isEnabled()) joinDocs(row.path);
remove(pathLabel);
remove(status);
remove(buttons);
@@ -111,6 +112,7 @@ public class DocTable extends JPanel{
* remove the join button assigned with the selected document
*/
public void removeJoinButton() {
joinButton.setEnabled(false);
buttons.remove(joinButton);
}