New Icons
@@ -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());
|
||||
|
||||
@@ -248,19 +248,24 @@ public class MainFrame extends JFrame implements ActionListener, ItemListener {
|
||||
|
||||
JMenu menuFile = new JMenu("File");
|
||||
JMenuItem miOpen = new JMenuItem("Open...");
|
||||
miOpen.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/open16.png")));
|
||||
miOpen.setActionCommand("OPEN");
|
||||
miOpen.addActionListener(this);
|
||||
JMenuItem miSave = new JMenuItem("Save");
|
||||
miSave.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||
miSave.setActionCommand("SAVE");
|
||||
miSave.addActionListener(this);
|
||||
JMenuItem miSaveAs = new JMenuItem("Save as...");
|
||||
miSaveAs.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||
miSaveAs.setActionCommand("SAVEAS");
|
||||
miSaveAs.addActionListener(this);
|
||||
JMenuItem miExport = new JMenuItem("Export as ActionScript...");
|
||||
miExport.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exportas16.png")));
|
||||
miExport.setActionCommand("EXPORT");
|
||||
miExport.addActionListener(this);
|
||||
|
||||
JMenuItem miExportPCode = new JMenuItem("Export as PCode...");
|
||||
miExportPCode.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exportpc16.png")));
|
||||
miExportPCode.setActionCommand("EXPORTPCODE");
|
||||
miExportPCode.addActionListener(this);
|
||||
menuFile.add(miOpen);
|
||||
@@ -270,6 +275,7 @@ public class MainFrame extends JFrame implements ActionListener, ItemListener {
|
||||
menuFile.add(miExportPCode);
|
||||
menuFile.addSeparator();
|
||||
JMenuItem miClose = new JMenuItem("Exit");
|
||||
miClose.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exit16.png")));
|
||||
miClose.setActionCommand("EXIT");
|
||||
miClose.addActionListener(this);
|
||||
menuFile.add(miClose);
|
||||
@@ -351,7 +357,7 @@ public class MainFrame extends JFrame implements ActionListener, ItemListener {
|
||||
}
|
||||
}
|
||||
if (e.getActionCommand().equals("SAVEAS")) {
|
||||
if (Main.saveFileDialog(this)) {
|
||||
if (Main.saveFileDialog()) {
|
||||
setTitle(Main.applicationName + " - " + Main.getFileTitle());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,15 +147,19 @@ public class MainFrame extends JFrame implements TreeSelectionListener, ActionLi
|
||||
|
||||
JMenu menuFile = new JMenu("File");
|
||||
JMenuItem miOpen = new JMenuItem("Open...");
|
||||
miOpen.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/open16.png")));
|
||||
miOpen.setActionCommand("OPEN");
|
||||
miOpen.addActionListener(this);
|
||||
JMenuItem miSave = new JMenuItem("Save");
|
||||
miSave.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||
miSave.setActionCommand("SAVE");
|
||||
miSave.addActionListener(this);
|
||||
JMenuItem miSaveAs = new JMenuItem("Save as...");
|
||||
miSaveAs.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||
miSaveAs.setActionCommand("SAVEAS");
|
||||
miSaveAs.addActionListener(this);
|
||||
JMenuItem miExport = new JMenuItem("Export...");
|
||||
miExport.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exportas16.png")));
|
||||
miExport.setActionCommand("EXPORT");
|
||||
miExport.addActionListener(this);
|
||||
menuFile.add(miOpen);
|
||||
@@ -164,6 +168,7 @@ public class MainFrame extends JFrame implements TreeSelectionListener, ActionLi
|
||||
//menuFile.add(miExport);
|
||||
menuFile.addSeparator();
|
||||
JMenuItem miClose = new JMenuItem("Exit");
|
||||
miClose.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exit16.png")));
|
||||
miClose.setActionCommand("EXIT");
|
||||
miClose.addActionListener(this);
|
||||
menuFile.add(miClose);
|
||||
@@ -289,7 +294,7 @@ public class MainFrame extends JFrame implements TreeSelectionListener, ActionLi
|
||||
}
|
||||
}
|
||||
if (e.getActionCommand().equals("SAVEAS")) {
|
||||
if (Main.saveFileDialog(this)) {
|
||||
if (Main.saveFileDialog()) {
|
||||
setTitle(Main.applicationName + " - " + Main.getFileTitle());
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 833 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 801 B |
|
After Width: | Height: | Size: 815 B |
|
After Width: | Height: | Size: 859 B |
|
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 732 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 908 B |
@@ -121,8 +121,8 @@ public class ProxyFrame extends JFrame implements ActionListener, CatchedListene
|
||||
buttonsPanel3.setLayout(new FlowLayout());
|
||||
buttonsPanel3.add(new JLabel("Sniff:"));
|
||||
buttonsPanel3.add(sniffSWFCheckBox);
|
||||
buttonsPanel3.add(sniffJSCheckBox);
|
||||
buttonsPanel3.add(sniffXMLCheckBox);
|
||||
//buttonsPanel3.add(sniffJSCheckBox);
|
||||
//buttonsPanel3.add(sniffXMLCheckBox);
|
||||
|
||||
buttonsPanel23.add(buttonsPanel2);
|
||||
buttonsPanel23.add(buttonsPanel3);
|
||||
|
||||