aspose file tools
The moose likes I/O and Streams and the fly likes please help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "please help needed " Watch "please help needed " New topic
Author

please help needed

Fatima Waqar
Greenhorn

Joined: Jan 12, 2012
Posts: 3
please correct this code out for me...


Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

This is NotACodeMill. What is the problem?
Fatima Waqar
Greenhorn

Joined: Jan 12, 2012
Posts: 3
Thank you so much for the response

The event handling in the scenario is not implemented with action listener .. I want to know how to do so..plus the catch block needs to be overviewed
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

There can't be two public classes within the same java file.
Fatima Waqar
Greenhorn

Joined: Jan 12, 2012
Posts: 3
What should be done then?
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

remove the public keyword.
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

There are small mistakes like space missing, actionPerformed case issue, various public classes etc.

I have corrected the code and it is now, not giving any compile errors. But please use a IDE (Netbeans/Eclipse) so that these silly problems will not occur and you can focus more on the logic.

Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 3133
In the future, please UseAMeaningfulSubjectLine
 
 
subject: please help needed
 
Threads others viewed
JTextArea and saving to a file
java program to create a file from user inputs.
JFrame doesn't display components at first
Document Listener and/or Ley Listener
IntelliJ Java IDE