Advertisement
julibar

Ej2 - Parte 5

Apr 25th, 2025 (edited)
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. //de nuevo dentro del constructor:
  2.  
  3.         btnCalcular = new JButton("Calcular");
  4.         btnCalcular.setFont(new Font("Tahoma", Font.PLAIN, 12));
  5.         btnCalcular.setBounds(345, 112, 120, 30);
  6.         getContentPane().add(btnCalcular);
  7.        
  8.          btnCalcular.addActionListener(new ActionListener() {
  9.             public void actionPerformed(ActionEvent e) {
  10.                 calcularCondicion();
  11.             }
  12.         });
  13.        
  14.         JButton btnNuevo = new JButton("Nuevo");
  15.         btnNuevo.setFont(new Font("Tahoma", Font.PLAIN, 12));
  16.         btnNuevo.setBounds(345, 162, 120, 30);
  17.         getContentPane().add(btnNuevo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement