Advertisement
julibar

Ej2 - Parte 2

Apr 25th, 2025
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1. //dentro del constructor
  2.        
  3.         JLabel lbl2 = new JLabel("Nota 2:");
  4.         lbl2.setFont(new Font("Tahoma", Font.PLAIN, 12));
  5.         lbl2.setBounds(35, 66, 46, 25);
  6.         panel.add(lbl2);
  7.         nota2 = new JTextField();
  8.         nota2.setBounds(91, 102, 136, 25);
  9.         panel.add(nota2);
  10.        
  11.         JLabel lbl3 = new JLabel("Nota 3:");
  12.         lbl3.setFont(new Font("Tahoma", Font.PLAIN, 12));
  13.         lbl3.setBounds(35, 101, 46, 25);
  14.         panel.add(lbl3);
  15.         nota3 = new JTextField();
  16.         nota3.setBounds(91, 67, 136, 25);
  17.         panel.add(nota3);
  18.        
  19.         JLabel lblTP = new JLabel("TP:");
  20.         lblTP.setFont(new Font("Tahoma", Font.PLAIN, 12));
  21.         lblTP.setBounds(45, 136, 34, 25);
  22.         panel.add(lblTP);
  23.         comboTP = new JComboBox<>(new String[]{"Aprobado", "Desaprobado"});
  24.         comboTP.setBounds(91, 137, 136, 25);
  25.         panel.add(comboTP);
  26.        
  27.         getContentPane().add(panel);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement