Code example for JLabel

Methods: setVisible

0
  } 
 
  public void setTextInputVisible(final boolean b)
  { 
    textField.setVisible(b);
    valueMessage.setVisible(!b);
  } 
 
  private static NumericInputDialog createDialog(final Component parent)
  { 
    if (parent != null)
    { 
      final Window window = LibSwingUtil.getWindowAncestor(parent);
      if (window instanceof Dialog)
      { 
        return new NumericInputDialog((Dialog) window, true);
      } 
      if (window instanceof Frame)
      { 
        return new NumericInputDialog((Frame) window, true);