my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes GUI wont show on some systems? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GUI wont show on some systems?" Watch "GUI wont show on some systems?" New topic

GUI wont show on some systems?

peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
hi javaranch..

i have a very strange problem some people are experiencing my GUI not to show on there system??

it shows and works on my 2 systems that i test it with but other people seem to be having problems with the main GUI not showing at all??

i have got them to update the JDK and JRE but it still fails....

is there a catch i can use when i launch a desktop app to tell me what the problem is as there is no errors or anything just wont start,...

here is what the lauch looks like...

even if i disable the new StartupScreen the main GUI just dont start??

any idea or do you need more code??
Stephan van Hulst

Joined: Sep 20, 2010
Posts: 4594

So the startup screen *does* show, but not the main GUI?

What does the launch method do?

The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
on the system that does not show the mainGUI does show the startupScreen if it is enabled..........
if the startupScreen has been disabled it wont show the EncoderHDView GUI???

no errors and only happens on a couple of machines.....

i have this at the moment to try and test to see why it will fail

but not sure how i can force a error or debug it some how so i know why it is not showing???

it works on 98% of machines but some dont... i have tested it on xp/win7 they work fine on my system but not some peoples...

the fact that it still shows the startupScreen on the failing machine but not the main app makes me think i am doing something wrong...

but i just need to get a error or something back telling what it thinks is wrong??

its a java desktop application

Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2446
Make sure all code executes on the EDT.
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
ok progress

it seems this will give me the presious error but still not enough detail i get this error now..

java.lang.NumberFormatException:For input string: "12,20" ".

is there a way for the error to be the full lenght error with code lines etc like when you debug it in a IDE??

as that 1 line just aint enough info do i need more then a JOptionPane to show the whole error or do i need a different catch??
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

1) check your logs; the entire exception is logged.
2) call e.printStackTrace()

How To Ask Questions How To Answer Questions
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
ok will give it a try...

i have to wait for the other person to get back to me as its not my system that has this problem..


thanks for your help..
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41

e.printStackTrace() worked a treat printed out the full error so i can fix it and have thanks for your great help..

this what i put in the end....

I agree. Here's the link:
subject: GUI wont show on some systems?
jQuery in Action, 3rd edition