-1

Possible Duplicate:
Making a JPanel manually resizable

I am doing a chat program with javaswing and I would like to create a separator that can adjust the dimension of 2 pannels "

enter image description here

The black line could reduce the height of the top panel and increase the bottom one.

How this is possiblle ? What layout sould I use ? Thank you very much.

Regards.

Community
  • 1
  • 1
Vincent Roye
  • 2,751
  • 7
  • 33
  • 53

1 Answers1

4

Try JSplitPane.

How to use SplitPanes?

Examples of JSplitPane

Harry Joy
  • 58,650
  • 30
  • 162
  • 207