[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
After clicking Exit Button, How to get "Thank you" with picture  XML
Forum Index » Applets
Author Message
sumitdhruv

Newbie

Joined: 01/02/2010 07:42:38
Messages: 1
Offline

/*I have code this program in netbeans 6.5, also i have attached the file where i have wrote down my doubts about this application*/

private void CalcBtnActionPerformed(java.awt.event.ActionEvent evt) {

float vAmtTF = Float.parseFloat(AmtTF.getText());
double vDiscTF = 0;
//double vNetTF = 0;
double vDiscount = 0;

if(visaRB.isSelected())
vDiscount = 0.2;

else if(xyzRB.isSelected())
vDiscount = 0.15;

else if(abcRB.isSelected())
vDiscount = 0.1;

vDiscTF = vAmtTF*vDiscount;
DiscTF.setText(" " + vDiscTF);

NewClass.vNetTF = vAmtTF-vDiscTF;
NetTF.setText(" " + NewClass.vNetTF);

dlgLBL.setText("Your net Bill Amount is " + NewClass.vNetTF);
jDialog1.setVisible(true);


// TODO add your handling code here:
}

private void ExitBtnActionPerformed(java.awt.event.ActionEvent evt) {
new NewJFrame().dispose();
}

private void okBActionPerformed(java.awt.event.ActionEvent evt) {
jDialog1.dispose();

}

private void ClearBtnActionPerformed(java.awt.event.ActionEvent evt) {

AmtTF.setText(" ");
DiscTF.setText(" ");
NetTF.setText(" ");
// TODO add your handling code here:
}
[Thumb - Questions.jpg]
 Filename Questions.jpg [Disk] Download
 Description
 Filesize 382 Kbytes
 Downloaded:  12 time(s)

This message was edited 1 time. Last update was at 01/03/2010 07:49:16

 
Forum Index » Applets
Go to:   
Powered by JForum 2.1.8 © JForum Team
This site built by Scott Dunbar of Xigole Systems. © 2005-2010 - Scott Dunbar
Java and the Java Get Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.
hotjoe.com and xigole.com have no affiliation with Sun Microsystems, Inc.