LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-11-2008, 12:24 PM   #1
tERn
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, 06:20 PM   #2
95se
Member
 
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, 07:59 AM   #3
tERn
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.
 
  


Reply


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 05:38 AM
Java swing problem Veteq Programming 4 11-28-2006 03:06 PM
Tightvnc java swing interface linuxmandrake Linux - Software 0 11-30-2005 05:28 AM
java swing JTextArea gauravbagga Programming 1 05-23-2005 04:34 AM
Java help! Using Swing and Layouts Mega Man X Programming 7 02-05-2004 05:02 PM


All times are GMT -5. The time now is 06:20 AM.

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