How can I display a grid as a background in the VE? [message #144118] |
Tue, 25 March 2008 06:35  |
Eclipse User |
|
|
|
Originally posted by: eli_lato.hotmail.com
We put a composite component in the VE.
We want to horizontally align a component that is within this composite with another component that is outside the composite.
For example, we put a composite and a JComboBox into the VE. The JComboBox is under the composite. Our composite contains a JLabel, and we want to horizontally align this JLabel with the JComboBox.
The composite has a property for the JLabel's x, so we can use the Property Sheet to move the JLabel left and right within the composite.
The problem is SEEING that the JLabel is exactly aligned with the JComboBox. Displaying a grid on the VE's background would solve this problem.
Is there a simple way to display this grid?
Thanks,
Eli
|
|
|
Re: How can I display a grid as a background in the VE? [message #144172 is a reply to message #144118] |
Wed, 26 March 2008 10:36  |
Eclipse User |
|
|
|
There are two issues in your email:
1. Alignment
You can align the elements by the alignment commands.
2. Grid display
Set the "Show Grid when container or its children are selected"
preference of VE
Windows->Preferences->Java->Visual Editor
Yves YANG
---
http://www.soyatec.com/
"Eli Lato" <eli_lato@hotmail.com> wrote in message
news:13653398.11791206441334697.JavaMail.root@cp1.dzone.com...
> We put a composite component in the VE.
> We want to horizontally align a component that is within this composite
> with another component that is outside the composite.
>
> For example, we put a composite and a JComboBox into the VE. The JComboBox
> is under the composite. Our composite contains a JLabel, and we want to
> horizontally align this JLabel with the JComboBox.
>
> The composite has a property for the JLabel's x, so we can use the
> Property Sheet to move the JLabel left and right within the composite.
>
> The problem is SEEING that the JLabel is exactly aligned with the
> JComboBox. Displaying a grid on the VE's background would solve this
> problem.
>
> Is there a simple way to display this grid?
>
> Thanks,
> Eli
|
|
|
Re: How can I display a grid as a background in the VE? [message #617005 is a reply to message #144118] |
Wed, 26 March 2008 10:36  |
Eclipse User |
|
|
|
There are two issues in your email:
1. Alignment
You can align the elements by the alignment commands.
2. Grid display
Set the "Show Grid when container or its children are selected"
preference of VE
Windows->Preferences->Java->Visual Editor
Yves YANG
---
http://www.soyatec.com/
"Eli Lato" <eli_lato@hotmail.com> wrote in message
news:13653398.11791206441334697.JavaMail.root@cp1.dzone.com...
> We put a composite component in the VE.
> We want to horizontally align a component that is within this composite
> with another component that is outside the composite.
>
> For example, we put a composite and a JComboBox into the VE. The JComboBox
> is under the composite. Our composite contains a JLabel, and we want to
> horizontally align this JLabel with the JComboBox.
>
> The composite has a property for the JLabel's x, so we can use the
> Property Sheet to move the JLabel left and right within the composite.
>
> The problem is SEEING that the JLabel is exactly aligned with the
> JComboBox. Displaying a grid on the VE's background would solve this
> problem.
>
> Is there a simple way to display this grid?
>
> Thanks,
> Eli
|
|
|
Powered by
FUDForum. Page generated in 0.05702 seconds