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
| public class arbre extends javax.swing.JFrame {
public List drawable=new LinkedList();
public Rectangle R=new Rectangle();
/** Creates new form arbre */
public arbre() {
initComponents();
pack();
setVisible(true);
}
private void //Bouton permettant afficher le nbre
//d'element dela liste
jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
verif ver=new verif();
ver.affiche();
}
private void //Bouton permettant de remplir la liste jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
R.setBounds(20,20,20,20);
drawable.add(R);
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
// End of variables declaration
} |