1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| public class EditSond extends JFrame implements WindowListener
{
private JTextField titreSond;
private MaFen fen;
private JButton bSupprQ;
private JButton bNouvQ;
public EditSond (String title, int x, int y)
{
super(title);
JPanel j;
this.setBounds (x,y,400,400);
this.setResizable (false);
this.titreSond = new JTextField (25);
j = new JPanel ();
j.add (this.titreSond);
this.add (j, BorderLayout.NORTH);
this.titreSond.setDocument (new BloqueJtextField(this,55));
}
} |