Ejemplo n.º 1
0
 public void setVisible(boolean vis) {
   if (log.isLoggable(Level.FINER)) {
     log.log(
         Level.FINER,
         "Setting {0} to visible {1}",
         new Object[] {String.valueOf(this), Boolean.valueOf(vis)});
   }
   if (vis && !isVisible()) {
     XWM.setShellDecor(this);
     super.setVisible(vis);
     if (winAttr.isResizable) {
       // Fix for 4320050: Minimum size for java.awt.Frame is not being enforced.
       // We need to update frame's minimum size, not to reset it
       XWM.removeSizeHints(this, XlibWrapper.PMaxSize);
       updateMinimumSize();
     }
   } else {
     super.setVisible(vis);
   }
 }