[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/gui JarSpyGUI.java,1.40,1.41
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2002-10-17 23:29:08
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui
In directory usw-pr-cvs1:/tmp/cvs-serv30556/src/com/ociweb/jarspy/gui
Modified Files:
JarSpyGUI.java
Log Message:
added some Kunststoff support
Index: JarSpyGUI.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/JarSpyGUI.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** JarSpyGUI.java 27 Sep 2002 00:38:38 -0000 1.40
--- JarSpyGUI.java 17 Oct 2002 23:29:05 -0000 1.41
***************
*** 176,202 ****
private void createActions() {
actions.put(ActionNames.OPEN_ARCHIVE_ACTION,
! new OpenArchiveAction(this));
actions.put(ActionNames.EXIT_ACTION,
! new ExitAction(this));
actions.put(ActionNames.EXTRACT_ARCHIVE_ACTION,
! new ExtractArchiveAction(this, jarInspector));
actions.put(ActionNames.VIEW_MANIFEST_ACTION,
! new ViewManifestAction(this, jarInspector));
actions.put(ActionNames.ABOUT_ACTION,
! new AboutAction(this));
actions.put(ActionNames.DECOMPILE_ACTION,
! new DecompileAction(this, classTree, jarInspector));
actions.put(ActionNames.VIEW_JAR_CONTENTS_ACTION,
! new ViewJarContentsAction(this));
actions.put(ActionNames.SHOW_JAR_LIST_VIEW,
! new ChangeJarViewerComponentAction(this,
! ActionNames.SHOW_JAR_LIST_VIEW,
! classList,
! "/com/ociweb/jarspy/gui/images/list_mode.gif"));
actions.put(ActionNames.SHOW_JAR_TREE_VIEW,
! new ChangeJarViewerComponentAction(this,
! ActionNames.SHOW_JAR_TREE_VIEW,
! classTree,
! "/com/ociweb/jarspy/gui/images/tree_mode.gif"));
}
--- 176,202 ----
private void createActions() {
actions.put(ActionNames.OPEN_ARCHIVE_ACTION,
! new OpenArchiveAction(this));
actions.put(ActionNames.EXIT_ACTION,
! new ExitAction(this));
actions.put(ActionNames.EXTRACT_ARCHIVE_ACTION,
! new ExtractArchiveAction(this, jarInspector));
actions.put(ActionNames.VIEW_MANIFEST_ACTION,
! new ViewManifestAction(this, jarInspector));
actions.put(ActionNames.ABOUT_ACTION,
! new AboutAction(this));
actions.put(ActionNames.DECOMPILE_ACTION,
! new DecompileAction(this, classTree, jarInspector));
actions.put(ActionNames.VIEW_JAR_CONTENTS_ACTION,
! new ViewJarContentsAction(this));
actions.put(ActionNames.SHOW_JAR_LIST_VIEW,
! new ChangeJarViewerComponentAction(this,
! ActionNames.SHOW_JAR_LIST_VIEW,
! classList,
! "/com/ociweb/jarspy/gui/images/list_mode.gif"));
actions.put(ActionNames.SHOW_JAR_TREE_VIEW,
! new ChangeJarViewerComponentAction(this,
! ActionNames.SHOW_JAR_TREE_VIEW,
! classTree,
! "/com/ociweb/jarspy/gui/images/tree_mode.gif"));
}
***************
*** 440,449 ****
} catch (ClassNotFoundException e) {
JOptionPane.showMessageDialog(null,
! "JarSpy requires Java Runtime 1.3 or greater.",
! "Incompatible VM",
! JOptionPane.ERROR_MESSAGE);
System.exit(0);
}
new JarSpyGUI();
}
--- 440,456 ----
} catch (ClassNotFoundException e) {
JOptionPane.showMessageDialog(null,
! "JarSpy requires Java Runtime 1.3 or greater.",
! "Incompatible VM",
! JOptionPane.ERROR_MESSAGE);
System.exit(0);
}
+ // try to setup the Kunststoff plaf
+ try {
+ UIManager.installLookAndFeel("Kunststoff",
+ "com.incors.plaf.kunststoff.KunststoffLookAndFeel");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
new JarSpyGUI();
}
|