javax.swing.JTabbedPane.setVisible()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中javax.swing.JTabbedPane.setVisible()方法的一些代码示例,展示了JTabbedPane.setVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setVisible()方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:setVisible

JTabbedPane.setVisible介绍

暂无

代码示例

代码示例来源:origin: chewiebug/GCViewer

constraints.weighty = 2;
modelChart.setPreferredSize(new Dimension(800, 600));
modelChartAndDetails.setVisible(!chartPanelView.isMinimized());
getContentPane().add(modelChartAndDetails, constraints);

代码示例来源:origin: magefree/mage

public void showDownloadControls(boolean needToShow) {
  // 2 modes:
  //  - only message;
  //  - message + download controls and buttons        
  this.panelGlobal.setVisible(true);
  this.buttonStop.setVisible(!needToShow); // stop button only for loading mode
  this.tabsList.setVisible(needToShow);
  this.panelCommands.setVisible(needToShow);
  // auto-size form
  if (needToShow) {
    this.setWindowSize(this.sizeModeMessageAndControls.width, this.sizeModeMessageAndControls.height);
  } else {
    this.setWindowSize(this.sizeModeMessageOnly.width, this.sizeModeMessageOnly.height);
  }
  this.makeWindowCentered();
  //this.setLocationRelativeTo(null); // center screen //FIX
  // icons on tabs left side
  setTabTitle(0, "Standard download", "/buttons/card_panel.png");
  setTabTitle(1, "Custom download", "/buttons/list_panel.png");
  // TODO: add manual mode as tab
  this.tabsList.getTabComponentAt(1).setEnabled(false);
  this.tabsList.setEnabledAt(1, false);
}

代码示例来源:origin: robward-scisys/sldeditor

/**
 * Sets the field visible.
 *
 * @param visible the new visible state
 */
@Override
public void setVisible(boolean visible) {
  if (tabbedPane != null) {
    tabbedPane.setVisible(visible);
  }
}

代码示例来源:origin: org.gephi/desktop-import

private void removeTabbedPane() {
  tabbedPane.setVisible(false);
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setVisible(boolean aValue) {
  super.setVisible(aValue);
}

代码示例来源:origin: stackoverflow.com

KeyPressStats statistics = new KeyPressStats();
HomePanel home = new HomePanel(statistics);
StatsPanel stats = new StatsPanel(statistics);
JTabbedPane tabbed = new JTabbedPane();
tabbed.addTab("Home", home);
tabbed.addTab("Stats", stats);
tabbed.setVisible(true);

代码示例来源:origin: girtel/Net2Plan

@Override
public void componentAdded(ContainerEvent e) {
  reportContainer.setVisible(true);
  setDividerLocation(0.5);
  for (Component component : pnl_buttons.getComponents())
    if (component == closeAllReports)
      return;
  pnl_buttons.add(closeAllReports);
}

代码示例来源:origin: girtel/Net2Plan

@Override
  public void componentRemoved(ContainerEvent e) {
    if (reportContainer.getTabCount() == 0) {
      reportContainer.setVisible(false);
      for (Component component : pnl_buttons.getComponents())
        if (component == closeAllReports)
          pnl_buttons.remove(closeAllReports);
    }
  }
});

代码示例来源:origin: stackoverflow.com

addTab.setFocusable (false);
addTab.addActionListener (listener);
pane.setVisible (true);

代码示例来源:origin: org.icepdf.os/icepdf-viewer

/**
 * Makes the component visible or invisible.
 *
 * @param visible true to make the component visible; false to make it
 *                invisible.
 */
public void setUtilityPaneVisible(boolean visible) {
  if (utilityTabbedPane != null) {
    utilityTabbedPane.setVisible(visible);
  }
  if (utilityAndDocumentSplitPane != null) {
    if (visible) {
      // use the last split pane value.
      utilityAndDocumentSplitPane.setDividerLocation(
          utilityAndDocumentSplitPaneLastDividerLocation);
      utilityAndDocumentSplitPane.setDividerSize(8);
    } else {
      // if we're hiding the panel then we grab the last know value
      // and set the width to zero or invisible.
      int divLoc = utilityAndDocumentSplitPane.getDividerLocation();
      if (divLoc > 5) {
        utilityAndDocumentSplitPaneLastDividerLocation = divLoc;
      }
      utilityAndDocumentSplitPane.setDividerSize(0);
    }
  }
  reflectStateInComponents();
}

代码示例来源:origin: girtel/Net2Plan

reportContainer.setVisible(false);

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-project-libraries-ui

this.jLabel1.setVisible(false);
this.libraryName.setVisible(false);
this.properties.setVisible(false);
this.deleteButton.setEnabled(false);
if (nodes.length != 1) {
this.properties.setVisible(true);
boolean editable = model.isLibraryEditable (impl);
this.libraryName.setEnabled(editable && LibrariesSupport.supportsDisplayName(impl));

代码示例来源:origin: javax.help/javahelp

tabbedPane.setVisible(false);

代码示例来源:origin: javax.help/javahelp

tabbedPane.setVisible(help.isNavigatorDisplayed());

代码示例来源:origin: org.opencadc/cadc-upload-manager

getTabPane().setVisible(true);

代码示例来源:origin: com.mgmtp.gcviewer/gcviewer

constraints.weighty = 2;
modelChart.setPreferredSize(new Dimension(800, 600));
modelChartAndDetails.setVisible(!chartPanelView.isMinimized());
getContentPane().add(modelChartAndDetails, constraints);

相关文章

JTabbedPane类方法