-1

I have to create a multitext editor, and when you open the a new frame it should appear on top of all the others, but must remain on the same level so it could fall to the very back when needed. Whats the easiest way to do this? I have tried the moveToFront function but it doesn't seems to work.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Kyle
  • 1

1 Answers1

3

Read the section from the Swing tutorial o How to Use Internal Frames for a working example.

The key would appear to the setSelected(true) method.

camickr
  • 321,443
  • 19
  • 166
  • 288