-1

I am working with Swing and I am new to it.

When I click a button, new window will open (a JFrame), and I want to deny the user from selecting the background window unless and until he closes the new window. New Window should not minimize and maximize also.

How to achieve this?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
vinay b.a
  • 1
  • 1

1 Answers1

5

Use a modal JDialog instead.

See also The Use of Multiple JFrames, Good/Bad Practice?

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