Conversor de temperatura en java

Solo disponible en BuenasTareas
  • Páginas : 3 (583 palabras )
  • Descarga(s) : 0
  • Publicado : 15 de enero de 2011
Leer documento completo
Vista previa del texto
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* conversor.java
*
* Created on 8/10/2010, 09:54:09 PM
*/

packagepracticaoejemplo3;

/**
*
* @author Administrador
*/
public class conversor extends javax.swing.JFrame {

/** Creates new form conversor */
public conversor() {
initComponents();}

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated bythe Form Editor.
*/
@SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {

jSlider1 = new javax.swing.JSlider();
far =new javax.swing.JProgressBar();
jLabel2 = new javax.swing.JLabel();
kel = new javax.swing.JProgressBar();
ke = new javax.swing.JTextField();
fa = newjavax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jSlider1.setMinimum(-100);jSlider1.setOrientation(javax.swing.JSlider.VERTICAL);
jSlider1.setValue(0);
jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {
public voidstateChanged(javax.swing.event.ChangeEvent evt) {
jSlider1StateChanged(evt);
}
});

far.setMaximum(212);
far.setMinimum(-148);
far.setValue(-148);jLabel2.setText("º F");

kel.setMaximum(373);

jLabel3.setText("º K");

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)...
tracking img