Java XP Look & Feel broken?

http://matzon.dk/brian/lookandfeel/

I am having some serious issues with Java L&F, using a non-default theme. This is preventing me from using Netbeans, which I am currently considering.
Has anyone seen anything like this before? I am unable to locate a similar bug on bugs.sun.com

You can change the java launch options in the net.conf, in this case you may want to try disabling direct draw and/or enabling OpenGL Java2D rendering.
I use netbeans and had to do this because of it crashing under directx.

-Dsun.java2d.noddraw=true
-Dsun.java2d.opengl=true

I modified the etc/netbeans.conf:

[quote]netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none -Dsun.java2d.opengl=true -Dsun.java2d.noddraw=true"
[/quote]
didn’t work.
Tried using either and both switches, still no go :frowning:

What about these switches?

What about IDEA?

Cas :slight_smile:

works fine, but kinda makes that platform look and feel disappear :wink:

Can’t really say why, but never really felt home with it - especially as I am looking for a program I can use at home AND at work.
And besides, it doesn’t have matisse (http://www.netbeans.org/kb/articles/matisse.html)

For my Win2000 box the XP L&F is Java Ocean.
However I prefer the good old Java Metal L&F which works fine with Netbeans, too.

While I’m still wondering why there’s no simple L&F GUI’ed option in the IDE, it can be done this way: http://www.netbeans.org/kb/41/using-netbeans/configuring.html#switches

For example:
bin/netbeans --laf javax.swing.plaf.metal.MetalLookAndFeel --fontsize 12 -J-Dswing.metalTheme=steel -J-Dswing.plaf.metal.controlFont=Dialog-plain-12 -J-Dswing.aatext=true

Netbeans rocks!

Don’t miss to try the new 4.2 beta (q-build).

didn’t work.
Tried using either and both switches, still no go :frowning:
[/quote]
That’s not correct for the net.conf file. Read the help on it. See that -J in front of the other options. You need that too to send it through to the JVM!

You got no change, cause nothing changed! :slight_smile: Let me know if anythign happens once you fix this.

didn’t help either :frowning:
tried to fire it up in JDK 1.5, way better, but combobox still broken: http://matzon.dk/brian/lookandfeel/nb-15.png

ok, now update your video drivers :slight_smile:
Also you can play with different acceleration settings in your display settings. It may fix it, but then it may draw much slower…

so you’re arguing that the video drivers influnce the behaviour of two different VM’s and only when using a non-windows theme… way unlikely.

giving you the benefit of the doubt, I updated to latest nVidia drivers - same issue

What is your video board? What’s the desktop bit depth?

Also, do still see the problem when running with -Dsun.java2d.noddraw=true option alone (no opengl=true)?

Thanks,
Dmitri
Java2D Team

Well, I’ve re-read the thread and it looks like just having -Dsun.java2d.noddraw=true didn’t help either.

It appears to be a problem with the Swing’s XP L&F support, not the 2D issue. I’ll make sure swing folks
see this thread.

Note, however, that they may go silent for a week of JavaOne since everybody’s extremely busy…

Thanks,
Dmitri
Java2D Team

fair enough. I have tried to locate a bug on the official list, since that would give it some more attention.
I have tried different themes now, and it appears to only happen to two of my themes - if I use normal xp or classic (or some other themes) it works fine. But with my default theme it garbles up.

For kinks, this is the theme: http://www.deviantart.com/view/9240396/
you will need to install the uxtheme hack to use MS styles (http://www.neowin.net/forum/index.php?showtopic=308905)

So it seems to be theme issue, and how the xp look and feel locates the relevant graphics portions.
just for completeness sake:
Windows XP SP2
Java 1.5 and 1.6 shows this behaviour
nVidia 6600GT