Open java source created by Netbeans GUI form editor [message #74031] |
Tue, 07 December 2004 12:49  |
Eclipse User |
|
|
|
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 12:05  |
Eclipse User |
|
|
|
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 16:51  |
Eclipse User |
|
|
|
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 12:05  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05536 seconds