0

I have an application say two major GUIs (College-JFrame and Department-JFrame). There is JButton - ManageDepartmentButton - that opens the Department-JFrame.

I want College-JFrame GUI to freeze or non-clickable when ever Department-JFrame is open.

And after Department-JFrame is closed I want to restore / un-freeze the College-JFrame.

Is there a way to do this? How? Or any work around?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Junaid
  • 2,572
  • 6
  • 41
  • 77

1 Answers1

3

Use College-JFrame as the main JFrame, but make Department-JFrame as modal JDialog.

See:

Community
  • 1
  • 1
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
  • And how to Open One `JDialog` from another `JDialog`? Like if I want to open `Faculty-JDialog` from `Department-JDialog` ? – Junaid Nov 30 '14 at 11:51