Advertisement
julibar

Ej2 - Parte 3

Apr 25th, 2025 (edited)
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1. //dentro del constructor
  2.  
  3.         JPanel panel2 = new JPanel();
  4.         panel2.setBorder(new TitledBorder(null, "Notas del estudiante", TitledBorder.LEADING, TitledBorder.TOP, null, null));
  5.         panel2.setBounds(42, 253, 266, 99);
  6.         panel2.setLayout(null);
  7.        
  8.         JLabel lblPromedio = new JLabel("Promedio:");
  9.         lblPromedio.setBounds(23, 28, 68, 15);
  10.         lblPromedio.setFont(new Font("Tahoma", Font.PLAIN, 13));
  11.         panel2.add(lblPromedio);
  12.        
  13.         JLabel lblCondicion = new JLabel("Condicion:");
  14.         lblCondicion.setFont(new Font("Tahoma", Font.PLAIN, 13));
  15.         lblCondicion.setBounds(23, 61, 68, 15);
  16.         panel2.add(lblCondicion);
  17.        
  18.         txtPromedio = new JTextField();
  19.         txtPromedio.setEditable(false);
  20.         txtPromedio.setBounds(98, 24, 120, 25);
  21.         panel2.add(txtPromedio);
  22.        
  23.         txtCondicion = new JTextField();
  24.         txtCondicion.setEditable(false);
  25.         txtCondicion.setBounds(98, 57, 120, 25);
  26.         panel2.add(txtCondicion);
  27.        
  28.         getContentPane().add(panel2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement