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");

    }

No comments:

Post a Comment

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