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 160529 - Text in editable fields becomes invisible
Summary: Text in editable fields becomes invisible
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: GTK, UI
: 163281 190323 211480 219632 (view as bug list)
Depends on:
Blocks: 219632
  Show dependency tree
 
Reported: 2009-03-18 10:54 UTC by Egor Ushakov
Modified: 2012-10-17 02:03 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (104.04 KB, image/png)
2009-03-18 10:55 UTC, Egor Ushakov
Details
see the selected item has no value (111.51 KB, image/png)
2012-04-20 09:15 UTC, Egor Ushakov
Details
see the selected item has no value (112.77 KB, image/png)
2012-04-20 09:15 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2009-03-18 10:54:12 UTC
In c/c++ watches view when user selects a row - value text in this row becomes invisible (most probably the same color
as background)
See screenshot.
Comment 1 Egor Ushakov 2009-03-18 10:55:25 UTC
Created attachment 78359 [details]
screenshot
Comment 2 Egor Ushakov 2009-03-18 10:56:03 UTC
this happens only for selected rows
Comment 3 Egor Ushakov 2009-04-01 11:42:22 UTC
nimbus L&F
Comment 4 Egor Ushakov 2009-04-22 12:56:46 UTC
only editable fields become invisible
Comment 5 Egor Ushakov 2009-04-27 13:54:09 UTC
*** Issue 163281 has been marked as a duplicate of this issue. ***
Comment 6 Egor Ushakov 2009-04-27 14:07:05 UTC
reproduced only on OpenSolaris 2008.11 with Nimbus
Comment 7 Egor Ushakov 2009-04-29 13:38:44 UTC
I can see the same behavior in properties table (properties window)
Comment 8 Jiri Rechtacek 2009-05-11 19:14:03 UTC
A problem in PropertyPanel?
Comment 9 soldatov 2009-05-18 10:52:48 UTC
I have same problem on 64-bit linux machine with default L&F (GTK style), but for example with Nimbus L&F Watches tab
works correctly.
P.S. I think It will annoy users, therefore it is P2
Comment 10 Jiri Rechtacek 2009-05-18 11:12:41 UTC
Stando, isn't there a bug about painting properties on GTK?
Comment 11 Stanislav Aubrecht 2009-11-06 09:33:31 UTC
when running the latest build using GTK look&feel the cells in debugger views and in properties window are readable.
although they have white background and black text, even when selected which i'll try to fix
Comment 12 Egor Ushakov 2010-04-21 17:04:13 UTC
still reproducible and very annoying in:
Product Version: NetBeans IDE Dev (Build 100421-b98b61dc47bf)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: SunOS version 5.11 running on x86; UTF-8; en_US (nb)
Comment 13 Martin Entlicher 2010-11-01 10:52:57 UTC
*** Bug 190323 has been marked as a duplicate of this bug. ***
Comment 14 Martin Entlicher 2010-11-01 13:48:41 UTC
I can not reproduce this in NB 6.8, 6.9.1 and current dev.
Tested on JDK 6 up 22, Linux and Solaris with GTK L&F.

Anyway, this seems to occur in both PropertySheet and Outline. Outline uses org.openide.explorer.view.SheetCell$OutlineSheetCell as a cell editor, which creates an instance of org.openide.explorer.propertysheet.PropertyPanel as the editor component. Outline does not do the painting, it's done by PropertyPanel, therefore it should be fixed there.
Comment 15 Jaroslav Tulach 2010-11-01 15:08:44 UTC
If you can't reproduce, why don't you close as works for me?
Comment 16 Egor Ushakov 2012-04-20 09:09:25 UTC
*** Bug 211480 has been marked as a duplicate of this bug. ***
Comment 17 Egor Ushakov 2012-04-20 09:13:23 UTC
Now I know how to reproduce it:
- it happens only with CND debugger because we do not use html (probably)
- start debug session
- open variables view
- select any variable where whose value is editable (click on name)
Value column becomes empty, although you can edit it and see the value.
I was not able to find where the real issue is, but if I comment the line RendererFactory:805 (lbl.setOpaque(true);) everything works fine.
Comment 18 Egor Ushakov 2012-04-20 09:15:16 UTC
Created attachment 118555 [details]
see the selected item has no value
Comment 19 Egor Ushakov 2012-04-20 09:15:49 UTC
Created attachment 118556 [details]
see the selected item has no value
Comment 20 Egor Ushakov 2012-04-20 09:16:19 UTC
happens on both Solaris 11 and Ubuntu 11.04 (all default settings)
Comment 21 Egor Ushakov 2012-10-06 17:43:46 UTC
*** Bug 219632 has been marked as a duplicate of this bug. ***
Comment 22 Egor Ushakov 2012-10-06 17:56:19 UTC
Martin, Jarda, more people reporting the same issue.
Please see my comment:
http://netbeans.org/bugzilla/show_bug.cgi?id=160529#c17
(at the end about setting opacity in RendererFactory:805)
it may help with the fix.
Comment 23 Jaroslav Tulach 2012-10-14 19:48:59 UTC
Why you believe the bug is in explorer? I don't see any explorer window (other than outline view) on the picture. Is not the bug in debugger?
Comment 24 Egor Ushakov 2012-10-15 16:33:27 UTC
We're only providing html to the field, and once again if I comment out unconditional opacity set in RendererFactory.paint it works fine.
Comment 25 Egor Ushakov 2012-10-15 16:43:37 UTC
sorry, the call is to setOpaque(true)
Comment 26 Stanislav Aubrecht 2012-10-16 09:49:19 UTC
core-main b21a861b7ded
Comment 27 Quality Engineering 2012-10-17 02:03:26 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b21a861b7ded
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #160529 - do not force background color on GTK l&f