Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT calculator

 
david torrance
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm beginner for JAVA and working on this program for my project.. I need your help that I have problem with COS, SIN, SQT, and dot (".") for calculator with using AWT. I believed that these problems because of conflict int and double.. Maybe other more errors. I hope you can tell me how to solve these problems. Thank you so much!

 
Piet Souris
Rancher
Posts: 1686
41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi David,

first of all: don't use the old AWT, use Swing.

Just had a glance at your code, can't comment on the contents yet, but I tried

and got an error here.
Have you compiled the program? What are the errors that you get reported?

Greetz,
Piet
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!