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,
I\'m asking for assistance concerning a general approach. I have written some java code to check my mailbox for unread mails on buttonclick.
I have codeas follows: class SimplifiedClass extends JApplet { private JTextArea outputText; /开发者_JAVA百科/ Lots of methods
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
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
I am working on a GUI, and I have a routine to update the display when things chan开发者_如何学Cge underneath:
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
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
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.
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 开