Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » MIgrating from Netbeans 3.6 to Eclipse 3.0.1
MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #61129] Sun, 26 September 2004 10:11 Go to next message
Eclipse UserFriend
Originally posted by: jroman.ecua.net.ec

Is it possible to migrate forms developed with Netbeans 3.6 to Eclipse
3.0.1 ?

Thanks in advane.

jrr
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #61401 is a reply to message #61129] Mon, 27 September 2004 11:01 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
HiJimmy

> Is it possible to migrate forms developed with Netbeans 3.6 to Eclipse
> 3.0.1 ?

Can you give it a try ? Just take the .java file and import it into
Eclipse and open it with the VE ? Let us know what happens, and also
can you post the file you're trying to open and we'll take a look and it
might be just a small tweak required to make it work and it'll also help
us to learn more about code styles the VE should parse.

Best regards,

Joe Winchester
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #63378 is a reply to message #61401] Thu, 30 September 2004 06:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: calschut.nospam.gmail.com

I just tried it with the "Anagrams" example that comes with the Netbeans
4.0 beta 1 and it did work too well. But it shows up correctly when you
"Run as Java Bean" and of course if you run as an app.

Heres a screen shot showing VE and the Actual version:
http://www.sfu.ca/~cschut/netbeansToVE.gif

-Cal
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #63443 is a reply to message #63378] Thu, 30 September 2004 13:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mendelgili.netscape.net

calvin schut wrote:

> I just tried it with the "Anagrams" example that comes with the Netbeans
> 4.0 beta 1 and it did work too well. But it shows up correctly when you
> "Run as Java Bean" and of course if you run as an app.
>
> Heres a screen shot showing VE and the Actual version:
> http://www.sfu.ca/~cschut/netbeansToVE.gif
>
> -Cal
>
>
Can you include a sample source
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #70317 is a reply to message #63378] Mon, 08 November 2004 16:44 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi calvin,

> I just tried it with the "Anagrams" example that comes with the Netbeans
> 4.0 beta 1 and it did work too well. But it shows up correctly when you
> "Run as Java Bean" and of course if you run as an app.

I think the problem is how the NetBeans code is using its
GridBagConstraints. They re-use the same field, e.g.

GridBagConstraints constraints = new GridBagConstraints();
panel.add(component1,constraints);
constraints.gridx = 2;
panel.add(component2,constraints);

The VE parses code and currently does not deal with shared properties in
this way. It's a subtle thing that GridBagLayout does where in fact the
constraints are not shared (they are cloned by the layout manager),
because with any other piece of Java code objects are passed by
reference and changing the constraint and re-using it wouldn't be allowed.

We do have a bugzilla to deal with this kind of grid bag constraints
behavior as it is quite a common coding pattern, however in the meantime
try changing the source so that each GridBagConstraints is a new field, e.g.

GridBadConstraints constraints = new GridBagConstraints();
panel.add(component,constraints);
GridBagConstraints contstraints1 = new GridBagConstraints();
panel.add(component2,constraints1);

The key is that the single field for GridBagConstraints it not shared.
Once this change is done the VE should be able to open the source OK.

Best regards,

Joe Winchester
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #599601 is a reply to message #61129] Mon, 27 September 2004 11:01 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
HiJimmy

> Is it possible to migrate forms developed with Netbeans 3.6 to Eclipse
> 3.0.1 ?

Can you give it a try ? Just take the .java file and import it into
Eclipse and open it with the VE ? Let us know what happens, and also
can you post the file you're trying to open and we'll take a look and it
might be just a small tweak required to make it work and it'll also help
us to learn more about code styles the VE should parse.

Best regards,

Joe Winchester
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #600181 is a reply to message #61401] Thu, 30 September 2004 06:13 Go to previous message
Eclipse UserFriend
Originally posted by: calschut.nospam.gmail.com

I just tried it with the "Anagrams" example that comes with the Netbeans
4.0 beta 1 and it did work too well. But it shows up correctly when you
"Run as Java Bean" and of course if you run as an app.

Heres a screen shot showing VE and the Actual version:
http://www.sfu.ca/~cschut/netbeansToVE.gif

-Cal
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #600210 is a reply to message #63378] Thu, 30 September 2004 13:48 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
calvin schut wrote:

> I just tried it with the "Anagrams" example that comes with the Netbeans
> 4.0 beta 1 and it did work too well. But it shows up correctly when you
> "Run as Java Bean" and of course if you run as an app.
>
> Heres a screen shot showing VE and the Actual version:
> http://www.sfu.ca/~cschut/netbeansToVE.gif
>
> -Cal
>
>
Can you include a sample source
Re: MIgrating from Netbeans 3.6 to Eclipse 3.0.1 [message #602709 is a reply to message #63378] Mon, 08 November 2004 16:44 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi calvin,

> I just tried it with the "Anagrams" example that comes with the Netbeans
> 4.0 beta 1 and it did work too well. But it shows up correctly when you
> "Run as Java Bean" and of course if you run as an app.

I think the problem is how the NetBeans code is using its
GridBagConstraints. They re-use the same field, e.g.

GridBagConstraints constraints = new GridBagConstraints();
panel.add(component1,constraints);
constraints.gridx = 2;
panel.add(component2,constraints);

The VE parses code and currently does not deal with shared properties in
this way. It's a subtle thing that GridBagLayout does where in fact the
constraints are not shared (they are cloned by the layout manager),
because with any other piece of Java code objects are passed by
reference and changing the constraint and re-using it wouldn't be allowed.

We do have a bugzilla to deal with this kind of grid bag constraints
behavior as it is quite a common coding pattern, however in the meantime
try changing the source so that each GridBagConstraints is a new field, e.g.

GridBadConstraints constraints = new GridBagConstraints();
panel.add(component,constraints);
GridBagConstraints contstraints1 = new GridBagConstraints();
panel.add(component2,constraints1);

The key is that the single field for GridBagConstraints it not shared.
Once this change is done the VE should be able to open the source OK.

Best regards,

Joe Winchester
Previous Topic:javaw multiple processes when working with VE
Next Topic:problem with grid layout
Goto Forum:
  


Current Time: Fri Aug 16 16:18:19 GMT 2024

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

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

Back to the top