summaryrefslogtreecommitdiff
path: root/javax/swing/tree
diff options
context:
space:
mode:
authorLillian Angel <langel@redhat.com>2005-08-17 13:46:28 +0000
committerLillian Angel <langel@redhat.com>2005-08-17 13:46:28 +0000
commitda23dc65846a343e2cefd32a79c853b14b7f9646 (patch)
treebb5d4d64f0054f97df013b186aba73113538ac07 /javax/swing/tree
parent5f33549d2c1d7ff48a81fdbbb711dc4c4d83148d (diff)
downloadclasspath-da23dc65846a343e2cefd32a79c853b14b7f9646.tar.gz
2005-08-17 Lillian Angel <langel@redhat.com>
* java/awt/FontMetrics.java (charWidth): Reversed Roman's patch, was not compiling. * javax/swing/tree/DefaultTreeCellRenderer.java (getTreeCellRendererComponent): Set Opaque to true for painting reasons
Diffstat (limited to 'javax/swing/tree')
-rw-r--r--javax/swing/tree/DefaultTreeCellRenderer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/javax/swing/tree/DefaultTreeCellRenderer.java b/javax/swing/tree/DefaultTreeCellRenderer.java
index c3d96e297..9c506a604 100644
--- a/javax/swing/tree/DefaultTreeCellRenderer.java
+++ b/javax/swing/tree/DefaultTreeCellRenderer.java
@@ -391,7 +391,7 @@ public class DefaultTreeCellRenderer
this.selected = selected;
this.hasFocus = hasFocus;
setHorizontalAlignment(LEFT);
- setOpaque(false);
+ setOpaque(true);
setVerticalAlignment(TOP);
setEnabled(true);
super.setFont(UIManager.getLookAndFeelDefaults().getFont("Tree.font"));
@@ -400,13 +400,13 @@ public class DefaultTreeCellRenderer
{
super.setBackground(getBackgroundSelectionColor());
setForeground(getTextSelectionColor());
- setBorder(UIManager.getLookAndFeelDefaults().getBorder("Tree.selectionBorder"));
+ setBorder(UIManager.getLookAndFeelDefaults().getBorder("Tree.selectionBorder"));
}
else
{
super.setBackground(getBackgroundNonSelectionColor());
setForeground(getTextNonSelectionColor());
- setBorder(UIManager.getLookAndFeelDefaults().getBorder("Tree.nonSelectionBorder"));
+ setBorder(UIManager.getLookAndFeelDefaults().getBorder("Tree.nonSelectionBorder"));
}
return this;