How to 'freeze' a JFrame during program flow
843789Aug 26 2009 — edited Aug 26 2009Hi there Javers ;)
I've got a small question, It's rather Newbie than Swing category.
1. In my Java application a frame (let's say Frame1) with products list is displayed, and there is a button 'Add new product' too.
2. After pressing 'Add new product' button, another frame (let's say Frame2) is displayed, where You can fill data about new product and apply it to database, and to list from Frame1 too
But now when in step 2 Frame2 is displayed, Frame1 is visible too ... and I can switch between those two acive Frames. I mean I can click in Frame1, and its components, and perform some actions. And my question is ... what should I do to disable it. I mean determine in step 2 access only to Frame2, whilst Frame1 is still visible but 'freezed' that is user cannot switch to Frame1 until Frame2 acrion ends.
I would be thankful for tips. Greetings. P.