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 116894 - JSeparator invisible in the interfaces editor?
Summary: JSeparator invisible in the interfaces editor?
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 00:35 UTC by alosii
Modified: 2007-11-27 09:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
no JSeparator on-screen (46.76 KB, image/png)
2007-09-27 00:36 UTC, alosii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alosii 2007-09-27 00:35:23 UTC
I apologize if this turns out to be a feature and not a bug, but the JSeparator is apparently invisible in the GUI editor.
Comment 1 alosii 2007-09-27 00:36:23 UTC
Created attachment 49629 [details]
no JSeparator on-screen
Comment 2 Tomas Pavek 2007-09-27 10:21:38 UTC
Yes, seems that on Mac the separator is not visible (painted correctly) in the GUI builder and in preview. It looks ok 
when executed. Also on XP (classic L&F) the separator is changed after added to a form and unselected.
Comment 3 Joshua Marinacci 2007-10-04 19:03:12 UTC
I think this may be because the code changes the border to do selection. I think that separators may implement their
drawing using a custom border rather than custom drawing code. This means that we nuke the drawing when we switch
borders for selection. The solution is probably to make a special compound wrapper border for JSeparators.
Comment 4 Joshua Marinacci 2007-10-09 21:48:09 UTC
After some more research I'm not as sure about the cause.  This happens to all JSeparators, not just ones in the menu
layer, so it doesn't appear to be menu specific.
Comment 5 Jan Stola 2007-10-10 15:27:37 UTC
I have fixed the Win L&F part. It was caused by incorrect modification of background of the separator. As for Mac, the 
situation is more difficult. The problem is caused by our incorrect handling of UIDefaults. Unfortunately, it seems to 
risky to fix that into NetBeans 6.0.

Modified file:
/cvs/form/src/org/netbeans/modules/form/menu/MenuEditLayer.java
new revision: 1.103; previous revision: 1.102
Comment 6 Jan Stola 2007-11-27 09:47:13 UTC
Fixed.

Modified files:
/cvs/form/src/org/netbeans/modules/form/FormDesigner.java
new revision: 1.227; previous revision: 1.226
/cvs/form/src/org/netbeans/modules/form/FormLAF.java
new revision: 1.30; previous revision: 1.29