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

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

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

JTabbedPane.setMinimumSize介绍

暂无

代码示例

代码示例来源:origin: winder/Universal-G-Code-Sender

controlContextTabbedPane.setMinimumSize(new java.awt.Dimension(395, 175));
controlContextTabbedPane.setPreferredSize(new java.awt.Dimension(2000, 283));
controlContextTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {

代码示例来源:origin: winder/Universal-G-Code-Sender

bottomTabbedPane.setMinimumSize(new java.awt.Dimension(0, 0));
bottomTabbedPane.setPreferredSize(new java.awt.Dimension(468, 100));
controlContextTabbedPane.setMinimumSize(new java.awt.Dimension(395, 175));
controlContextTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
  public void componentShown(java.awt.event.ComponentEvent evt) {

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

setTitle("Preferences");
tabsPanel.setMinimumSize(new java.awt.Dimension(532, 451));

代码示例来源:origin: org.cytoscape/plugin-impl

public void stateChanged(ChangeEvent e){
    int width = PluginManageDialog.this.jTabbedPane1.getSize().width;
    
    if (PluginManageDialog.this.jTabbedPane1.getSelectedIndex() == 0){
      
      PluginManageDialog.this.jTabbedPane1.setMinimumSize(new Dimension(width, 50));
      PluginManageDialog.this.jTabbedPane1.setPreferredSize(new Dimension(width, 50));
      PluginManageDialog.this.pnlSearch.setPreferredSize(new Dimension(width, 50));
      PluginManageDialog.this.pnlSettings.setPreferredSize(new Dimension(width, 50));
    }
    else {
      PluginManageDialog.this.jTabbedPane1.setMinimumSize(new Dimension(width, 150));
      PluginManageDialog.this.jTabbedPane1.setPreferredSize(new Dimension(width, 150));
      PluginManageDialog.this.pnlSearch.setPreferredSize(new Dimension(width, 150));
      PluginManageDialog.this.pnlSettings.setPreferredSize(new Dimension(width, 150));
      
    }
    PluginManageDialog.this.pack();
  }
}

代码示例来源:origin: net.anwiba.commons/anwiba-commons-swing-core

private void createTabbedView(final IFunction<Void, Iterable<IDialogTab>, RuntimeException> tabsFactory) {
 this.tabbedPanel.setMinimumSize(new Dimension(100, 100));
 final JPanel contentPanel = (JPanel) getContentPane();
 contentPanel.setLayout(new BorderLayout());
 contentPanel.add(BorderLayout.CENTER, this.tabbedPanel);
 contentPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
 for (final IDialogTab tab : tabsFactory.execute(null)) {
  addTab(tab);
 }
 this.tabbedPanel.addChangeListener(new ChangeListener() {
  @Override
  public void stateChanged(final ChangeEvent e) {
   final int selectedIndex = TabbedDialog.this.tabbedPanel.getSelectedIndex();
   if (selectedIndex < 0) {
    setIcon(GuiIcons.EMPTY_ICON.getLargeIcon());
    setMessage(IMessageConstants.EMPTY_MESSAGE);
    return;
   }
   final IDialogTab currentTab = TabbedDialog.this.tabs.get(selectedIndex);
   currentTab.updateView();
   currentTab.checkFieldValues();
   setIcon(currentTab.getIcon());
   setMessage(currentTab.getMessage());
   checkButton(currentTab);
  }
 });
}

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

leftPanel.setMinimumSize(JBroFuzzFormat.ZERO_DIM);
rightPanel.setMinimumSize(JBroFuzzFormat.ZERO_DIM);

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

mainPane_.setMinimumSize(new Dimension(50, 400));

代码示例来源:origin: MegaMek/mekhq

financeTab.setMinimumSize(new java.awt.Dimension(450, 300));
financeTab.setPreferredSize(new java.awt.Dimension(450, 300));

代码示例来源:origin: sc.fiji/TrakEM2_

tabs = new JTabbedPane(JTabbedPane.TOP);
tabs.setBackground(Color.white);
tabs.setMinimumSize(new Dimension(500, 400));
tabs.addMouseListener(new TabListener());
frame.getContentPane().add(tabs);

代码示例来源:origin: MegaMek/mekhq

getTabOverview().setMinimumSize(new java.awt.Dimension(250, 250));
getTabOverview().setName("tabOverview"); // NOI18N
getTabOverview().setPreferredSize(new java.awt.Dimension(800, 300));

代码示例来源:origin: jdmp/java-data-mining-package

tabbedPane.setMinimumSize(new Dimension(10, 10));

代码示例来源:origin: org.activecomponents.jadex/jadex-applications-bdi

tp.addTab("Observers", observers);
tp.addTab("Highscore", highscore);
tp.setMinimumSize(new Dimension(0, 0));
tp.setPreferredSize(new Dimension(243, 0));

代码示例来源:origin: org.apache.airavata/airavata-xbaya-gui

this.rightBottomTabbedPane.setMinimumSize(SwingUtil.MINIMUM_SIZE);
this.rightBottomTabbedPane.setPreferredSize(new Dimension(0, 200));
this.rightBottomTabbedPane.addTab(PortViewer.TITLE, this.portViewer.getSwingComponent());
this.graphTabbedPane.setMinimumSize(SwingUtil.MINIMUM_SIZE);
this.graphTabbedPane.addMouseListener(new MouseAdapter() {
  @Override
this.componentTabbedPane.setMinimumSize(SwingUtil.MINIMUM_SIZE);
this.leftSplitPane.setTopComponent(this.componentTabbedPane);
this.componentTabbedPane.add(this.compTreeXBayapanel.getSwingComponent());

代码示例来源:origin: ujmp/universal-java-matrix-package

JSplitPane splitPane2 = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setMinimumSize(new Dimension(10, 10));

代码示例来源:origin: io.ultreia.java4all.i18n/i18n-editor

navigationTabbedPane.setMinimumSize(new Dimension(550, 500));

代码示例来源:origin: Slowpoke101/FTBLaunch

footer.setBackground(LauncherStyle.getCurrentStyle().footerColor);
tabbedPane.setMinimumSize(new Dimension(850, 380));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui

/** Creates a new instance of ResultWindow */
@NbBundle.Messages({"TITLE_TEST_RESULTS=Test Results",
  "ACSN_TestResults=Test Results",
  "ACSD_TestResults=Displays information about passed and failed tests and output generated by them"})
public ResultWindow() {
  super();
  setFocusable(true);
  setLayout(new BorderLayout());
  setName(ID);
  setDisplayName(Bundle.TITLE_TEST_RESULTS());
  setIcon(ImageUtilities.loadImage( "org/netbeans/modules/gsf/testrunner/ui/resources/testResults.png", true));//NOI18N
    
  AccessibleContext accContext = getAccessibleContext();
  accContext.setAccessibleName(Bundle.ACSN_TestResults());
  accContext.setAccessibleDescription(Bundle.ACSD_TestResults());
  pop = new JPopupMenu();
  pop.add(new Close());
  pop.add(new CloseAll());
  pop.add(new CloseAllButCurrent());
  popL = new PopupListener();
  closeL = new CloseListener();
  tabPane = TabbedPaneFactory.createCloseButtonTabbedPane();
  tabPane.setMinimumSize(new Dimension(0, 0));
  tabPane.addMouseListener(popL);
  tabPane.addPropertyChangeListener(closeL);
  add(tabPane);
}

代码示例来源:origin: MegaMek/mekhq

tabMain.setMinimumSize(new java.awt.Dimension(600, 200));
tabMain.setPreferredSize(new java.awt.Dimension(900, 300));

代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit

tabs.addTab(jEdit.getProperty("helpviewer.search.label"),
  new HelpSearchPanel(this));
tabs.setMinimumSize(new Dimension(0,0));

代码示例来源:origin: MegaMek/megamek

Dimension size = new Dimension((getSize().width * 40) / 100, (getSize().height * 59) / 100);
panOptions.setPreferredSize(size);
panOptions.setMinimumSize(size);
panOptions.setMaximumSize(size);

相关文章

JTabbedPane类方法