Re: ot but need help does gtk+ work with Java 1.4.2_04?
masukomi <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Why not try setting it with SwiXml?
in the root element of your XML document you should be able to add a
plaf attribute whose value is the fullly qualified class name of the
plaf class you want to load.
plaf="com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
-Kate
On May 4, 2004, at 2:09 PM, David Kafrissen wrote:
> Greetings,
>
> Is there a trick in switching between look and feels?
>
> I could have sworn this used to work. But when I set the Look and Feel
> to
> the new GTK+ parts of the UI appear white. Is there a trick to setting
> the
> Look and Feel. This happens in Linux and Windows.
>
> The Java sample, swingDemo located in the JDK does work correctly but
> I do
> not see what they are doing that I am not.
>
> I can set the Windows XP Look and Feel successfully but the same code
> does
> not work for GTK+. I get part of the UI in white.
>
> I use these two calls:
> try {
>
> javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.W
> indow
> sLookAndFeel");
> javax.swing.SwingUtilities.updateComponentTreeUI(this);
> }
> catch(Exception e){
> System.out.println("Exception setting look and feel");
> }
>
> and like this:
> try {
>
> javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLo
> okAnd
> Feel" );
> javax.swing.SwingUtilities.updateComponentTreeUI(this);
> }
> catch(Exception e){
> System.out.println("Exception setting look and feel");
> }
>
> Where the root class is a frame so I am calling these two functions on
> a
> frame assuming that the frame is a container and will update all
> children.
>
> Thanks in advance and sorry about the Off Topic Post.
>
> Dave
>
>
>
>
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>
>