Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with locking component sizes  RSS feed

 
Joonas Järvinen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iäam building an application that has forms with JTextFields and etc(duh). And at the moment I'am trying to lock their sizes. So they don't grow fat if window is resized. To this I'am using

in the X-axis components and BASELINE in the Y-axis ParallelGroups. But because one of my form looks like this:

label
I==I
label label
I==I I==I
label label
I==I I==I
[btn]

I==I is a text field.

So. How I'am supposed to lock that top group's text field when its compiled in Y-axis as SequentialGroup and because of that BASELINE cannot be applied to it.
 
salvin francis
Bartender
Posts: 1479
21
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Layouts are a Feature not a Bug,
2. Layouts such as flow do not modify the width and height of a component.
3. Use Absolute positioning for such requirements.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!