Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java NetBeans Calculator 5of5

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
32,077
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 21, 2008

The last video adds code for the decimal button.

Category:

Education

Tags:

License:

Standard YouTube License

    +1'd by 1 people
  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (mdumser)

  • yeah its so helping and enjoyable. thank for video. but i think there should a tag on display cause we try to calculate a huge amount the numbers are out of display. is this possible to restrict display up to limited numbers??

  • yes

  • sehr gutes Video mit lerneffekt!

    das ein oder andere mal konnte man den Quellcode schlecht lesen aber ansonsten TOP!

  • Danke fuer den Kommentar. Du meinst bei Nummer Drei(?), ja da ging mir die Zeit aus um es wieder zumachen. :)

  • good vids followed them through. really helpful thanks

    - although just so u know sometimes u cannot see what u have written(took a bit of pausing just at the right moment :P), i think it happens in vid 3 most

  • I know, sorry about the video. Kinda new at it.

see all

All Comments (62)

Sign In or Sign Up now to post a comment!
  • @xXxjheyxXx try this StringBuilder sb=new StringBuilder(display.getText(­)); sb=sb.delete(sb.length()-1, sb.length()); display.setText(sb.toString())­;

  • verryy good i am beginner for swings ,it ws verry helpfull

    to save memory u culd have used boolean :) rather that =0 and >0 ,boolean is meant fr the same :)

  • @251progression hey dude, thx fr highlighting

    same was in my mind earlier :)

    by the way,there is no need to take another variable,

    jst make decimalClick=1 on equal to press.

  • I have a small improvement: As the code is now, you can click the decimal-button after the equals(answer)-button and get a second decimal in the display - yielding an error. To remove this way of adding a second decimal, add a new variable called "int equalsClick;" in the top of the code. In the code for the clear button add: "equalsClick=0;" and in the equals-button code add: "equalsClick=1;". Finally in the decimal-button code replace the "if" code with "if(decimalClick==0 && equalsClick==0)"

  • thanx for the tutorials, its help me alot

  • @emartinez117

    +/- button works

    use this code on button: plusminus = (Double.parseDouble(String.val­ueOf(display.getText()))); plusminus = plusminus*(-1);

     display.setText(String.valueOf­(plusminus));

  • not complete ¬¬

  • @mdumser mdumser im having trouble with the clear button

  • tnx much for this... ^_^ hope you can share more good application using netbeans... here is my email: act_fellado@yahoo.com

    tnx much2x...

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more