Bug 695059

Summary: GTKLookAndFeel should be used as the system look and feel under xfce
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: java-1.7.0-openjdkAssignee: Omair Majid <omajid>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: dbhole, jvanek, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 17:35:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Raphael Groner 2011-04-10 09:35:35 UTC
Description of problem:
It's no hurry, so no need to repackage for now.

Netbeans uses the Metal L&F by default. It's not very well integrated on Linux.
Please, use the GTK one. Even for KDE users, Qt could be used then with a wrapper like the GTK-QT Theme Engine [*].

##
Setting NetBeans to permanently use the GTK Look and Feel on a GNU/Linux system

Edit the following file in your NetBeans installation directory:

{$NB_HOME}/etc/netbeans.conf

so that the line beginning netbeans_default_options includes the following option between the quotation marks:

--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel

##


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. start Netbeans
2.
3.
  
Actual results:
Metal L&F

Expected results:
Nicer Look and Feel for GTK and KDE

Additional info:
http://wiki.netbeans.org/FaqCustomLaf
http://wiki.netbeans.org/NBLookAndFeels
https://seysayux.wordpress.com/2009/01/11/make-java-use-the-gtk-look-feel-on-linux/

[*] GTK-QT Theme Engine: http://kde-look.org/content/show.php?content=9714

Comment 1 Omair Majid 2011-09-22 21:33:08 UTC
Netbeans uses the gtk look and feel whenever I run it under gnome. Are you running it under kde or some other window manager/desktop environment?

I am aware of a bug where metal is selected as the system look and feel for (at least some) non-gnome desktop environments.

Comment 2 Raphael Groner 2011-11-26 21:07:16 UTC
(In reply to comment #1)
> Are you running it under kde or some other window manager/desktop environment?
I speak for Xfce.

Comment 3 Omair Majid 2012-08-01 23:40:34 UTC
Patch sent upstream:
http://mail.openjdk.java.net/pipermail/swing-dev/2012-June/002160.html

Comment 4 Fedora End Of Life 2013-04-03 16:35:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 5 Raphael Groner 2014-09-11 20:59:33 UTC
Do we wait for something?

Could you provide a scratch build with the suggested patch applied to let me test around?

Comment 6 Omair Majid 2014-09-11 21:08:11 UTC
(In reply to Raphael Groner from comment #5)
> Do we wait for something?

Basically, there's still concerns about breaking things. It was fixed upstream once, but unrelated issues happened and we had to back it out [1]. I am pretty sure a future OpenJDK 7 update will bring this in.

[1] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=729#c16

Comment 7 Raphael Groner 2014-12-11 17:35:09 UTC
Closing cause netbeans is orphaned for F20+. The official tarball installation of upstream and L&F works fine.