File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "My code does not run" Watch "My code does not run" New topic
Author

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




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

My Blog SCJP 5 SCWCD 5
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
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.
 
 
subject: My code does not run
 
Similar Threads
What is wrong with my code?
Form calliing other form
JTextField and JButton: share the same event handler
GUI
ButtonHandler issue