0

Im trying to update myJSplitPane` components directly after I drag the divider. I enabled instant updating of the components when I drag the divider.

My problem is that the components getting resized a bit later than I drag the divider; that looks a littlebit confusing.

Image of my Window at resizing

enter image description here

You can see the JScrollPane outside the window. I want to avoid that problem.

I tried: - Property change listener - Thread with 60fps

Nothing helps.

//SOLVED Added a BorderLayout to my Panel and set the setPreferredSize as I need it.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
bitQUAKE
  • 473
  • 1
  • 8
  • 19
  • `I`m trying to update my JSplitPane Components directly after i drag the divider.` - why by using - `Property Change listener - Thread with 60fps`, use LayoutManager instead – mKorbel Jun 07 '14 at 10:46
  • for better help sooner post an SSCCE/MCVE, short, runnable, compilable – mKorbel Jun 07 '14 at 10:46
  • [Don't use `setPreferredSize()` when you really mean to override `getPreferredSize()`](http://stackoverflow.com/q/7229226/230513). You can [answer your own question](http://meta.stackoverflow.com/q/17463/163188). – trashgod Jun 07 '14 at 13:12

0 Answers0