[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/gui AboutAction.java,1.2,1.3 DecompileAction.java
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2002-07-15 22:54:52
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui
In directory usw-pr-cvs1:/tmp/cvs-serv11640/com/ociweb/jarspy/gui
Modified Files:
AboutAction.java DecompileAction.java JarSpyGUI.java
ViewJarContentsAction.java
Log Message:
properly dispose modal dialogs so they may be
garbage collected
Index: AboutAction.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/AboutAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AboutAction.java 19 Jun 2002 01:19:10 -0000 1.2
--- AboutAction.java 15 Jul 2002 22:54:48 -0000 1.3
***************
*** 35,39 ****
public void actionPerformed(ActionEvent ae) {
! new AboutJarSpy(jarSpyGUI).setVisible(true);
}
}
--- 35,41 ----
public void actionPerformed(ActionEvent ae) {
! AboutJarSpy ajs = new AboutJarSpy(jarSpyGUI);
! ajs.setVisible(true);
! ajs.dispose();
}
}
Index: DecompileAction.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/DecompileAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DecompileAction.java 19 Jun 2002 01:19:10 -0000 1.2
--- DecompileAction.java 15 Jul 2002 22:54:48 -0000 1.3
***************
*** 22,26 ****
import com.ociweb.jarspy.JarInspector;
! import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
--- 22,27 ----
import com.ociweb.jarspy.JarInspector;
! import javax.swing.JList;
! import javax.swing.JOptionPane;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
***************
*** 66,78 ****
// new java.io.PrintWriter(System.out),
// null);
! new DecompileGUI(jarSpyGUI,
! className,
! pathToJarFile,
! jarInspector).setVisible(true);
} catch (Exception exc) {
JOptionPane.showMessageDialog(jarSpyGUI,
! "ERROR: " + exc.getMessage(),
! "Decompile Failed",
! JOptionPane.ERROR_MESSAGE);
}
}
--- 67,81 ----
// new java.io.PrintWriter(System.out),
// null);
! DecompileGUI dg = new DecompileGUI(jarSpyGUI,
! className,
! pathToJarFile,
! jarInspector);
! dg.setVisible(true);
! dg.dispose();
} catch (Exception exc) {
JOptionPane.showMessageDialog(jarSpyGUI,
! "ERROR: " + exc.getMessage(),
! "Decompile Failed",
! JOptionPane.ERROR_MESSAGE);
}
}
Index: JarSpyGUI.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/JarSpyGUI.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** JarSpyGUI.java 15 Jul 2002 22:29:06 -0000 1.25
--- JarSpyGUI.java 15 Jul 2002 22:54:49 -0000 1.26
***************
*** 302,306 ****
JOptionPane.INFORMATION_MESSAGE);
} else {
! new ManifestDialog(this, manifest).setVisible(true);
}
}
--- 302,308 ----
JOptionPane.INFORMATION_MESSAGE);
} else {
! ManifestDialog md = new ManifestDialog(this, manifest);
! md.setVisible(true);
! md.dispose();
}
}
Index: ViewJarContentsAction.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/ViewJarContentsAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ViewJarContentsAction.java 13 Jun 2002 02:58:15 -0000 1.1
--- ViewJarContentsAction.java 15 Jul 2002 22:54:49 -0000 1.2
***************
*** 64,67 ****
--- 64,68 ----
dlg.pack();
dlg.setVisible(true);
+ dlg.dispose();
} catch (IOException exc) {
JOptionPane.showMessageDialog(null,
|