[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/eyes/tools/java/de/tub/eyes/gui/customelements
NodeListViewer.java, 1.3, 1.4
Till Wimmer
twimmer at users.sourceforge.net
Thu May 18 09:31:07 PDT 2006
Update of /cvsroot/tinyos/tinyos-1.x/contrib/eyes/tools/java/de/tub/eyes/gui/customelements
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9053
Modified Files:
NodeListViewer.java
Log Message:
simplified for putting in ScrollPane
Index: NodeListViewer.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/eyes/tools/java/de/tub/eyes/gui/customelements/NodeListViewer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** NodeListViewer.java 4 Nov 2005 05:05:13 -0000 1.3
--- NodeListViewer.java 18 May 2006 16:31:05 -0000 1.4
***************
*** 52,56 ****
*/
public NodeListViewer() {
! layout = new FormLayout("l:100dlu", "p,3dlu,t:200dlu");
cc = new CellConstraints();
builder = new PanelBuilder(layout);
--- 52,56 ----
*/
public NodeListViewer() {
! layout = new FormLayout("p", "p,3dlu,p");
cc = new CellConstraints();
builder = new PanelBuilder(layout);
***************
*** 59,67 ****
nodeList = new JList(listModel);
nodeList.addListSelectionListener(this);
! // nodeList.addMouseListener(this);
! nodeList.setPrototypeCellValue("Index 1234567890123456789");
! //nodeList.setBorder(BorderFactory.createEmptyBorder(2, 0, 2, 0));
! timer = new javax.swing.Timer(1000, this);
! timer.start();
selection = new Selection();
--- 59,65 ----
nodeList = new JList(listModel);
nodeList.addListSelectionListener(this);
!
! //timer = new javax.swing.Timer(1000, this);
! //timer.start();
selection = new Selection();
***************
*** 75,79 ****
public Component buildUI() {
builder.addLabel("Select for Oscope:", cc.xy(1,1));
! builder.add(nodeList, cc.xy(1, 3));
return builder.getPanel();
}
--- 73,78 ----
public Component buildUI() {
builder.addLabel("Select for Oscope:", cc.xy(1,1));
! builder.add(nodeList,cc.xy(1, 3));
! nodeList .setPreferredSize(new java.awt.Dimension(80, 400));
return builder.getPanel();
}
***************
*** 149,153 ****
}
}
-
}
--- 148,151 ----
More information about the Tinyos-contrib-commits
mailing list