event-dispatch-thread
Detecting that JVM is shutting down
I have a Swing application that handles Ctrl+C using addShutdownHook(), and it works fine until one of the shutdown tasks I have calls a function that under normal circumstances changes a JLabel text,[详细]
2023-03-22 13:50 分类:问答Background job running without affecting the rest of the gui
I\'m asking for assistance concerning a general approach. I have written some java code to check my mailbox for unread mails on buttonclick.[详细]
2023-03-22 03:56 分类:问答Why is my JTextArea not updating?
I have codeas follows: class SimplifiedClass extends JApplet { private JTextArea outputText; /开发者_JAVA百科/ Lots of methods[详细]
2023-03-22 02:58 分类:问答Repainting in a multithreaded environment
i am working on an applet with around ten different datasources(e.g. statistics/error-log/...). Each datasource is updated by a single network connection and reports updates via the observer mechanism[详细]
2023-03-07 21:50 分类:问答Demo from Sun doing GUI stuff outside the EDT?
I am looking at SplashDemo.java from the Java Sun tutorials. The class illustrates how to create splash screens when an application starts up. SplashDemo creates a frame directly in the main method. I[详细]
2023-03-07 17:18 分类:问答In Java, Can I have a routine called every time the event-dispatch-thread returns from handling an input event?
I am working on a GUI, and I have a routine to update the display when things chan开发者_如何学Cge underneath:[详细]
2023-03-04 01:15 分类:问答How to run two components in Event dispatch thread at the same time?
I have a JButton that when i click on it, i load some data from a database + initialize a JDialog that has many controls + fill those controls with the loaded data then show that slow JDialog. This ta[详细]
2023-03-02 03:39 分类:问答Java EventQueue. Why should everything be in invokelater method?
in the book that i\'m reading, every example of GUI with multithreading has something like that: public static void main(String[] args) throws Exception[详细]
2023-02-28 09:00 分类:问答hiding button, then waiting 2 seconds before showing it again, after clicking the button
I have this school project I\'m making, where I need to make my code hide a button, and then sleep, and then continue, but it never hides the button.[详细]
2023-02-27 21:14 分类:问答How to view everything running on the event thread
We are experiencing a bug we cannot track down where something is freezing up our swing thread (it\'s been almost 2 weeks now and no real results) - we are experienced Swing programmers but we have 开[详细]
2023-02-26 06:03 分类:问答