This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Please rescue me out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Please rescue me out" Watch "Please rescue me out" New topic

Please rescue me out

jide agboola

Joined: Nov 11, 2006
Posts: 9
I tried to build a simple calculator with three textFields, for data X and Y to yield result Z on the third TextField, with five Buttons for each arithmetic operator and clear button.

This is my code

i have only added Listerner to the add button.
i dont know i still keep getting errors.

When you are going through Hell, you keep going<br /> <br /> Winston Churchill.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
remove everything unrelated to the construction of the gui
all the listener code

now you can concentrate on getting the gui to display.
when it diaplays OK, then add the listeners/functionality
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Please rescue me out
It's not a secret anymore!