try { JInternalFrame.setMaximum(true); } catch (PropertyVetoException ex) { Logger.getLogger(interfaz.class.getName()).log(Level.SEVERE, null, ex); }