JFrame y su tamaño
    
		    Tengo un JFrame y quisiera saber como, cuando lo abro, aparezca con unas dimensiones determinadas y no se puedan modificar. 
Gracias
    Gracias
		    Para el tamaño del frame:
frame.setSize(50,50);
Para que no se pueda redimensionar:
frame.setResizable(false);
Saludos
    frame.setSize(50,50);
Para que no se pueda redimensionar:
frame.setResizable(false);
Saludos
		    ESTE ES EL CODIGO. Donde lo tengo q poner???
/*
* Color_Fondo.java
*
* Created on 4 de enero de 2005, 16:49
*/
/**
* @Author Jesús Armand Calejero Román &
* Manuel Calvo
* @Project Mantenimiento de una estación ferroviaria
* @University Escuela Universitaria Politecnica de la Almunia (EUPLA)
* @FOR... IngenierÃa del Software (ANA ESTEBAN teacher)
*/
public class Color_Fondo extends javax.swing.JFrame {
    
/** Creates new form Color_Fondo */
public Color_Fondo() {
initComponents();
}
    
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jColorChooser1 = new javax.swing.JColorChooser();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
}
});
getContentPane().add(jColorChooser1);
jColorChooser1.setBounds(0, 0, 409, 250);
jButton1.setText("ACEPTAR");
getContentPane().add(jButton1);
jButton1.setBounds(20, 260, 100, 23);
jButton2.setText("SALIR");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
getContentPane().add(jButton2);
jButton2.setBounds(290, 260, 100, 23);
pack();
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
System.exit(0);
}
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
new Color_Fondo().show();
  
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JColorChooser jColorChooser1;
// End of variables declaration
    
}
	    
    /*
* Color_Fondo.java
*
* Created on 4 de enero de 2005, 16:49
*/
/**
* @Author Jesús Armand Calejero Román &
* Manuel Calvo
* @Project Mantenimiento de una estación ferroviaria
* @University Escuela Universitaria Politecnica de la Almunia (EUPLA)
* @FOR... IngenierÃa del Software (ANA ESTEBAN teacher)
*/
public class Color_Fondo extends javax.swing.JFrame {
/** Creates new form Color_Fondo */
public Color_Fondo() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jColorChooser1 = new javax.swing.JColorChooser();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
}
});
getContentPane().add(jColorChooser1);
jColorChooser1.setBounds(0, 0, 409, 250);
jButton1.setText("ACEPTAR");
getContentPane().add(jButton1);
jButton1.setBounds(20, 260, 100, 23);
jButton2.setText("SALIR");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
getContentPane().add(jButton2);
jButton2.setBounds(290, 260, 100, 23);
pack();
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
System.exit(0);
}
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
new Color_Fondo().show();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JColorChooser jColorChooser1;
// End of variables declaration
}
