New Icons

This commit is contained in:
Jindra Pet��k
2011-07-30 16:39:24 +02:00
parent 0d2a0d4350
commit fd853e51bf
15 changed files with 21 additions and 6 deletions
+6 -2
View File
@@ -247,8 +247,10 @@ public class Main {
}
public static boolean saveFileDialog(Frame f) {
public static boolean saveFileDialog() {
JFileChooser fc = new JFileChooser();
JFrame f=new JFrame();
View.setWindowIcon(f);
int returnVal = fc.showSaveDialog(f);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
@@ -279,7 +281,9 @@ public class Main {
}
});
int returnVal = fc.showOpenDialog(null);
JFrame f=new JFrame();
View.setWindowIcon(f);
int returnVal = fc.showOpenDialog(f);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File selfile = fc.getSelectedFile();
Main.openFile(selfile.getAbsolutePath());