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 43024 - Corrupted display of Fonts & Colors editor in GTK
Summary: Corrupted display of Fonts & Colors editor in GTK
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: GTK
Depends on:
Blocks:
 
Reported: 2004-05-10 18:02 UTC by Jesse Glick
Modified: 2012-11-24 13:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example screenshot after changing comment font to plain (not italic) (30.39 KB, image/png)
2004-05-10 18:03 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-05-10 18:02:58 UTC
In GTK it seems that if I make changes to Fonts &
Colors I get a corrupted dialog display.

Also I sometimes see a repaint coming from the GC
toolbar button (I have it in the main menu) - no
idea why. Or sometimes I see a fragment of the
menu bar superimposed over some checkbox as I
mouse over it. Weird effects.

Corrected by repaint, e.g. moving dialog offscreen
and back on again.
Comment 1 Jesse Glick 2004-05-10 18:03:55 UTC
Created attachment 14794 [details]
Example screenshot after changing comment font to plain (not italic)
Comment 2 Miloslav Metelka 2004-05-11 10:04:49 UTC
The display of the coloring editor in Fonts & Colors is entirely done
by using org.openide.explorer.propertysheet.PropertyPanel. We
construct PropertyModel impl for
org.netbeans.modules.editor.options.ColoringBean.
Therefore transferring to openide/propertysheet for evaluation.

BTW I've searched "+gtk +repaint" Bug Parade and there is several
issues related to GTK L&F repaint deficiencies although I did not find
a one that would correspond to our problem.
 It could be worth to try the latest JDKs whether some of the issues
got fixed helping our problem to get eliminated too. Just guessing.
Comment 3 Jesse Glick 2004-05-11 11:50:51 UTC
I *was* using the latest JDK, actually (build 50).
Comment 4 _ tboudreau 2004-06-26 22:44:48 UTC
Fixed.  GTK ignores setOpaque() on JComponent subclasses (among other
things)

Checking in PropertyPanel.java;
/cvs/openide/src/org/openide/explorer/propertysheet/PropertyPanel.java,v
 <--  PropertyPanel.java
new revision: 1.144; previous revision: 1.143
done
Processing log script arguments...
Mailing the commit message to cvs@openide.netbeans.org (from
tboudreau@netbeans.org)
Comment 5 Jesse Glick 2004-06-26 23:55:31 UTC
Did you mean to mark this FIXED or not?
Comment 6 _ tboudreau 2004-06-27 01:29:47 UTC
Fixed.
Comment 7 Marian Mirilovic 2004-07-29 13:37:53 UTC
verified in [nb_dev](200407281800)
Comment 8 frederic.deniger 2012-11-23 09:34:38 UTC
It's seems that the correction done via the boolean isGtk is not available with jdk 7 because the parent hierarchy of the com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel changed between jdk 6 and jdk 7.
Is it a wanted behavior ( problem solved in jdk 7) ?

A test project can be found in the forum : https://forums.netbeans.org/download.php?id=3447

Launching the Test file with JRE  6 and JRE 7 gives different results ( see the background color of button ...)
Comment 9 _ tboudreau 2012-11-24 13:29:19 UTC
Please open a new bug, since this one seems unrelated.

If gtk l&f is now a subclass of nimbus, probably most gtk-related fixes are no longer correct.