
-----------------------------------
Aziz
Sat Jul 09, 2005 10:25 am

SWING and layout question
-----------------------------------
Yes, I know, I'm annoying, I mean, look at all my help topics?? Holy crap, psycho!!! Anyways, my problem. In my program, the character manager as you all know by now, I have the text area. Now I want to make it so that when I resize the window, that and ONLY that (the text area) gets bigger. Now, before, i had it set to a kind-of-large number of rows, past the viewable  window (its in a scrollpane), but when i resize to the maximum size of the text area, all the other components stretch, now, what can i do to fix this? I'm using a Spring layout...

-----------------------------------
1of42
Sat Jul 09, 2005 1:01 pm

Re: SWING and layout question
-----------------------------------
Yes, I know, I'm annoying, I mean, look at all my help topics?? Holy crap, psycho!!! Anyways, my problem. In my program, the character manager as you all know by now, I have the text area. Now I want to make it so that when I resize the window, that and ONLY that (the text area) gets bigger. Now, before, i had it set to a kind-of-large number of rows, past the viewable  window (its in a scrollpane), but when i resize to the maximum size of the text area, all the other components stretch, now, what can i do to fix this? I'm using a Spring layout...

I think the only layout manager that will allow you to do that kind of thing is the GridBagLayout manager.

-----------------------------------
Aziz
Sat Jul 09, 2005 1:33 pm


-----------------------------------
Oi, I see. Thanks. Know of a good tutorial on it? Sun's is kind of confusing :S

-----------------------------------
1of42
Sat Jul 09, 2005 6:12 pm


-----------------------------------
Unfortunately, no. I was looking for one myself.
