1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setBounds(new Rectangle(411, 887, 228, 26));
jButton.setBackground(Color.orange);
jButton.setText("Tout effacer");
jButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
n="";
jLabelCarbuAR.setText(""+n);
jLabelCarbuAV.setText(""+n);
jTextFieldSouteAR.setText(""+n);
jTextFieldPilote.setText(""+n);
jTextFieldHeureDecollage.setText(""+n);
jTextFieldMassePilote.setText(""+n);
jTextFieldEnfantsAR.setText(""+n);
jTextFieldEnfantsAV.setText(""+n);
jTextFieldFemmesAR.setText(""+n);
jTextFieldFemmesAV.setText(""+n);
jTextFieldHommesAR.setText(""+n);
jTextFieldHommesAV.setText(""+n);
jTextFieldpourcentage.setText(""+n);
jTextFieldSouteL.setText(""+n);
jTextFieldPassagers1.setText(""+n);
jTextFieldPassagers2.setText(""+n);
jTextFieldPassagers3.setText(""+n);
jTextFieldPassagers4.setText(""+n);
jTextFieldPassagers5.setText(""+n);
jTextFieldPassagers6.setText(""+n);
jTextFieldPassagers7.setText(""+n);
jTextFieldDepart.setText(""+n);
jTextFieldArrive.setText(""+n);
jTextFieldRoute.setText(""+n);
jTextFieldTpsVol.setText(""+n);
jTextFieldAltitude.setText(""+n);
}
});
}
return jButton;
} |