diff options
author | Lillian Angel <langel@redhat.com> | 2005-08-17 13:46:28 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2005-08-17 13:46:28 +0000 |
commit | da23dc65846a343e2cefd32a79c853b14b7f9646 (patch) | |
tree | bb5d4d64f0054f97df013b186aba73113538ac07 /javax/swing/tree | |
parent | 5f33549d2c1d7ff48a81fdbbb711dc4c4d83148d (diff) | |
download | classpath-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.java | 6 |
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; |