Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is there a Simple way how to get a sizable dialog.
Is there a Simple way how to get a sizable dialog. [message #448636] Wed, 12 January 2005 16:57 Go to next message
Pelle Svensson is currently offline Pelle SvenssonFriend
Messages: 77
Registered: July 2009
Member
Hi

I'm not the best Java programer so I need some help creating a sizable
dialog. I have downloaded and installed Jigloo as help.

I would like to create a sizable dialog in the same way as I do with
Borland Builder (C++), Delphi (pascal) or (VB)

You just place a number of items with give coordinates and sizes.
Then you anchor each control's left/top/right/bottom with a given
distance relative to the edges of the dialog.

As example a text box's top and bottom are anchored to the top of
the dialog, left side anchored to the left side, and the right
size is anchored right. Now the box's width follow the width
of the dialog but not the height.

Java is the most popular stuff right now and there must be a
easy way to do this. If not then Java programers are
happy as long the don't start using other languages.

Any help solving my Java problem!
Re: Is there a Simple way how to get a sizable dialog. [message #448687 is a reply to message #448636] Thu, 13 January 2005 07:28 Go to previous message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi,

you have to implement a jface.dialog with the style SWT.RESIZE an with a
GridLayout in it. Then you can tell any widget in the GridLayout if it
should change size or not.

Bye Stefan

"SpeedadeYxa" <pelle2004@hotmail.com> schrieb im Newsbeitrag
news:cs3l0v$4br$1@www.eclipse.org...
>
> Hi
>
> I'm not the best Java programer so I need some help creating a sizable
> dialog. I have downloaded and installed Jigloo as help.
>
> I would like to create a sizable dialog in the same way as I do with
> Borland Builder (C++), Delphi (pascal) or (VB)
>
> You just place a number of items with give coordinates and sizes.
> Then you anchor each control's left/top/right/bottom with a given
> distance relative to the edges of the dialog.
>
> As example a text box's top and bottom are anchored to the top of
> the dialog, left side anchored to the left side, and the right
> size is anchored right. Now the box's width follow the width
> of the dialog but not the height.
>
> Java is the most popular stuff right now and there must be a
> easy way to do this. If not then Java programers are
> happy as long the don't start using other languages.
>
> Any help solving my Java problem!
>
Previous Topic:GC - Hows to draw over controls.
Next Topic:testing...
Goto Forum:
  


Current Time: Mon Nov 18 04:01:16 GMT 2019

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

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

Back to the top