[nbusers] Calculator program (button functions)

  • From: "lizarrdo" < >
  • To:
  • Subject: [nbusers] Calculator program (button functions)
  • Date: Sun, 09 Dec 2012 23:17:35 -0500

SQRT, 1/X, %

I'm so confused. 

http://img708.imageshack.us/img708/3640/…

Here's a sample of my posneg and divide code. 

private void divideActionPerformed(java.awt.event.Act… evt) 

firstDouble=(Double.parseDouble(String.v…
display.setText("");
divideClick=1;
decimalClick=0;


private void posnegActionPerformed(java.awt.event.Act… evt) 

double plusminus = Double.parseDouble(String.valueOf(displa…
plusminus=plusminus*(-1); 
display.setText(String.valueOf(plusminus…


How can I apply this for the other buttons?




Attachments: 
http://forums.netbeans.org//files/calculator_807.zip



[nbusers] Calculator program (button functions)

lizarrdo 12/10/2012

[nbusers] Fwd: Calculator program (button functions)

jaya sapam 12/10/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close