Freeze « JFrame « Java Swing Q&A





1. How to 'freeze' a JFrame during program flow    forums.oracle.com

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 ...

2. JFrame freezes...    forums.oracle.com

Your title means that your problem can be only one thing: a concurrency issue -- you are trying to run long processes on the Swing thread. The solution: don't do it! Use a background thread such as can be obtained with a SwingWorker object. For more on this read [Concurrency in Swing|http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/concurrency/index.html]

3. Sleep Freezes jFrame... help    forums.oracle.com