Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How can I display a grid as a background in the VE?
How can I display a grid as a background in the VE? [message #144118] Tue, 25 March 2008 10:35 Go to next message
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 14:36 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
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 14:36 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
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
Previous Topic:How can I display a JDialog in the VE?
Next Topic:graphical SWT development
Goto Forum:
  


Current Time: Thu Oct 30 12:30:51 GMT 2014

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

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