Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Problem With Swing Component


  • Please log in to reply
3 replies to this topic

#1 Trap

Trap

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:04:20 PM

Posted 13 August 2006 - 01:21 PM

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:

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 ?

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:20 PM

Posted 14 August 2006 - 12:10 PM

Not without seeing the rest of your code.

#3 Trap

Trap
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:04:20 PM

Posted 16 August 2006 - 11:07 AM

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

#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:20 PM

Posted 16 August 2006 - 11:25 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users