Saturday, July 20, 2013

NetBeans 10

Tips:
For checking Condition use if
For using choice use Switch()
For repeated loop use for,while or do while

Thursday, July 18, 2013

lesson 9







private void txtsStateChanged(javax.swing.event.ChangeEvent evt) {                                  
int c = txts.getValue();
txtc.setText(""+c+"CELCIUS");
int f = ((c*9)/5)+32;
txtf.setText(""+f+"FAHRENHEIT");

    }

netbeans lesson 8




private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
System.exit(0);
    }                                       

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
 txtcn.setText(" ");
 txtp.setText(" ");
 txtt.setText(" ");
 txtr.setText(" ");
 txtsi.setText(" ");
 txtta.setText(" ");
    }                                       

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
String cn = txtcn.getText();
int p = Integer.parseInt(txtp.getText());
int t = Integer.parseInt(txtt.getText());
int r = Integer.parseInt(txtr.getText());
double s,ta ;
s = (p * r * t)/100 ;
ta = ( p+s) ;
txtsi.setText(" "+s);
txtta.setText(" "+ta);
    }                                       

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new SI().setVisible(true);
            }
        });
    }

  A Potential Showdown: Kamala Harris vs. Donald Trump As the political landscape gears up for the next election cycle, the prospect of a fa...