Immediate Resizing of JSplitPane and its Components

74 views Asked by At

I have two questions about resizing a JSplitPane.

I would like to force the resizing-process of a JSplitPane to happen while I'm dragging the divider and not when I release the mouse button. How can I implement this?

The second question is about pushing the right side content of a JSplitPane over the frame boundaries. When I'm dragging the divider and for example a JTextField touches the frame border or I'm dragging it over the border it completely disappears. Does anyone know why this happens and how I could prevent this?

I thank you very much for your help!

1

There are 1 answers

0
Maksim Pelevin On

Can help with first question use JSplitPane.setContinuousLayout(true);