1

Is there any way to keeps focus of a JInternalFrame, I mean, always focused until it closed or showVisible(false) etc? I already search for a while but I only found a "temporary" focus, that is when you click another JInternalFrame (for example) the focus switched. Thanks.

ordinarydot
  • 147
  • 1
  • 2
  • 7

2 Answers2

3

Don't use a JInternalFrame for this. Use a modal JDialog.

camickr
  • 321,443
  • 19
  • 166
  • 288
1

Closing a modal JInternalFrame See the one by me (Mr. Zen)

Community
  • 1
  • 1
Mr. Zen
  • 704
  • 3
  • 7
  • 17