Horizontal Resizing

Hello dear community.

I have a stupid question.

i have a code which builds two components. it works fine but i want to horizontal resize this components with mouse when i move mouse on the border between components.

JPanel view =new JPanel(new BorderLayout());

createBusinessTree();

JScrollPane sp =new JScrollPane(businessTree);

view.add(sp, BorderLayout.WEST);

requestItemsTable =new RequestItemDataTable(requestService);

JScrollPane sp1 = getComponentFactory().createScrollPane(requestItemsTable.getControl());

view.add(sp1, BorderLayout.CENTER);

return view;

here is a code!

[819 byte] By [sdo.semenova] at [2007-11-27 8:16:56]
# 1
Use a split pane: http://java.sun.com/docs/books/tutorial/uiswing/components/splitpane.html-Puce
Pucea at 2007-7-12 20:02:02 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thank' s a lot for quick and useful answer. it works really :)
sdo.semenova at 2007-7-12 20:02:02 > top of Java-index,Desktop,Core GUI APIs...