Skip to main content



      Home
Home » Archived » Visual Editor (VE) » BoxLayout
BoxLayout [message #23562] Mon, 08 March 2004 17:19 Go to next message
Eclipse UserFriend
Originally posted by: lee.leemeador.com

I am using WSAD 5.1.0 for your reference.

It would be handy to be able to insert visually and have recognized the
following for BoxLayout containers.

struts
glue
rigidArea

Further, when you hand generate (or modify) code to generate a box layout
and use the constant BoxLayout.X_AXIS (or Y) the code recognizer doesn't
recognize the constant without the full package name.
Re: BoxLayout [message #24101 is a reply to message #23562] Tue, 09 March 2004 11:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mendelgili.netscape.net

Lee Meador wrote:
> I am using WSAD 5.1.0 for your reference.
>
> It would be handy to be able to insert visually and have recognized the
> following for BoxLayout containers.
>
> struts
> glue
> rigidArea
>
> Further, when you hand generate (or modify) code to generate a box layout
> and use the constant BoxLayout.X_AXIS (or Y) the code recognizer doesn't
> recognize the constant without the full package name.
>

It should recognize BoxLayout.X_AXIS with the proper import; open a bugzilla
Re: BoxLayout [message #24147 is a reply to message #23562] Tue, 09 March 2004 19:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Lee,

> It would be handy to be able to insert visually and have recognized the
> following for BoxLayout containers.
>
> struts
> glue
> rigidArea

At one point we tried to experiment with dropping instances of Box.Filler
using ChooseBean onto the JavaBeans tree where you wanted them in the
component order, and then visiting their property sheet to set their
properties. Box instances are kind of wierd however because they are actual
components that sit on the container and move other components around,
however they themselves aren't pure JavaBeans because they are created
through static method calls and properties on Box.Filler are public fields
with public getters and no setters. If we surfaced the public fields (which
we can do with overides) then we still have the problem that Box.Filler
doesn't have a default constructor.

I think Scott Stanchfield whose web site is something like javadudes.com did
some nice stuff with BoxLayout a while back to create some nice JavaBeans
friendly components that could be used in VAJava (and I presume will still
work OK in the Eclipse VEP) so it might be worth seeing whether these help.

Having said that a nice visual way of setting struts and glues would be nice
to have in VEP. Please open a bugzilla feature request for this.

Best regards,

Joe Winchester
Re: BoxLayout [message #24349 is a reply to message #24147] Wed, 10 March 2004 08:57 Go to previous message
Eclipse UserFriend
In article <404E6716.F9BA6B77@uk.ibm.com>, winchest@uk.ibm.com says...
> I think Scott Stanchfield whose web site is something like javadudes.com did
> some nice stuff with BoxLayout a while back to create some nice JavaBeans
> friendly components that could be used in VAJava (and I presume will still
> work OK in the Eclipse VEP) so it might be worth seeing whether these help.

Awww... You remembered.

Look at http://javadude.com/tools for "BoxBeans". It includes struts and
glue components, and a generalized "BoxAdapter" that you can drop any
component into and adjust the component's sizing behavior.

I haven't tried them in VEP, but they should work.

And if VEP sets the "design time" setting properly (I'm pretty sure they
do), you should see some nice red hint lines to help show you where the
struts and glue are.

Later,
-- Scott
Re: BoxLayout [message #583902 is a reply to message #23562] Tue, 09 March 2004 11:12 Go to previous message
Eclipse UserFriend
Lee Meador wrote:
> I am using WSAD 5.1.0 for your reference.
>
> It would be handy to be able to insert visually and have recognized the
> following for BoxLayout containers.
>
> struts
> glue
> rigidArea
>
> Further, when you hand generate (or modify) code to generate a box layout
> and use the constant BoxLayout.X_AXIS (or Y) the code recognizer doesn't
> recognize the constant without the full package name.
>

It should recognize BoxLayout.X_AXIS with the proper import; open a bugzilla
Re: BoxLayout [message #584000 is a reply to message #23562] Tue, 09 March 2004 19:53 Go to previous message
Eclipse UserFriend
Hi Lee,

> It would be handy to be able to insert visually and have recognized the
> following for BoxLayout containers.
>
> struts
> glue
> rigidArea

At one point we tried to experiment with dropping instances of Box.Filler
using ChooseBean onto the JavaBeans tree where you wanted them in the
component order, and then visiting their property sheet to set their
properties. Box instances are kind of wierd however because they are actual
components that sit on the container and move other components around,
however they themselves aren't pure JavaBeans because they are created
through static method calls and properties on Box.Filler are public fields
with public getters and no setters. If we surfaced the public fields (which
we can do with overides) then we still have the problem that Box.Filler
doesn't have a default constructor.

I think Scott Stanchfield whose web site is something like javadudes.com did
some nice stuff with BoxLayout a while back to create some nice JavaBeans
friendly components that could be used in VAJava (and I presume will still
work OK in the Eclipse VEP) so it might be worth seeing whether these help.

Having said that a nice visual way of setting struts and glues would be nice
to have in VEP. Please open a bugzilla feature request for this.

Best regards,

Joe Winchester
Re: BoxLayout [message #584081 is a reply to message #24147] Wed, 10 March 2004 08:57 Go to previous message
Eclipse UserFriend
In article <404E6716.F9BA6B77@uk.ibm.com>, winchest@uk.ibm.com says...
> I think Scott Stanchfield whose web site is something like javadudes.com did
> some nice stuff with BoxLayout a while back to create some nice JavaBeans
> friendly components that could be used in VAJava (and I presume will still
> work OK in the Eclipse VEP) so it might be worth seeing whether these help.

Awww... You remembered.

Look at http://javadude.com/tools for "BoxBeans". It includes struts and
glue components, and a generalized "BoxAdapter" that you can drop any
component into and adjust the component's sizing behavior.

I haven't tried them in VEP, but they should work.

And if VEP sets the "design time" setting properly (I'm pretty sure they
do), you should see some nice red hint lines to help show you where the
struts and glue are.

Later,
-- Scott
Previous Topic:JOptionPane?
Next Topic:iconImage
Goto Forum:
  


Current Time: Sat Jun 07 11:28:24 EDT 2025

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

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

Back to the top