| ||||
Cita: http://www.forosdelweb.com/f45/como-puedo-ordenar-mi-formulario-java-componentes-graficos-242018/ package jun02; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.rmi.*; public class IU_VPT extends JFrame { JLabel jLabel1 = new JLabel(); JTextField jTextField1 = new JTextField(); JTextArea jTextArea1 = new JTextArea(); GestorPersonas g; public IU_VPT() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { jLabel1.setBounds(new Rectangle(17, 41, 131, 30));this.getContentPane().setLayout(null); this.setSize(new Dimension(400, 300)); this.setTitle("Pertsonen bilatzaile / Buscador de Personas"); jLabel1.setRequestFocusEnabled(false); jLabel1.setText("Telefonoa / Teléfono"); jTextField1.setBounds(new Rectangle(149, 40, 170, 33)); jTextField1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jTextField1_actionPerformed(e); } }); jTextArea1.setBounds(new Rectangle(45, 97, 261, 145));this.getContentPane().add(jTextArea1, null); this.getContentPane().add(jTextField1, null); this.getContentPane().add(jLabel1, null); } public void setLogicaNegocio(GestorPersonas gp) {g=gp;} void jTextField1_actionPerformed(ActionEvent e) { } |