Hola, creo que lo que buscas es algo como:
Código PHP:
public class Interfaz31 extends javax.swing.JFrame {
public Interfaz31() {
initComponents();
}
private void initComponents() {
jButton2 = new javax.swing.JButton();
jCheckBox1 = new javax.swing.JCheckBox();
jTextField1 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
}
});
jButton2.setText("Grabar");
getContentPane().add(jButton2);
jButton2.setBounds(160, 130, 73, 26);
jCheckBox1.setText("tiene numero?");
getContentPane().add(jCheckBox1);
jCheckBox1.setBounds(240, 220, 130, 24);
jTextField1.setHorizontalAlignment(javax.swing.JTextField.LEFT);
getContentPane().add(jTextField1);
jTextField1.setBounds(130, 30, 120, 20);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
jLabel1.setText("Nombre:");
getContentPane().add(jLabel1);
jLabel1.setBounds(40, 30, 80, 16);
pack();
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setSize(new java.awt.Dimension(400, 300));
setLocation((screenSize.width-400)/2,(screenSize.height-300)/2);
}
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
}
public static void main(String args[]) {
new Interfaz31().show();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JTextField jTextField1;
private javax.swing.JCheckBox jCheckBox1;
// End of variables declaration
}
Básicamente es ubicar la línea de código:
getContentPane().setLayout(null); y despúes ya ubicas a cada control con las coordenadas.