JDK-6527149 : GTK L&F ignores set/getBackground and other properties of most UI controls
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u1,7,8,9
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_oracle_6.0,linux_redhat_6.1
  • CPU: x86
  • Submitted: 2007-02-21
  • Updated: 2022-09-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Calls to setBackground on various Swing components are ignored on GTK L&F and has no effect on resulting UI. Also properties like icons of buttons are ignored.

get/setBacground are core Component API methods and must work in all L&F implementations.

See attached test application and differences between GTK and Metal implementations - run "RefuseBackgroundFrame.java".

Comments
When does it planned to be fixed in 8?
25-03-2014

PUBLIC COMMENTS Swing_JToolBar/Manual/JToolBarLAFTest/JToolBarLAFTest1
28-04-2011

EVALUATION GTK L&F isn't suppsoed to fully support background colors for components. There are however requests for certain functionality from NetBeans team that we will consider to implement. The main reason in not implementing the issue from the beggining is that there are non rectangular components like buttons that we don't know how to paint. GTK paints all backgrounds by native means.
06-03-2007