javax.swing.JToolBar.setMaximumSize()方法的使用及代码示例

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

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

JToolBar.setMaximumSize介绍

暂无

代码示例

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

mageToolbar.setRollover(true);
mageToolbar.setFont(new java.awt.Font("Segoe UI", 0, 48)); // NOI18N
mageToolbar.setMaximumSize(new java.awt.Dimension(614, 60));
mageToolbar.setMinimumSize(new java.awt.Dimension(566, 60));
mageToolbar.setPreferredSize(new java.awt.Dimension(614, 60));

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

private void setGUISize() {
    Font font = GUISizeHelper.menuFont;
    mageToolbar.setFont(font);
    int newHeight = font.getSize() + 6;
    Dimension mageToolbarDimension = mageToolbar.getPreferredSize();
    mageToolbarDimension.height = newHeight + 6;
    mageToolbar.setMinimumSize(mageToolbarDimension);
    mageToolbar.setMaximumSize(mageToolbarDimension);
    mageToolbar.setPreferredSize(mageToolbarDimension);
    for (Component component : mageToolbar.getComponents()) {
      if (component instanceof JButton || component instanceof JLabel || component instanceof JToggleButton) {
        component.setFont(font);
        Dimension d = component.getPreferredSize();
        d.height = newHeight;
        component.setMinimumSize(d);
        component.setMaximumSize(d);

      }
      if (component instanceof javax.swing.JToolBar.Separator) {
        Dimension d = component.getPreferredSize();
        d.height = newHeight;
        component.setMinimumSize(d);
        component.setMaximumSize(d);
      }
    }
    balloonTip.setFont(GUISizeHelper.balloonTooltipFont);

    addTooltipContainer();
  }
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-number

protected void $initialize_05_setProperties() {
  if (log.isDebugEnabled()) {
    log.debug(this);
  }
  
  // apply 8 property setters
  popupPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
  popupPanel.setBackground(Color.WHITE);
  validateButton.setIcon(SwingUtil.getUIManagerActionIcon("numbereditor-validate"));
  resetButton.setIcon(SwingUtil.getUIManagerActionIcon("numbereditor-reset"));
  rightToolbar.setMaximumSize(new Dimension(24,24));
  showPopUpButton.setIcon(SwingUtil.getUIManagerActionIcon("numbereditor-calculator"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

$JButton13.setIcon(SwingUtil.createActionIcon("numbereditor-validate"));
resetButton.setIcon(SwingUtil.createActionIcon("numbereditor-reset"));
$JToolBar0.setMaximumSize(new Dimension(24,24));
showPopUpButton.setIcon(SwingUtil.createActionIcon("numbereditor-calculator"));

代码示例来源:origin: uk.org.mygrid.taverna.scufl.scufl-ui-components/scufl-diagram-panel

toolbar.setMaximumSize(new Dimension(2000, 30));
fc = new JFileChooser();
add(toolbar, BorderLayout.PAGE_START);

代码示例来源:origin: dschanoeh/Kayak

jToolBar1.setMaximumSize(new java.awt.Dimension(32767, 31));

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

applyDataBinding("textField.enabled");
applyDataBinding("textField.text");
$JToolBar17.setMaximumSize((new Dimension(24,24)));
applyDataBinding("$JToolBar17.visible");
button.setIcon((jaxx.runtime.Util.createActionIcon("numbereditor-calculator")));

代码示例来源:origin: vasl-developers/vasl

m_objToolbar.setOrientation(SwingConstants.VERTICAL);
m_objToolbar.setRollover(true);
m_objToolbar.setMaximumSize(new Dimension(64, 23));
m_objToolbar.setMinimumSize(new Dimension(50, 23));
m_objToolbar.setPreferredSize(new Dimension(50, 23));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-editor

toolBar.setFloatable(false);
toolBar.setBorderPainted(false);
toolBar.setMaximumSize(new java.awt.Dimension(74, 26));
toolBar.setMinimumSize(new java.awt.Dimension(74, 26));
toolBar.setOpaque(false);

代码示例来源:origin: Waikato/weka-trunk

Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools2.setPreferredSize(d3);
fixedTools2.setMaximumSize(d3);
add(fixedTools2, BorderLayout.WEST);

代码示例来源:origin: uk.org.mygrid.taverna.scufl.scufl-ui-components/enactor-invocation

toolbar.setFloatable(false);
toolbar.setRollover(true);
toolbar.setMaximumSize(new Dimension(2000, 30));

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools2.setPreferredSize(d3);
fixedTools2.setMaximumSize(d3);
add(fixedTools2, BorderLayout.WEST);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

jToolBar1.setOrientation(javax.swing.SwingConstants.VERTICAL);
jToolBar1.setRollover(true);
jToolBar1.setMaximumSize(new java.awt.Dimension(28, 240));
jToolBar1.setPreferredSize(new java.awt.Dimension(28, 240));

代码示例来源:origin: org.zaproxy/zap

t1.setEnabled(true);
t1.setPreferredSize(new java.awt.Dimension(80000,25));
t1.setMaximumSize(new java.awt.Dimension(80000,25));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

toolBar.setFloatable(false);
toolBar.setBorderPainted(false);
toolBar.setMaximumSize(new java.awt.Dimension(74, 26));
toolBar.setMinimumSize(new java.awt.Dimension(74, 26));
toolBar.setOpaque(false);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

toolBar.setFloatable(false);
toolBar.setRollover(true);
toolBar.setMaximumSize(new java.awt.Dimension(182, 26));
toolBar.setMinimumSize(new java.awt.Dimension(182, 26));
toolBar.setOpaque(false);

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

droidToolBar.setRollover(true);
droidToolBar.setMargin(new java.awt.Insets(4, 4, 4, 4));
droidToolBar.setMaximumSize(new java.awt.Dimension(0, 0));
droidToolBar.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
  public void propertyChange(java.beans.PropertyChangeEvent evt) {

代码示例来源:origin: digital-preservation/droid

droidToolBar.setRollover(true);
droidToolBar.setMargin(new java.awt.Insets(4, 4, 4, 4));
droidToolBar.setMaximumSize(new java.awt.Dimension(0, 0));
droidToolBar.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
  public void propertyChange(java.beans.PropertyChangeEvent evt) {

代码示例来源:origin: Waikato/weka-trunk

Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools.setPreferredSize(d3);
fixedTools.setMaximumSize(d3);
fixedTools.setFloatable(false);
add(fixedTools, BorderLayout.EAST);

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools.setPreferredSize(d3);
fixedTools.setMaximumSize(d3);
fixedTools.setFloatable(false);
add(fixedTools, BorderLayout.EAST);

相关文章

JToolBar类方法