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 238981 - NetBeansIDE 7.4 - Can't edit or view WebcamStudio main class project design in GUIBuilder
Summary: NetBeansIDE 7.4 - Can't edit or view WebcamStudio main class project design i...
Status: RESOLVED DUPLICATE of bug 238382
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: apk0930
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 18:41 UTC by soylent
Modified: 2015-01-12 08:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
design gui problem (63.08 KB, patch)
2015-01-12 08:12 UTC, apk0930
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soylent 2013-11-29 18:41:31 UTC
Hi,
I've tried to search for this issue but i didn't find anything related to.
I'm doing some editing on a project called WebcamStudio:

http://code.google.com/p/webcamstudio/source/checkout

The project is Written in Java7. 
I'm currently using Oracle 7u45 Java.
I run NetBeansIDE 7.4 on Ubuntu 13.10 x64 OS.
I can reproduce the issue on UbuntuStudio 13.10 x86 OS.
I tried Gnome - Unity - XFCE desktops interfaces.
I have a problem opening WebcamStudio.java form in the 7.4 GUIBuilder.
When I try to hit the "Design" button, IDE seems to open it, but nothing happens.
The IDE GuiBuilder can open correctly all other projects class form, but not the WebcamStudio Main One.
This issue did not happen with NetBeansIDE 7.3.1
I did some tests with NetBeansIDE 7.4 and Oracle Java JDK 7u45 under Windows 7 64bit same machine, and the GuiBuilder works well even with WebcamStudio.java form.
Then I should think that the WebcamStudio.java form doesn't have any issue.
I really don't know if it is Ubuntu/Debian based distro related problem.
I will try some other linux/distro configurations.

karl.
Comment 1 soylent 2013-11-30 18:10:48 UTC
Also tried on OpenSuse 13.1 x86 with the same issue, OpenJDK 7 u45.
karl.
Comment 2 soylent 2013-12-03 18:33:26 UTC
Hi,
I decide to give Eclipse a try, and after installing Eclipse Kepler and Subclipse plugin I did a checkout of WebcamStudio source.
After understanding how WindowBuilder works, I successfully open WebcamStudio main class form in the Design editor without any issue.
I installed following Eclipse plugins:
Swing Designer
SWT Designer
SWT Designer Core Components
WindowBuilder Common Components
WindowBuilder UI Common Components
WindowBuilder GroupLayout Components
WindowBuilder Core Java
WindowBuilder XML Common Components
At this point i'm quite stuck.
I started learning Java in NetBeansIDE, and I'm not a GUI designer ( and not a coder too ...), so GuiBuilder for me was a very helpful hand.
I like WebcamStudio Project so now I will study better Eclipse functions because I will continue my work on Eclipse editor.
Thanks.
karl.
Comment 3 Tomas Pavek 2013-12-05 14:37:35 UTC
This looks like the same cause as in bug 238382. Here the problem is with JDesktopPane (which is a JLayeredPane subclass). The reason why it works on Windows and not on Linux is likely due to different JDesktopPane internals on these platforms (look and feels).

This bug is already fixed in dev builds (8.0) and a fix for 7.4 will be available with patch 2 update next week.

There is a simple workaround to make the WebcamStudio form work even in current NetBeans 7.4. Just edit the WebcamStudio.form file in a text editor and replace the line:
              <Layout class="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout"/>

with:
              <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
                <Property name="useNullLayout" type="boolean" value="true"/>
              </Layout>

Alternatively you can also delete the above line completely and change the enclosing <Container >...</Container> element of the JDesktopPane to <Component >...</Component> .

*** This bug has been marked as a duplicate of bug 238382 ***
Comment 4 soylent 2013-12-05 18:54:50 UTC
Thank you very much Tomas Pavek, you make my day !!! :)
Works perfect now.
Thanks for the time you spent on it and for the good explanations of the issue.
Finally i can get back to NetBeansIDE for my edits.
Thanks again.
Have a nice Day.
karl
Comment 5 apk0930 2015-01-12 08:12:41 UTC
Created attachment 151448 [details]
design gui problem