It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes My code does not run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "My code does not run" Watch "My code does not run" New topic

My code does not run

paulo cs
Ranch Hand

Joined: Dec 30, 2008
Posts: 34
Hi, good morning. Happy new year for all. I've a code, but it does not run. Before it was running but now it stopped. Bellow my code. Tanks for any help.

Paulo Correa, Desenvolvimento de Software, (55 19)8126-8418
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

The problem is here

What is sair? It is not a String neither an object refrence. I just changed the code to

[ December 31, 2008: Message edited by: Himanshu Gupta ]

My Blog SCJP 5 SCWCD 5
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

What is the error, It helps us a lot, If you specified the problem or an error, then putting simply a full code !

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46424
Sagar Rohankar is correct: read this FAQ.

That doesn' tlook like good design, that there are not individual Listeners for the Buttons. And you appear to have two inner classes with the same name.

Best to learn how to design Listeners so as to use a different Listener for each Button. That sort of thing is usually discussed on the Swing forum, so I shall move you there.
I agree. Here's the link:
subject: My code does not run
It's not a secret anymore!