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,107
  • 18
  • 130
  • 305
Junaid
  • 2,312
  • 6
  • 39
  • 71

1 Answers1

3

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

See:

Community
  • 1
  • 1
Eng.Fouad
  • 111,301
  • 67
  • 311
  • 403
  • 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