Netbeans Basic Java Swing User Interface Application (Windows 10)

Publicado el: 31 mayo 2017
en el canal de: Alan Wood
304
1

Creates a simple SWING GUI to convert inches to centimetres (by mistake! I intended to do millimetres, as the labels say, but put 2.54 in place of 25.4).

Software: Netbeans 8.2, JDK 1.8_91, Windows 10.

The code for the conversion is

float inch,mm;

inch = Float.parseFloat(jTextField1.getText());
mm = inch * (float)25.4.;
jTextField2.setText(String.valueOf(mm));

You could add

private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt); }

to make the conversion happen as you change the inch box.


En esta página del sitio puede ver el video en línea Netbeans Basic Java Swing User Interface Application (Windows 10) de Duración hora minuto segunda en buena calidad , que subió el usuario Alan Wood 31 mayo 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 304 veces y le gustó 1 a los espectadores. Disfruta viendo!