Problem when maximised

I have a GUI developed in swing using netbeans which covers the half of the screen. Its has some components say a TextArea and some TextFields.

When i maximises the GUI the size of the components remains the same but the gap increases. How can i solve this problem.

[278 byte] By [CodeXa] at [2007-11-27 11:01:19]
# 1

use borderlayout

dayanandabva at 2007-7-29 12:36:01 > top of Java-index,Desktop,Core GUI APIs...
# 2

Thanks..

but can u be more speciifc

CodeXa at 2007-7-29 12:36:01 > top of Java-index,Desktop,Core GUI APIs...
# 3

> Thanks..

> but can u be more speciifc

you need to specify a layout like borderlayout, gridLayout... etc.

all about layouts:

http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

Message was edited by:

Yannix

Yannixa at 2007-7-29 12:36:01 > top of Java-index,Desktop,Core GUI APIs...
# 4

Thanks yannix..

my problem is solved...

i had changed the layout using netbeans nw it works fine

CodeXa at 2007-7-29 12:36:01 > top of Java-index,Desktop,Core GUI APIs...