[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/gui/classdetails ClassDetailTabbedPane.java,1.3,1
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2002-09-13 23:13:16
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/classdetails
In directory usw-pr-cvs1:/tmp/cvs-serv12534/src/com/ociweb/jarspy/gui/classdetails
Modified Files:
ClassDetailTabbedPane.java ClassDetailsPanel.java
ConstantPoolTab.java
Log Message:
first cut of using new constantpool api
Index: ClassDetailTabbedPane.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/classdetails/ClassDetailTabbedPane.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ClassDetailTabbedPane.java 1 Sep 2002 00:38:35 -0000 1.3
--- ClassDetailTabbedPane.java 13 Sep 2002 23:13:13 -0000 1.4
***************
*** 50,53 ****
--- 50,54 ----
public void setClassInfo(final ClassInfo classInfo) {
+
// update all of the tabs
// use the event thread since these componenets will
Index: ClassDetailsPanel.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/classdetails/ClassDetailsPanel.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ClassDetailsPanel.java 21 Jul 2002 02:03:47 -0000 1.1
--- ClassDetailsPanel.java 13 Sep 2002 23:13:13 -0000 1.2
***************
*** 50,54 ****
add(new JScrollPane(new NoClassSelectedPanel()), NO_CLASS_SELECTED);
! add(new JScrollPane(tabbedPane), CLASS_DETAIL_PANEL);
cardLayout.show(this, NO_CLASS_SELECTED);
--- 50,54 ----
add(new JScrollPane(new NoClassSelectedPanel()), NO_CLASS_SELECTED);
! add(tabbedPane, CLASS_DETAIL_PANEL);
cardLayout.show(this, NO_CLASS_SELECTED);
Index: ConstantPoolTab.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/classdetails/ConstantPoolTab.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ConstantPoolTab.java 23 Aug 2002 02:44:37 -0000 1.2
--- ConstantPoolTab.java 13 Sep 2002 23:13:13 -0000 1.3
***************
*** 21,25 ****
import com.ociweb.jarspy.ClassInfo;
! import javax.swing.JLabel;
/**
--- 21,26 ----
import com.ociweb.jarspy.ClassInfo;
! import javax.swing.*;
! import java.awt.*;
/**
***************
*** 30,39 ****
public class ConstantPoolTab extends AbstractClassDetailTab {
public ConstantPoolTab() {
super("Constant Pool");
! add(new JLabel("Not Implemented Yet."));
}
public void setClassInfo(ClassInfo classInfo) {
}
}
--- 31,49 ----
public class ConstantPoolTab extends AbstractClassDetailTab {
+ private JTextArea txtArea = new JTextArea();
+
public ConstantPoolTab() {
super("Constant Pool");
! setLayout(new BorderLayout());
! Font f = txtArea.getFont();
! Font fixedWidth = new Font("Courier", f.getStyle(), f.getSize() + 2);
! txtArea.setFont(fixedWidth);
! txtArea.setEditable(false);
! add(BorderLayout.CENTER, new JScrollPane(txtArea));
}
public void setClassInfo(ClassInfo classInfo) {
+ txtArea.setText(classInfo.getConstantPool().toString());
+ txtArea.setCaretPosition(0);
}
}
|