[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/gui JarSpyGUI.java,1.39,1.40 StatusBar.java,1.2,1
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2002-09-27 00:38:41
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui
In directory usw-pr-cvs1:/tmp/cvs-serv19666/src/com/ociweb/jarspy/gui
Modified Files:
JarSpyGUI.java StatusBar.java
Log Message:
fix status bar to update itself properly when new jar is opened
Index: JarSpyGUI.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/JarSpyGUI.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** JarSpyGUI.java 27 Sep 2002 00:29:41 -0000 1.39
--- JarSpyGUI.java 27 Sep 2002 00:38:38 -0000 1.40
***************
*** 116,119 ****
--- 116,120 ----
addClassSelectionListener(sb);
+ addJarFileSelectionListener(sb);
cont.add(BorderLayout.SOUTH, sb);
cont.add(BorderLayout.CENTER, splitter);
Index: StatusBar.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/StatusBar.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** StatusBar.java 16 Sep 2002 22:03:21 -0000 1.2
--- StatusBar.java 27 Sep 2002 00:38:38 -0000 1.3
***************
*** 25,28 ****
--- 25,29 ----
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
+ import java.io.File;
import com.ociweb.jarspy.ClassInfo;
import com.ociweb.gui.MemoryMeter;
***************
*** 31,35 ****
* @version $Id$
*/
! public class StatusBar extends JPanel implements ClassSelectionListener {
private JLabel statusLabel = new JLabel("JarSpy");
--- 32,37 ----
* @version $Id$
*/
! public class StatusBar extends JPanel
! implements ClassSelectionListener, JarFileSelectionListener {
private JLabel statusLabel = new JLabel("JarSpy");
***************
*** 58,61 ****
--- 60,67 ----
classInfo.getClassName() :
"JarSpy");
+ }
+
+ public void jarFileSelectionChanged(File jarFile) {
+ statusLabel.setText("JarSpy");
}
}
|