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 241230

Summary: Absolute Layout on TopComponent adds broken dependency to NetBeans Module
Product: guibuilder Reporter: mienamoo
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.0   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:

Description mienamoo 2014-01-31 14:49:03 UTC
NetBeans build 201401300001
JDK 7u40

I was busy with test 4.1 in [1] when this occurred. I don't know whether GUI builder is quite the right component to log this against, so please reassign if necessary?

I created a NetBeans Module project (Ant-based), and created a TopComponent (window) inside the project. I added a panel with some GUI controls and set the layout of the panel to Absolute Layout as the test required. 

Then I noticed that additional module dependencies were added as well, and so I tried to build the module. It would no longer build because it now depended on the Form Editor (org.netbeans.modules.form) which is a module with no public packages. However, removing the dependency also removes the wrapped AbsoluteLayout jar, so removing it does not solve the problem.

Please add this dependency in some other way, that doesn't break the module project?

[1] http://services.netbeans.org/synergy/client/app/index.html#/specification/207/v/2
Comment 1 Tomas Pavek 2014-01-31 15:24:54 UTC
Interesting nobody noticed this so far. AbsoluteLayout is in fact not usable for NetBeans modules, which is fine - we don't want it to be used in NetBeans, and null layout can be used instead if really needed.

The test spec should be fixed not to mention AbsoluteLayout on API Support page (null layout can achieve the same for the testing purpose).

The fix in GUI builder should somehow hide AbsoluteLayout if the form is from a NBM project.
Comment 2 mienamoo 2014-01-31 15:28:11 UTC
(In reply to Tomas Pavek from comment #1)
> Interesting nobody noticed this so far. AbsoluteLayout is in fact not usable
> for NetBeans modules, which is fine - we don't want it to be used in
> NetBeans, and null layout can be used instead if really needed.
> 
> The test spec should be fixed not to mention AbsoluteLayout on API Support
> page (null layout can achieve the same for the testing purpose).
> 
> The fix in GUI builder should somehow hide AbsoluteLayout if the form is
> from a NBM project.

That makes sense. Agreed on both the test spec update and GUI builder fix. :)