SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:I took a look at spring layout. But it looks way to complicated and with no guarantee that it is going to get my required layout and behaviour anymore than GridBagLayout will.
Paul Clapham wrote:
Sean Keane wrote:I took a look at spring layout. But it looks way to complicated and with no guarantee that it is going to get my required layout and behaviour anymore than GridBagLayout will.
Nevertheless... if you don't like the way GridBagLayout deals with your text field, you're going to have to use some other layout manager. Whether you download one (a couple have already been mentioned in this thread) or write your own is up to you.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranganathan Kaliyur Mannar wrote:This always shows the complete textfield - doesn't hide the border even when label is shrinked. This is because more weightage is given to the text field.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranganathan Kaliyur Mannar wrote:2) If you need the field to dynamically recude the size, I think the only option would be to write a ComponentListener for the JFrame. In the componentResized method, you should dynamically set the field's minimum size.
luck, db
There are no new questions, but there may be new answers.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD