0

After loading a pane with checkBoxes and then loading that back into the ScrollPane. Then I'm only able to see the new content after first minimizing then restoring the window.

if_zero_equals_one
  • 1,636
  • 4
  • 17
  • 30

3 Answers3

1

you can also use updateUI() method as

aScrollPane.updateUI();

that shoud refresh you graphics :)

user592704
  • 3,594
  • 11
  • 68
  • 106
0

Sounds like you just need to do a repaint() on your ScrollPane when you switch to it.

Paul
  • 135,475
  • 25
  • 268
  • 257
0

The use of topLevelContainer.validate(); works just fine in this example.

Community
  • 1
  • 1
Andrew Thompson
  • 166,747
  • 40
  • 210
  • 420