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,716
  • 4
  • 17
  • 30

3 Answers3

1

you can also use updateUI() method as

aScrollPane.updateUI();

that shoud refresh you graphics :)

user592704
  • 3,674
  • 11
  • 70
  • 107
0

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

Paul
  • 139,544
  • 27
  • 275
  • 264
0

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

Community
  • 1
  • 1
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433