Calculator

Published  Nov 06, 2011
Updated  Nov 06, 2011
URL 

Description

Third time's a charm right? Anyways it's a small fairly simple calculator to, if nothing else, demonstrate JFrame's and GUI's in Java. You can enter said equation to be evaluated through the coded buttons or you can type it in the editbox and solve. I packaged it into an Executable JAR for the sake of easy testing and or usage. The zip file, however, includes the source file for those who wish to dissect it (Not that there's much to dissect).

As always constructive criticism is more than welcome, as any coder would I'd hope.

All the best.
-SunnyD

Screenshots

Download

Filename
Size
Date
Downloads
  JCalc.zip
4.42 KB
Nov 06, 2011
78

Comments

Sign in to comment.
SunnyD   -  Jul 05, 2012
Ah, I have an account with Webhost000.com as well. JDK is the basis on which Java is developed. So, if you wish to do Java, you'll have to download and install it. Textpad is a great text editor for Java, since it can pickup the SDK compile, Execute, and applet commands either during the install or post-install in the configuration menu.

I'm not the creative type, so making websites is a tad tough for me, but Javascript, CSS, PHP, HTML are all excellent starts to creating a nice webpage. CSS for visual mechanics but the other three are all great underlying mechanics to direct and collect data from clients. However, unless you have something like ApacheTriad to test snippets and designs on your local machine, you'll have to upload it to the site to get the full effects of the underlying code.
 Respond  
blackvenomm666   -  Jul 04, 2012
never heard of jdk. lol the only stuff i've done is msl and a very little html. www.ryanswebsite.comuv.com yes i know it's not the best but eh it's the first one i did and i did it all in notepad. but i was thinking i could learn java,javascript and other stuff that i can use on my website and make it look better
 Respond  
SunnyD   -  Jul 04, 2012
Haha, all in good time. :) If you're looking at starting into Java, I'd be happy to help with any and all questions you may have. Have you setup JDK yet?
 Respond  
blackvenomm666   -  Jul 04, 2012
lol i have no clue about anything you said there. i've never worked with this kind of coding soo yea gonna be a learning experience
 Respond  
SunnyD   -  Jul 04, 2012
Thanks. :)

Just got done examining the code, and it seems I could knock down the line count, more or less, about 35 lines. The JButton components could be contained in an array of the same type, and a "for" loop could cut out about 20 lines of code as well, in the constructor method that is. Either way it gets the job done I suppose.

@blackvenomm666 Feel free to, that's what I posted it for. :)
 Respond  
blackvenomm666   -  Jul 04, 2012
nicely done i'm going to try and dissect it and learn:D
 Respond  
bettyjmaar   -  Jul 04, 2012
That's nice simple way in java.



<a href="http://www.forleasebyowner.com">rental homes</a>
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.