Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //dentro del constructor
- JPanel panel2 = new JPanel();
- panel2.setBorder(new TitledBorder(null, "Notas del estudiante", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel2.setBounds(42, 253, 266, 99);
- panel2.setLayout(null);
- JLabel lblPromedio = new JLabel("Promedio:");
- lblPromedio.setBounds(23, 28, 68, 15);
- lblPromedio.setFont(new Font("Tahoma", Font.PLAIN, 13));
- panel2.add(lblPromedio);
- JLabel lblCondicion = new JLabel("Condicion:");
- lblCondicion.setFont(new Font("Tahoma", Font.PLAIN, 13));
- lblCondicion.setBounds(23, 61, 68, 15);
- panel2.add(lblCondicion);
- txtPromedio = new JTextField();
- txtPromedio.setEditable(false);
- txtPromedio.setBounds(98, 24, 120, 25);
- panel2.add(txtPromedio);
- txtCondicion = new JTextField();
- txtCondicion.setEditable(false);
- txtCondicion.setBounds(98, 57, 120, 25);
- panel2.add(txtCondicion);
- getContentPane().add(panel2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement