|
Re: Open java source created by Netbeans GUI form editor [message #74197 is a reply to message #74031] |
Tue, 07 December 2004 21:51 |
Eclipse User |
|
|
|
Originally posted by: myersj.nospam.gmail.com
Hi Jack,
There are two main problems importing code from Netbeans into the VE.
1) There's the implicit use of the content pane in JFrames - Netbeans
uses code like myJFrame.getContentPane().add(aButton); The VE does not
currently support the getContentPane() call. To make this code work
with the VE, add a JPanel to your class and change all references to
getContentPane() to add to this panel directly. Then use the
setContentPane() method on the JFrame to set your new panel as the
contentPane. See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=48552
2) GridBagConstraints objects are reused for every component in a
layout. The VE gets confused by this - you'll need to change your code
to have a separate GridBagConstraint object for each component on the
layout. See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=76178
For a slightly outdated overview of the source code pattern recognized
by the VE, you can read this article:
http://www-106.ibm.com/developerworks/websphere/library/tech articles/0303_winchester/winchester.html
We're always trying to improve the ability of the VE to parse other code
patterns, but it's often not the highest priority feature.
Hope this helps,
- Jeff
Jack Chi wrote:
> Hi,
>
> Does any one on the newsgroup have the experiecne to open a GUI Java
> source created by Netbeans or other IDE GUI form editors? I tried this
> with Eclipse VE but the result is not very good. [Maybe due to the
> variable naming convenxction like ivj....]
>
> Is there any discussion threads or online documents available on the web?
>
> Thanks
>
> Jack
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04627 seconds