diff options
author | Mark Wielaard <mark@klomp.org> | 2005-07-15 11:17:44 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2005-07-15 11:17:44 +0000 |
commit | c1ce40839b8f71fbeef8a305aaf4b30d4742851e (patch) | |
tree | 469ad7529a45d57d00e704c6762cb9b3b0723d7e | |
parent | febe39c7d32c25264d4d0cd59a44610ccbb7ac5e (diff) | |
download | classpath-c1ce40839b8f71fbeef8a305aaf4b30d4742851e.tar.gz |
* lib/standard.omit: Only list gnu/javax/swing/plaf/gtk/.*java and
README explicitly, not the icons.
* examples/gnu/classpath/examples/swing/GNULookAndFeel.java
(getDefaults): Add Tree closed, leaf and open icons.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | examples/gnu/classpath/examples/swing/GNULookAndFeel.java | 19 | ||||
-rw-r--r-- | lib/standard.omit | 3 |
3 files changed, 27 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2005-07-15 Mark Wielaard <mark@klomp.org> + + * lib/standard.omit: Only list gnu/javax/swing/plaf/gtk/.*java and + README explicitly, not the icons. + * examples/gnu/classpath/examples/swing/GNULookAndFeel.java + (getDefaults): Add Tree closed, leaf and open icons. + 2005-07-15 Andrew John Hughes <gnu_andrew@member.fsf.org> * doc/vmintegration.texinfo: diff --git a/examples/gnu/classpath/examples/swing/GNULookAndFeel.java b/examples/gnu/classpath/examples/swing/GNULookAndFeel.java index 13520ff05..97e91a89f 100644 --- a/examples/gnu/classpath/examples/swing/GNULookAndFeel.java +++ b/examples/gnu/classpath/examples/swing/GNULookAndFeel.java @@ -23,8 +23,10 @@ package gnu.classpath.examples.swing; import java.awt.Color; +import javax.swing.ImageIcon; import javax.swing.UIDefaults; import javax.swing.plaf.ColorUIResource; +import javax.swing.plaf.IconUIResource; import javax.swing.plaf.basic.BasicLookAndFeel; public class GNULookAndFeel extends BasicLookAndFeel @@ -40,6 +42,8 @@ public class GNULookAndFeel extends BasicLookAndFeel static UIDefaults LAF_defaults; + private final static String iconspath = "/gnu/javax/swing/plaf/gtk/icons/"; + public UIDefaults getDefaults() { if (LAF_defaults == null) @@ -59,7 +63,20 @@ public class GNULookAndFeel extends BasicLookAndFeel "Menu.background", new ColorUIResource(blueGray), "MenuBar.background", new ColorUIResource(blueGray), "MenuItem.background", new ColorUIResource(blueGray), - "ScrollBar.background", new ColorUIResource(blueGray) + "ScrollBar.background", new ColorUIResource(blueGray), + + "Tree.closedIcon", + new IconUIResource(new ImageIcon + (getClass().getResource + (iconspath + "TreeClosed.png"))), + "Tree.leafIcon", + new IconUIResource(new ImageIcon + (getClass().getResource + (iconspath + "TreeLeaf.png"))), + "Tree.openIcon", + new IconUIResource(new ImageIcon + (getClass().getResource + (iconspath + "TreeOpen.png"))), }; LAF_defaults.putDefaults(myDefaults); } diff --git a/lib/standard.omit b/lib/standard.omit index 38670d0d3..66f5a78cd 100644 --- a/lib/standard.omit +++ b/lib/standard.omit @@ -1,3 +1,4 @@ ../gnu/test/.*$ -../gnu/javax/swing/plaf/gtk/.*$ +../gnu/javax/swing/plaf/gtk/.*java$ +../gnu/javax/swing/plaf/gtk/README$ ../gnu/classpath/jdwp/.*$ |