Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/01/2011, 06:15
sirdaiz
 
Fecha de Ingreso: diciembre-2010
Mensajes: 459
Antigüedad: 13 años, 4 meses
Puntos: 21
Borde a un JPanel

public class Main {

public static void main(String[] args) {
FramePrincipal fp=new FramePrincipal("Reiniciar...",400,50,375,260);
}
}



import java.awt.Color;
import javax.swing.*;


public class FramePrincipal extends JFrame{

/**
*
*/
private JLabel espere=new JLabel("Espere...");
private JPanel jp=new JPanel();

public FramePrincipal(String title, int x,int y,int t, int z) {
super(title);
this.setBounds(x,y,t,z);
this.setLayout(null);
this.setVisible(true);
this.setResizable(false);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );


borrar.setBounds(140, 170, 80, 20);
this.getContentPane().add(borrar);


jp.setBounds(5, 205, 370, 40);
espere.setBounds(10, 210, 100, 20);
jp.add(espere);
jp.setBorder(BorderFactory.createLoweredBevelBorde r());
this.getContentPane().add(espere);
}


}

Me aparece el label espere pero no el borde del JPanel,alguna sugerencia?