"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!
You are creating your update thread from the invokeLater call. This is not how you use invokeLater invokeLater is for updating UI components from a separate thread. Call invokeLater passing a Runnable that updates your UI components from your separate thread.
You are creating your update thread from the invokeLater call. This is not how you use invokeLater. InvokeLater is for updating UI components from a separate thread.
Call invokeLater, passing a Runnable that updates your UI components, from your separate thread. For additional information, see the JavaDocs For example: // Start the window in the EDT. Public void start() { showWindow(); controller.start(); } // Defines the general properties of and starts the window.
Public void showWindow() { frame = new JFrame("Game"); frame. SetDefaultCloseOperation(JFrame. EXIT_ON_CLOSE); frame.
SetSize(600,400); frame. SetVisible(true); } // The thread controlling changes of panels in the main window. Private Thread controller = new Thread() { public void run() { // some long running process, I assume, but at // some point you want to update UI: SwingUtilities.
InvokeLater(new Runnable() { public void run() { frame. Add(generatePartnerSelectionPanel()); frame.invalidate(); frame.validate(); } }); } }.
You are right. I agree that I need to update components of GUI using the invokeLater. I did this changes in the code (I also mentioned it in the correction of the question).
But it did not solve the problem. – Roman Mar 22 '10 at 13:45 Did you change start as I suggested? – Randolpho Mar 22 '10 at 13:48 Well, I removed invokeLater from the start and it did not help.
Moreover, I think we should use the invokeLater there. As far as I know the GUI should be started in the event dispatch thread and invokeLater does it. – Roman Mar 22 '10 at 13:52.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.