Help - Search - Members - Calendar
Full Version: Problem With Swing Component
BleepingComputer.com > Software > Programming
   
Trap
Hi all,

I working with application client/server. I need to show a msg when the client access.

My problem is with eclipse when I am running Swing component.
The window doesn't appear anywhere.

This is the part of the code where the window should be run:

CODE
Thread t = new Thread() {
      public void run() {
           javax.swing.JOptionPane.showMessageDialog(null,
           "My problem is that I cannot get this dialgo box pop up!"); }
       };

t.start();




When I run the client and the server as stand-alone JAR files, the swing windows appear.
Meaning, these windows do NOT appear when I run things from inside the Eclipse IDE. No, no windows are hidden or whatsoever.

I'm using Java 1.5.0 update 7.
The OS: Windows XP
Under Eclipse SDK 3.2

Any one have an idea about this problem ?
groovicus
Not without seeing the rest of your code.
Trap
QUOTE(groovicus @ Aug 14 2006, 12:10 PM) *
Not without seeing the rest of your code.



Hi groovicus,

What do you mean by the rest of my code, do you want me to put the whole project!!!!!!!!

As you see, the problem is not from the code, it is with running thread with a swing using eclipse IDE.


Anyhow, thanxx for passing


trap
groovicus
Things like seeing how you are calling the thread might be helpful, but in retrospect, it appears to be some sort of quirk with Eclipse. Since I am not familiar with Eclipse, and it is likely not a coding issue, you may want to consider the Eclipse help forum and see what they have to say. I am always interested in idiosynchrosies of various IDEs.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.