}
protected void start() {
try {
getOutput().setText("");
ImagePrinter ip = new ImagePrinter(
getFileName().getText(),
getPageNumbers().isSelected(),
false,
((Integer) getColumns().getSelectedItem()).intValue(),
(getMatchingRows().isSelected() ? 0 : ((Integer) getRows().getSelectedItem()).intValue()),
getTextPosition()
);
File cdir = new File(".");
String[] files = cdir.list();
for(String f : files) {
if(f.toLowerCase().endsWith(".jpg")) {
getOutput().setText(getOutput().getText() + f + System.getProperty("line.separator"));
ip.addImage(f);
}
}
ip.close();
JOptionPane.showMessageDialog(this, "Fertig!", ":-)", JOptionPane.INFORMATION_MESSAGE);
} catch (Exception e) {
e.printStackTrace();
}
}