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

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

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

JToolBar.setFloatable介绍

暂无

代码示例

代码示例来源:origin: stanfordnlp/CoreNLP

private void buildTagPanel() {
 if (tagPanel == null) {
  tagPanel = new JToolBar(SwingConstants.VERTICAL);
  tagPanel.setFloatable(false);
  frame.getContentPane().add(tagPanel, BorderLayout.EAST);
 } else {
  tagPanel.removeAll();
 }
 if (classifier != null) {
  makeTagMaps();
  Set<String> tags = classifier.labels();
  String backgroundSymbol = classifier.backgroundSymbol();
  for (String tag : tags) {
   if (backgroundSymbol.equals(tag)) { continue; }
   Color color = tagToColorMap.get(tag);
   JButton b = new JButton(tag, new ColorIcon(color));
   tagPanel.add(b);
  }
 }
 tagPanel.revalidate();
 tagPanel.repaint();
}

代码示例来源:origin: stanfordnlp/CoreNLP

private void buildTagPanel() {
 if (tagPanel == null) {
  tagPanel = new JToolBar(SwingConstants.VERTICAL);
  tagPanel.setFloatable(false);
  frame.getContentPane().add(tagPanel, BorderLayout.EAST);
 } else {
  tagPanel.removeAll();
 }
 if (classifier != null) {
  makeTagMaps();
  Set<String> tags = classifier.labels();
  String backgroundSymbol = classifier.backgroundSymbol();
  for (String tag : tags) {
   if (backgroundSymbol.equals(tag)) { continue; }
   Color color = tagToColorMap.get(tag);
   JButton b = new JButton(tag, new ColorIcon(color));
   tagPanel.add(b);
  }
 }
 tagPanel.revalidate();
 tagPanel.repaint();
}

代码示例来源:origin: skylot/jadx

updateLink.setVisible(false);
JToolBar toolbar = new JToolBar();
toolbar.setFloatable(false);
toolbar.add(openAction);
toolbar.add(saveAllAction);

代码示例来源:origin: 4thline/cling

JToolBar resourceToolBar = new JToolBar();
resourceToolBar.setFloatable(false);
resourceToolBar.add(playButton);
resourceToolBar.add(copyURIButton);

代码示例来源:origin: org.netbeans.api/org-openide-awt

/**
 * Creates a new tool bar with a specified
 * <code>name</code> and
 * <code>orientation</code>. All other constructors call this constructor.
 * If
 * <code>orientation</code> is an invalid value, an exception will be
 * thrown.
 *
 * @param name the name of the tool bar
 * @param orientation the initial orientation -- it must be     *        either <code>HORIZONTAL</code> or <code>VERTICAL</code>
 * @exception IllegalArgumentException if orientation is neither
 * <code>HORIZONTAL</code> nor <code>VERTICAL</code>
 */
public ToolbarWithOverflow(String name, int orientation) {
  super(name, orientation);
  setupOverflowButton();
  popup = new JPopupMenu();
  popup.setBorderPainted(false);
  popup.setBorder(BorderFactory.createEmptyBorder());
  overflowToolbar = new JToolBar("overflowToolbar", orientation == HORIZONTAL ? VERTICAL : HORIZONTAL);
  overflowToolbar.setFloatable(false);
  overflowToolbar.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1));
}

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

jToolBar1 = new javax.swing.JToolBar();
btnConnect = new javax.swing.JButton();
btnSendMessage = new javax.swing.JButton();
jToolBar1.setFloatable(false);
jToolBar1.setRollover(true);

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

JToolBar tools = new JToolBar();
tools.setFloatable(false);
gui.add(tools, BorderLayout.PAGE_START);
tools.add(new JButton("New")); // TODO - add functionality!

代码示例来源:origin: jshiell/checkstyle-idea

progressBar.setMaximumSize(progressBarSize);
progressPanel = new JToolBar(JToolBar.HORIZONTAL);
progressPanel.add(Box.createHorizontalStrut(4));
progressPanel.add(new JLabel(message("plugin.toolwindow.override")));
progressPanel.add(progressLabel);
progressPanel.add(Box.createHorizontalGlue());
progressPanel.setFloatable(false);
progressPanel.setBackground(UIManager.getColor("Panel.background"));
progressPanel.setBorder(null);

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

mageToolbar = new javax.swing.JToolBar();
btnPreferences = new javax.swing.JButton();
jSeparator4 = new javax.swing.JToolBar.Separator();
mageToolbar.setFloatable(false);
mageToolbar.setRollover(true);
mageToolbar.setFont(new java.awt.Font("Segoe UI", 0, 48)); // NOI18N

代码示例来源:origin: geotools/geotools

toolBar = new JToolBar();
toolBar.setOrientation(JToolBar.HORIZONTAL);
toolBar.setFloatable(false);

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

tbColor = new javax.swing.JToolBar();
tbRed = new javax.swing.JToggleButton();
tbGreen = new javax.swing.JToggleButton();
btnBooster = new javax.swing.JButton();
btnClear = new javax.swing.JButton();
tbTypes = new javax.swing.JToolBar();
tbLand = new javax.swing.JToggleButton();
tbCreatures = new javax.swing.JToggleButton();
cardCount = new javax.swing.JLabel();
tbColor.setFloatable(false);
tbColor.setRollover(true);
tbColor.setToolTipText("Hold the ALT-key while clicking to deselect all other colors or hold the CTRL-key to select only all other colors.");
tbColor.add(btnClear);
tbTypes.setFloatable(false);
tbTypes.setRollover(true);
tbTypes.setToolTipText("Hold the ALT-key while clicking to deselect all other card types or hold the CTRL-key to only select all other card types."); // NOI18N
tbTypes.add(jSeparator5);
tbRarities.setFloatable(false);
tbRarities.setRollover(true);
tbRarities.setToolTipText("Hold the ALT-key while clicking to deselect all other card rarities or hold the CTRL-key to only select all other card rarities.");

代码示例来源:origin: pentaho/mondrian

jToolBar1 = new javax.swing.JToolBar();
jToolBar2 = new javax.swing.JToolBar();
toolbarNewPopupMenu = new JPopupMenu();
toolbarNewButton = new javax.swing.JButton();
jToolBar2.setFloatable(false);
jToolBar2.add(toolbarNewButton);

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

btnNewTable = new javax.swing.JButton();
btnNewTournament = new javax.swing.JButton();
filterBar1 = new javax.swing.JToolBar();
btnStateWaiting = new javax.swing.JToggleButton();
btnStateActive = new javax.swing.JToggleButton();
btnRated = new javax.swing.JToggleButton();
btnUnrated = new javax.swing.JToggleButton();
filterBar2 = new javax.swing.JToolBar();
btnFormatBlock = new javax.swing.JToggleButton();
btnFormatStandard = new javax.swing.JToggleButton();
btnNewTournament.addActionListener(evt -> btnNewTournamentActionPerformed(evt));
filterBar1.setFloatable(false);
filterBar1.setForeground(new java.awt.Color(102, 102, 255));
filterBar1.setFocusable(false);
filterBar2.setFloatable(false);
filterBar2.setFocusable(false);
filterBar2.setOpaque(false);

代码示例来源:origin: protegeproject/protege

public static JToolBar createViewToolBar() {
  JToolBar toolBar = new JToolBar();
  toolBar.setFloatable(false);
  toolBar.setBorderPainted(false);
  return toolBar;
}

代码示例来源:origin: org.protege/protege-editor-core-application

public static JToolBar createViewToolBar() {
  JToolBar toolBar = new JToolBar();
  toolBar.setFloatable(false);
  toolBar.setBorderPainted(false);
  return toolBar;
}

代码示例来源:origin: org.databene/jdbacl

private void createToolBar() {
  JToolBar toolBar = new JToolBar();
  add(toolBar, BorderLayout.NORTH);
  toolBar.add(new JLabel("Exclusion:"));
  toolBar.add(exclusionField);
  toolBar.add(Box.createHorizontalStrut(8));
  toolBar.add(new JLabel("Environment:"));
  toolBar.add(environmentSelector);
  toolBar.add(Box.createHorizontalGlue());
  toolBar.setFloatable(false);
}

代码示例来源:origin: mucommander/mucommander

public static JPanel wrapToolBar(JToolBar toolbar) {
  moreToolbar = new JToolBar();
  moreToolbar.setRollover(true);
  moreToolbar.setFloatable(false);
  moreToolbar.add(new ToolbarMoreButton(toolbar));
  moreToolbar.setBorderPainted(false);

  JPanel panel = new JPanel(new BorderLayout());
  panel.add(toolbar, BorderLayout.CENTER);
  panel.add(moreToolbar, BorderLayout.EAST);

  return panel;
 }
}

代码示例来源:origin: org.boofcv/visualize

public SelectInputImageToolBar( JComponent main ) {
  super( new BorderLayout());
  JToolBar toolbar = new JToolBar("Still draggable");
  toolbar.setFloatable(false);
  toolbar.setRollover(true);
  imageMenu = new JComboBox();
  imageMenu.addActionListener(this);
  toolbar.add(new JLabel("Image:"));
  toolbar.add(imageMenu);
  add(toolbar,BorderLayout.NORTH);
  add(main,BorderLayout.CENTER);
}

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

protected void createToolbarLeft() {
  $objectMap.put("toolbarLeft", toolbarLeft = new JToolBar());
  
  toolbarLeft.setName("toolbarLeft");
  toolbarLeft.setBorderPainted(false);
  toolbarLeft.setFloatable(false);
}

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

protected void createToolbar() {
  $objectMap.put("toolbar", toolbar = new JToolBar());
  
  toolbar.setName("toolbar");
  toolbar.setBorderPainted(false);
  toolbar.setFloatable(false);
}

相关文章

JToolBar类方法