Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions
In directory usw-pr-cvs1:/tmp/cvs-serv15796
Modified Files:
ShowTable.java
Log Message:
changed column size
Index: ShowTable.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/ShowTable.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ShowTable.java 31 Aug 2002 08:39:41 -0000 1.1
--- ShowTable.java 3 Sep 2002 17:50:18 -0000 1.2
***************
*** 46,49 ****
--- 46,50 ----
import java.util.ResourceBundle;
import org.openide.util.NbBundle;
+ import javax.swing.JTable;
public class ShowTable extends NodeAction {
***************
*** 55,60 ****
return false;
int type=((PSelectorNode) activatedNodes[0]).getType();
! return InterfaceRepository.hasAlloc(type) ||
! InterfaceRepository.hasCPU(type)||InterfaceRepository.hasMon(type);
}
--- 56,64 ----
return false;
int type=((PSelectorNode) activatedNodes[0]).getType();
! if (! (InterfaceRepository.hasAlloc(type) ||
! InterfaceRepository.hasCPU(type) ||
! InterfaceRepository.hasMon(type)) )
! return false;
! return ! activatedNodes[0].isLeaf();
}
***************
*** 77,80 ****
--- 81,88 ----
MonStatProperty.addProperties(set, null);
view.setProperties(set.getProperties());
+ int colCount=set.getProperties().length;
+ if (colCount<5)
+ for (int i=0; i<colCount; i++)
+ view.setTableColumnPreferredWidth(i, 80);
}
}
***************
*** 95,98 ****
--- 103,109 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:50:18 petrul
+ * changed column size
+ *
* Revision 1.1 2002/08/31 08:39:41 petrul
* action Show Table
|