Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-11-2008, 01:24 PM   #1
LQ Newbie
Registered: Jun 2008
Distribution: Ubuntu (Fluxbox)
Posts: 28

Rep: Reputation: 16
java swing hangs

Hey guys

Im using ubuntu hardy, im also have a radeon 9250 card. I dont know why my swing isnt working. When i run a java program that contains a java swing frame, the program just hangs (the screen becomes black like when my computer is working hard). So then usaully i just abort the program. I have access to a remote machine that supports ssh -X, so i tried to run my program via ssh -X and the use their ecclipse, and the program worked fine. I am using the same compiler version for my eclipse (1.6) as that machine. Programs that doesnt contains swing runs perfect. JRE and JDK is updated.
Thank you.
Old 06-11-2008, 07:20 PM   #2
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Eclipse uses SWT, does it do it for Swing, SWT, or both? I had some problems with Java & Xgl. I fixed it by patching Xgl (can't remember where I got the patch) and compiling it. It's been working fine since I switched to AIGLX w/ my ATI card.
Old 06-12-2008, 08:59 AM   #3
LQ Newbie
Registered: Jun 2008
Distribution: Ubuntu (Fluxbox)
Posts: 28

Original Poster
Rep: Reputation: 16
Hey i got my problem fixed, i first installed eclipse and then java-jre, so then eclipse didnt use the updated jre, so i just had to change that setting in eclipse.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
a java-swing problem... shosh Programming 2 06-26-2009 06:38 AM
Java swing problem Veteq Programming 4 11-28-2006 04:06 PM
Tightvnc java swing interface linuxmandrake Linux - Software 0 11-30-2005 06:28 AM
java swing JTextArea gauravbagga Programming 1 05-23-2005 05:34 AM
Java help! Using Swing and Layouts Mega Man X Programming 7 02-05-2004 06:02 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration