Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Open java source created by Netbeans GUI form editor
Open java source created by Netbeans GUI form editor [message #74031] Tue, 07 December 2004 17:49 Go to next message
Jack Chi is currently offline Jack ChiFriend
Messages: 52
Registered: July 2009
Member
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
Re: Open java source created by Netbeans GUI form editor [message #74197 is a reply to message #74031] Tue, 07 December 2004 21:51 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Open java source created by Netbeans GUI form editor [message #74321 is a reply to message #74197] Wed, 08 December 2004 17:05 Go to previous message
Jack Chi is currently offline Jack ChiFriend
Messages: 52
Registered: July 2009
Member
Jeff,

Thanks for the help. I think some migration steps are required.

Hmm, it seems some OTI folks are monitoring the discssions here. It
sounds good.

Best Regards

Jack

Jeff Myers wrote:
> 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
Re: Open java source created by Netbeans GUI form editor [message #603757 is a reply to message #74031] Tue, 07 December 2004 21:51 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
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
Re: Open java source created by Netbeans GUI form editor [message #603789 is a reply to message #74197] Wed, 08 December 2004 17:05 Go to previous message
Jack Chi is currently offline Jack ChiFriend
Messages: 52
Registered: July 2009
Member
Jeff,

Thanks for the help. I think some migration steps are required.

Hmm, it seems some OTI folks are monitoring the discssions here. It
sounds good.

Best Regards

Jack

Jeff Myers wrote:
> 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
Previous Topic:Difference between Eclipse 3.0.0 and Eclipse 3.0.1
Next Topic:How to handle beans with references to parent components
Goto Forum:
  


Current Time: Thu Apr 18 18:45:41 GMT 2024

Powered by FUDForum. Page generated in 0.02251 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top