• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java scientific calculator (reposted)

 
Johnathan Nate
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use code tags!
It should look like this if you use it right:

And it will look like that ^^^.
Thanks,
cc11rocks

EDIT FOR REFERENCE: Using my HTML knowledge, I made the special characters appear. Here are some common codes that I used:
NOTE: These are with no spaces...I had to use no spaces otherwise you couldn't see the code:

Full list here: http://www.w3.org/MarkUp/html-spec/html-spec_13.html
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Since you are new, I have added the code tags for you.
What is the question? You appear not to have asked one.
Why on earth are you using addActionListener(this) and ActionCommands? That is poor, non-object-oriented design, and error-prone.
By "reposted" do you mean you have posted elsewhere? If so, thank you for notifying us. Did you get an answer on the other website?

Since this appears to be a GUI-related question, I shall move this thread to our GUIs forum.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Johnathan Nate , what is the problem in this code ? I want to learn from your example . Your code compiles and runs in my pc.

 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good stuff dude !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!