New Icons
@@ -247,8 +247,10 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static boolean saveFileDialog(Frame f) {
|
public static boolean saveFileDialog() {
|
||||||
JFileChooser fc = new JFileChooser();
|
JFileChooser fc = new JFileChooser();
|
||||||
|
JFrame f=new JFrame();
|
||||||
|
View.setWindowIcon(f);
|
||||||
int returnVal = fc.showSaveDialog(f);
|
int returnVal = fc.showSaveDialog(f);
|
||||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||||
File file = fc.getSelectedFile();
|
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) {
|
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||||
File selfile = fc.getSelectedFile();
|
File selfile = fc.getSelectedFile();
|
||||||
Main.openFile(selfile.getAbsolutePath());
|
Main.openFile(selfile.getAbsolutePath());
|
||||||
|
|||||||
@@ -248,19 +248,24 @@ public class MainFrame extends JFrame implements ActionListener, ItemListener {
|
|||||||
|
|
||||||
JMenu menuFile = new JMenu("File");
|
JMenu menuFile = new JMenu("File");
|
||||||
JMenuItem miOpen = new JMenuItem("Open...");
|
JMenuItem miOpen = new JMenuItem("Open...");
|
||||||
|
miOpen.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/open16.png")));
|
||||||
miOpen.setActionCommand("OPEN");
|
miOpen.setActionCommand("OPEN");
|
||||||
miOpen.addActionListener(this);
|
miOpen.addActionListener(this);
|
||||||
JMenuItem miSave = new JMenuItem("Save");
|
JMenuItem miSave = new JMenuItem("Save");
|
||||||
|
miSave.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||||
miSave.setActionCommand("SAVE");
|
miSave.setActionCommand("SAVE");
|
||||||
miSave.addActionListener(this);
|
miSave.addActionListener(this);
|
||||||
JMenuItem miSaveAs = new JMenuItem("Save as...");
|
JMenuItem miSaveAs = new JMenuItem("Save as...");
|
||||||
|
miSaveAs.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||||
miSaveAs.setActionCommand("SAVEAS");
|
miSaveAs.setActionCommand("SAVEAS");
|
||||||
miSaveAs.addActionListener(this);
|
miSaveAs.addActionListener(this);
|
||||||
JMenuItem miExport = new JMenuItem("Export as ActionScript...");
|
JMenuItem miExport = new JMenuItem("Export as ActionScript...");
|
||||||
|
miExport.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exportas16.png")));
|
||||||
miExport.setActionCommand("EXPORT");
|
miExport.setActionCommand("EXPORT");
|
||||||
miExport.addActionListener(this);
|
miExport.addActionListener(this);
|
||||||
|
|
||||||
JMenuItem miExportPCode = new JMenuItem("Export as PCode...");
|
JMenuItem miExportPCode = new JMenuItem("Export as PCode...");
|
||||||
|
miExportPCode.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exportpc16.png")));
|
||||||
miExportPCode.setActionCommand("EXPORTPCODE");
|
miExportPCode.setActionCommand("EXPORTPCODE");
|
||||||
miExportPCode.addActionListener(this);
|
miExportPCode.addActionListener(this);
|
||||||
menuFile.add(miOpen);
|
menuFile.add(miOpen);
|
||||||
@@ -270,6 +275,7 @@ public class MainFrame extends JFrame implements ActionListener, ItemListener {
|
|||||||
menuFile.add(miExportPCode);
|
menuFile.add(miExportPCode);
|
||||||
menuFile.addSeparator();
|
menuFile.addSeparator();
|
||||||
JMenuItem miClose = new JMenuItem("Exit");
|
JMenuItem miClose = new JMenuItem("Exit");
|
||||||
|
miClose.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exit16.png")));
|
||||||
miClose.setActionCommand("EXIT");
|
miClose.setActionCommand("EXIT");
|
||||||
miClose.addActionListener(this);
|
miClose.addActionListener(this);
|
||||||
menuFile.add(miClose);
|
menuFile.add(miClose);
|
||||||
@@ -351,7 +357,7 @@ public class MainFrame extends JFrame implements ActionListener, ItemListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (e.getActionCommand().equals("SAVEAS")) {
|
if (e.getActionCommand().equals("SAVEAS")) {
|
||||||
if (Main.saveFileDialog(this)) {
|
if (Main.saveFileDialog()) {
|
||||||
setTitle(Main.applicationName + " - " + Main.getFileTitle());
|
setTitle(Main.applicationName + " - " + Main.getFileTitle());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,15 +147,19 @@ public class MainFrame extends JFrame implements TreeSelectionListener, ActionLi
|
|||||||
|
|
||||||
JMenu menuFile = new JMenu("File");
|
JMenu menuFile = new JMenu("File");
|
||||||
JMenuItem miOpen = new JMenuItem("Open...");
|
JMenuItem miOpen = new JMenuItem("Open...");
|
||||||
|
miOpen.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/open16.png")));
|
||||||
miOpen.setActionCommand("OPEN");
|
miOpen.setActionCommand("OPEN");
|
||||||
miOpen.addActionListener(this);
|
miOpen.addActionListener(this);
|
||||||
JMenuItem miSave = new JMenuItem("Save");
|
JMenuItem miSave = new JMenuItem("Save");
|
||||||
|
miSave.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||||
miSave.setActionCommand("SAVE");
|
miSave.setActionCommand("SAVE");
|
||||||
miSave.addActionListener(this);
|
miSave.addActionListener(this);
|
||||||
JMenuItem miSaveAs = new JMenuItem("Save as...");
|
JMenuItem miSaveAs = new JMenuItem("Save as...");
|
||||||
|
miSaveAs.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/save16.png")));
|
||||||
miSaveAs.setActionCommand("SAVEAS");
|
miSaveAs.setActionCommand("SAVEAS");
|
||||||
miSaveAs.addActionListener(this);
|
miSaveAs.addActionListener(this);
|
||||||
JMenuItem miExport = new JMenuItem("Export...");
|
JMenuItem miExport = new JMenuItem("Export...");
|
||||||
|
miExport.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exportas16.png")));
|
||||||
miExport.setActionCommand("EXPORT");
|
miExport.setActionCommand("EXPORT");
|
||||||
miExport.addActionListener(this);
|
miExport.addActionListener(this);
|
||||||
menuFile.add(miOpen);
|
menuFile.add(miOpen);
|
||||||
@@ -164,6 +168,7 @@ public class MainFrame extends JFrame implements TreeSelectionListener, ActionLi
|
|||||||
//menuFile.add(miExport);
|
//menuFile.add(miExport);
|
||||||
menuFile.addSeparator();
|
menuFile.addSeparator();
|
||||||
JMenuItem miClose = new JMenuItem("Exit");
|
JMenuItem miClose = new JMenuItem("Exit");
|
||||||
|
miClose.setIcon(new ImageIcon(View.loadImage("com/jpexs/asdec/gui/graphics/exit16.png")));
|
||||||
miClose.setActionCommand("EXIT");
|
miClose.setActionCommand("EXIT");
|
||||||
miClose.addActionListener(this);
|
miClose.addActionListener(this);
|
||||||
menuFile.add(miClose);
|
menuFile.add(miClose);
|
||||||
@@ -289,7 +294,7 @@ public class MainFrame extends JFrame implements TreeSelectionListener, ActionLi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (e.getActionCommand().equals("SAVEAS")) {
|
if (e.getActionCommand().equals("SAVEAS")) {
|
||||||
if (Main.saveFileDialog(this)) {
|
if (Main.saveFileDialog()) {
|
||||||
setTitle(Main.applicationName + " - " + Main.getFileTitle());
|
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.setLayout(new FlowLayout());
|
||||||
buttonsPanel3.add(new JLabel("Sniff:"));
|
buttonsPanel3.add(new JLabel("Sniff:"));
|
||||||
buttonsPanel3.add(sniffSWFCheckBox);
|
buttonsPanel3.add(sniffSWFCheckBox);
|
||||||
buttonsPanel3.add(sniffJSCheckBox);
|
//buttonsPanel3.add(sniffJSCheckBox);
|
||||||
buttonsPanel3.add(sniffXMLCheckBox);
|
//buttonsPanel3.add(sniffXMLCheckBox);
|
||||||
|
|
||||||
buttonsPanel23.add(buttonsPanel2);
|
buttonsPanel23.add(buttonsPanel2);
|
||||||
buttonsPanel23.add(buttonsPanel3);
|
buttonsPanel23.add(buttonsPanel3);
|
||||||
|
|||||||