Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/08/2007, 06:06
ZaKi_mx
 
Fecha de Ingreso: enero-2007
Ubicación: Barcelona
Mensajes: 10
Antigüedad: 17 años, 4 meses
Puntos: 0
Re: JDialog desde applet

con este codigo:
Código PHP:
Frame f findParentFrame(); 
JDialog Busqueda = new JDialog(f"Busqueda: "+f.getTitle(), true); 
Busqueda.setSize(new Dimension(250400));
Busqueda.setLocationRelativeTo(f);
Busqueda.show(); 
Código PHP:
    private Frame findParentFrame(){
      
Component c getParent();

      while(
true){
        if(
instanceof Frame)
          return (
Frame)c;

        
c.getParent();
      }
    } 
Me funciona en IE, pero en Opera me deja apretar el JButton mientras esta el JDialog abierto.