event-dispatch-thread
What is the (event-dispatch) thread safe usage for JOptionPane.showMessageDialog and swing.utils.invokeAndWait?
I have a simple groovy script that from its main thread of execution needs to display some dialog boxes to the user.[详细]
2023-02-21 13:37 分类:问答Is there a way to call JXTable.packAll() in a way that does not lock up the swing thread?
I am displaying lots of data in JXTable from the SwingX project.After loading the data, I call packAll() on the table but with 200 hundred columns and 30,000 records it might take 5 seconds or more.I\[详细]
2023-02-17 07:06 分类:问答Presenting a JFrame synchronously
I have this main JFrame (call it DrinkChooser) that shows another complex confirmation JFrame (call it ConfirmWin).[详细]
2023-02-07 06:42 分类:问答How to stop the Swing EDT
The typical Swing application starts the EDT at the beginning and when the last window is closed the Application stops basically with a System.exit either implicit or explicit.[详细]
2023-02-07 03:15 分类:问答Measuring "busyness" of the event dispatching thread
I would like to measure the \"busyness\" of my Event Dispatching Thread. One possible idea is to set up a background thread that does something like:[详细]
2023-01-31 16:58 分类:问答How can I catch Event Dispatch Thread (EDT) exceptions?
I am using a class called MyExceptionHandler that implements Thread.UncaughtExceptionHandler to handle normal exceptions in my project.[详细]
2023-01-31 05:04 分类:问答What's the correct way to run a code in the EDT only once?
I have a Swing application that uses a Java Thread to constantly perform some operation. The results of this operation update the contents of a graph in the UI:[详细]
2023-01-25 15:00 分类:问答How to retrieve a value that must be computed on another thread
There are many cases where thread A requires a value that must be computed on thread B.(Most commonly, B == EDT.)Consider this example:[详细]
2023-01-21 04:29 分类:问答Problem with updating the jTextArea
I am writing a RMI chat program. In my program I am able to receive and send messages, but i am not able to display it in the TextArea. I am not sure what is the error. I tried using Event Dispatch me[详细]
2023-01-20 04:13 分类:问答Static Thread Analysis: Good idea?
I help maintain and build on a fairly large Swing GUI, with a lot of complex interaction.Often I find myself fixing bugs that are the result of things getting into odd states due to some race conditio[详细]
2023-01-04 18:19 分类:问答