AS3: Default method tab is code tab

Version set to alpha10
This commit is contained in:
Jindra Petk
2011-07-13 11:16:57 +02:00
parent 02f21eef1c
commit 991b08d8bc
4 changed files with 10 additions and 5 deletions

View File

@@ -52,8 +52,9 @@ public class Main {
public static String file;
public static String maskURL;
public static SWF swf;
public static final String version = "alpha9";
public static final String version = "alpha10";
public static String applicationName = "JP ActionScript Decompiler v." + version;
public static String shortApplicationName = "JPAD v."+version;
public static LoadingDialog loadingDialog = new LoadingDialog();
public static ModeFrame modeFrame;
private static boolean working = false;
@@ -195,7 +196,10 @@ public class Main {
DEBUG_COPY = false;
//DEBUG_COPY=true;
} catch (Exception ex) {
ex.printStackTrace();
if(DEBUG_MODE)
{
ex.printStackTrace();
}
JOptionPane.showMessageDialog(null, "Cannot load SWF file.");
loadingDialog.setVisible(false);
return false;

View File

@@ -37,7 +37,8 @@ public class MethodTraitDetailPanel extends JTabbedPane implements TraitDetail {
methodInfoPanel=new MethodInfoPanel();
addTab("MethodInfo",methodInfoPanel);
addTab("MethodBody Code", methodCodePanel);
addTab("MethodBody params", new JScrollPane(methodBodyParamsPanel));
addTab("MethodBody params", new JScrollPane(methodBodyParamsPanel));
setSelectedIndex(1);
}
public boolean save() {

View File

@@ -40,7 +40,7 @@ public class LoadingDialog extends JFrame implements ImageObserver {
*/
public LoadingDialog() {
setResizable(false);
setTitle(Main.applicationName);
setTitle(Main.shortApplicationName);
setSize(300, 150);
setLayout(new BorderLayout());

View File

@@ -62,7 +62,7 @@ public class ModeFrame extends JFrame implements ActionListener {
cont.add(exitButton);
View.centerScreen(this);
View.setWindowIcon(this);
setTitle(Main.applicationName);
setTitle(Main.shortApplicationName);
this.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {