[jsword-svn] common/java/config/org/crosswire/common/config/swing s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sat Feb 12 18:07:38 MST 2005
Update of /cvs/jsword/common/java/config/org/crosswire/common/config/swing
In directory www.crosswire.org:/tmp/cvs-serv21001/java/config/org/crosswire/common/config/swing
Modified Files:
AdvancedConfigEditor.java TreeConfigEditor.java
Log Message:
Made all JTrees have explicit line style under Java Look and Feel
Index: AdvancedConfigEditor.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/swing/AdvancedConfigEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AdvancedConfigEditor.java 15 Jan 2005 12:05:33 -0000 1.5
--- AdvancedConfigEditor.java 13 Feb 2005 01:07:36 -0000 1.6
***************
*** 69,78 ****
scroll.setViewportView(tree);
- tree.putClientProperty("JTree.lineStyle", "Angled"); //$NON-NLS-1$//$NON-NLS-2$
tree.setBackground(bg);
tree.setCellRenderer(render);
tree.setShowsRootHandles(true);
tree.setRootVisible(false);
! tree.setModel(ctm);
tree.setSelectionRow(0);
tree.setEditable(true);
--- 69,78 ----
scroll.setViewportView(tree);
tree.setBackground(bg);
+ tree.setModel(ctm);
tree.setCellRenderer(render);
tree.setShowsRootHandles(true);
tree.setRootVisible(false);
! tree.putClientProperty("JTree.lineStyle", "None"); //$NON-NLS-1$//$NON-NLS-2$
tree.setSelectionRow(0);
tree.setEditable(true);
Index: TreeConfigEditor.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/swing/TreeConfigEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TreeConfigEditor.java 15 Jan 2005 12:05:33 -0000 1.5
--- TreeConfigEditor.java 13 Feb 2005 01:07:36 -0000 1.6
***************
*** 81,89 ****
dtcr.setLeafIcon(TASK_ICON_SMALL);
tree.setCellRenderer(dtcr);
tree.setPreferredSize(new Dimension(150, 150));
! tree.setShowsRootHandles(true);
tree.setRootVisible(false);
! tree.setModel(ctm);
tree.setSelectionRow(0);
tree.addTreeSelectionListener(new TreeSelectionListener()
--- 81,91 ----
dtcr.setLeafIcon(TASK_ICON_SMALL);
+ // These settings will need to change if we have a true tree.
+ tree.setModel(ctm);
tree.setCellRenderer(dtcr);
tree.setPreferredSize(new Dimension(150, 150));
! tree.setShowsRootHandles(false);
tree.setRootVisible(false);
! tree.putClientProperty("JTree.lineStyle", "None"); //$NON-NLS-1$ //$NON-NLS-2$
tree.setSelectionRow(0);
tree.addTreeSelectionListener(new TreeSelectionListener()
More information about the jsword-svn
mailing list