Advertisement
julibar

Ej2 - Parte 6

Apr 25th, 2025 (edited)
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. //final del constructor
  2.  
  3.             btnNuevo.addActionListener(new ActionListener() {
  4.             public void actionPerformed(ActionEvent e) {
  5.                 nota1.setText("");
  6.                 nota2.setText("");
  7.                 nota3.setText("");
  8.                 txtPromedio.setText("");
  9.                 txtCondicion.setText("");
  10.                 comboTP.setSelectedIndex(0);
  11.             }
  12.         });
  13.        
  14.         JButton btnSalir = new JButton("Salir");
  15.         btnSalir.setFont(new Font("Tahoma", Font.PLAIN, 12));
  16.         btnSalir.setBounds(345, 213, 120, 30);
  17.         getContentPane().add(btnSalir);
  18.  
  19.         btnSalir.addActionListener(new ActionListener() {
  20.             public void actionPerformed(ActionEvent e) {
  21.                 dispose();
  22.             }
  23.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement