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.
I apologize if this turns out to be a feature and not a bug, but the JSeparator is apparently invisible in the GUI editor.
Created attachment 49629 [details] no JSeparator on-screen
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.
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.
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.
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
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