This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 96929 - [GTK] Netbeans looks horrible under KDE, when GTK is used
Summary: [GTK] Netbeans looks horrible under KDE, when GTK is used
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Chytil
URL:
Keywords: GTK, JDK_SPECIFIC, L&F
Depends on:
Blocks:
 
Reported: 2007-03-01 12:12 UTC by Petr Chytil
Modified: 2011-06-09 09:56 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans in KDE using gtk-qt theme (86.12 KB, application/octet-stream)
2007-03-01 12:12 UTC, Petr Chytil
Details
test from JDK team to run on reporter's machine (244 bytes, text/plain)
2007-04-18 14:44 UTC, David Simonek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Chytil 2007-03-01 12:12:10 UTC
NetBeans IDE Dev (Build 200702281900)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b04
Linux version 2.6.17-11-generic running on i386
en_US (nb); UTF-8

There is a problem with running nb with GTK L&F under KDE. KDE tries to
substitute GTK theme with it's own Qt theme by default (to make GTK applications
look native in KDE). In case of netbeans the result is a disaster - see screen
shot. Everything works fine, but it looks horrible. Netbeans runs with GTK L&F
by default in JDK 1.6.0_01. But in KDE, it doesn't look neither good or native.
Metal theme doesn't look native in KDE, but it looks OK.

It is easy to setup KDE to use GTK themes when running GTK applications, but it
is not default KDE setting.

So Netbeans should run with Metal theme in KDE by default. An option to use GTK
would be nice for advanced users - they could use it with some "real" GTK theme
and not with KDE's GTK-Qt substitute.
Comment 1 Petr Chytil 2007-03-01 12:12:49 UTC
Created attachment 39044 [details]
Netbeans in KDE using gtk-qt theme
Comment 2 David Simonek 2007-03-21 13:36:52 UTC
JDK bug, nothing we can do on NetBeans side.

JDK bug entered: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6536584
Comment 3 David Simonek 2007-04-18 14:44:59 UTC
Created attachment 41165 [details]
test from JDK team to run on reporter's machine
Comment 4 David Simonek 2007-04-18 15:02:01 UTC
reopening, we need pchytil to run the test on his configuration when he
reproduced the bug
Comment 5 David Simonek 2007-04-18 15:12:03 UTC
Reassigned to pchytil. Please, run attached test on your configuration that you
used to reproduce the bug and put results here, thanks a lot.
Comment 6 Petr Chytil 2007-04-24 12:04:29 UTC
I'm now unable to reproduce the issue - even on the same machine, with same IDE
and and same JDK. I've only updated Kubuntu  (which is installed on the machine)
since the time, when the issue appeared. 

I've also executed the test in both KDE and GNOME. Results are not surprising:

KDE (with GTK-Qt theme installed and used by other applications like firefox):
System LAF = javax.swing.plaf.metal.MetalLookAndFeel

GNOME:
System LAF = com.sun.java.swing.plaf.gtk.GTKLookAndFeel

Only way to force NetBeans run using the GTK-Qt theme is having both KDE and
GNOME installed, starting IDE from GNOME. And I agree, that it is not common use
case, thus it is not an issue.
Comment 7 Marian Mirilovic 2011-06-09 09:56:10 UTC
v/c