本文整理了Java中javax.swing.JToolBar.setRollover()
方法的一些代码示例,展示了JToolBar.setRollover()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.setRollover()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:setRollover
暂无
代码示例来源:origin: magefree/mage
jToolBar1.setRollover(true);
代码示例来源: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));
代码示例来源:origin: magefree/mage
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.setBorderPainted(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.setPreferredSize(new java.awt.Dimension(732, 27));
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: uk.org.mygrid.taverna.scufl.scufl-ui-components/workflow-input-panel
public JToolBar globalToolbar() {
JToolBar toolbar = new JToolBar();
JButton loadInputDocButton = new JButton("Load Input Doc",
TavernaIcons.openIcon);
JButton saveInputDocButton = new JButton("Save Input Doc",
TavernaIcons.saveIcon);
loadInputDocButton.setToolTipText("Load Input Document");
saveInputDocButton.setToolTipText("Save Input Document");
toolbar.setFloatable(false);
toolbar.setRollover(true);
toolbar.add(loadInputDocButton);
toolbar.add(saveInputDocButton);
return toolbar;
}
}
代码示例来源:origin: stackoverflow.com
JToolBar component = new JToolBar();
component.setRollover(true);
component.setBorder(null);
component.setFloatable(false);
button = new JButton("Three");
button.setFocusable(false);
component.add(button);
button = new JButton("Four");
button.setFocusable(false);
component.add(button);
toolbar.add(component);
代码示例来源: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/boofcv-swing
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.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.jspresso/jspresso-swing-application
/**
* Creates a tool bar.
*
* @return the created tool bar.
*/
protected JToolBar createJToolBar() {
JToolBar toolBar = new JToolBar();
toolBar.setRollover(true);
toolBar.setFloatable(true);
toolBar.setBorder(BorderFactory.createRaisedBevelBorder());
return toolBar;
}
代码示例来源:origin: net.sf.taverna.t2.ui-impl/zaria
protected ZPane() {
super();
toolBar.setFloatable(false);
toolBar.setRollover(false);
toolBar.setBorderPainted(false);
setLayout(new BorderLayout());
}
代码示例来源:origin: org.jspresso.framework/jspresso-swing-application
/**
* Creates a tool bar.
*
* @return the created tool bar.
*/
protected JToolBar createJToolBar() {
JToolBar toolBar = new JToolBar();
toolBar.setRollover(true);
toolBar.setFloatable(true);
toolBar.setBorder(BorderFactory.createRaisedBevelBorder());
return toolBar;
}
代码示例来源:origin: org.zaproxy/zap
private JToolBar getToolbarLeft() {
if (footerToolbarLeft == null) {
footerToolbarLeft = new JToolBar();
footerToolbarLeft.setEnabled(true);
footerToolbarLeft.setFloatable(false);
footerToolbarLeft.setRollover(true);
footerToolbarLeft.setName("Footer Toolbar Left");
footerToolbarLeft.setBorder(BorderFactory.createEmptyBorder());
}
return footerToolbarLeft;
}
代码示例来源:origin: org.zaproxy/zap
private JToolBar getToolbar() {
if (toolbar == null) {
toolbar = new JToolBar();
toolbar.setEnabled(true);
toolbar.setFloatable(false);
toolbar.setRollover(true);
toolbar.setName("Main Toolbar");
toolbar.setBorder(BorderFactory.createEmptyBorder());
}
return toolbar;
}
代码示例来源:origin: org.icepdf.os/icepdf-viewer
protected void commonToolBarSetup(JToolBar toolbar, boolean isMainToolBar) {
if (!isMainToolBar) {
toolbar.requestFocus();
toolbar.setRollover(true);
}
if (toolbarStyle == TOOL_BAR_STYLE_FIXED) {
toolbar.setFloatable(false);
if (!isMainToolBar) {
if (haveMadeAToolBar)
toolbar.addSeparator();
haveMadeAToolBar = true;
}
}
}
代码示例来源:origin: org.zaproxy/zap
private JToolBar getToolbarRight() {
if (footerToolbarRight == null) {
footerToolbarRight = new JToolBar();
footerToolbarRight.setEnabled(true);
footerToolbarRight.setFloatable(false);
footerToolbarRight.setRollover(true);
footerToolbarRight.setName("Footer Toolbar Right");
footerToolbarRight.setBorder(BorderFactory.createEmptyBorder());
}
return footerToolbarRight;
}
代码示例来源:origin: datacleaner/DataCleaner
public static JToolBar createToolBar() {
final JToolBar toolBar = new JToolBar(JToolBar.HORIZONTAL);
toolBar.setOpaque(false);
toolBar.setBorder(null);
toolBar.setRollover(true);
toolBar.setFloatable(false);
toolBar.setAlignmentY(JToolBar.LEFT_ALIGNMENT);
return toolBar;
}
代码示例来源:origin: org.zaproxy/zap
private JToolBar getPanelToolbar() {
if (panelToolbar == null) {
panelToolbar = new javax.swing.JToolBar();
panelToolbar.setLayout(new GridBagLayout());
panelToolbar.setEnabled(true);
panelToolbar.setFloatable(false);
panelToolbar.setRollover(true);
panelToolbar.setPreferredSize(new java.awt.Dimension(800, 30));
panelToolbar.setName(panelPrefix + ".toolbar");
setupToolbarElements(panelToolbar);
}
return panelToolbar;
}
代码示例来源:origin: org.jspresso.framework/jspresso-swing-application
private JToolBar createSecondaryApplicationToolBar() {
JToolBar applicationToolBar = new JToolBar();
applicationToolBar.setRollover(true);
applicationToolBar.setFloatable(false);
if (getSecondaryActionMap() != null) {
for (ActionList actionList : getSecondaryActionMap().getActionLists(this)) {
completeApplicationToolBar(applicationToolBar, actionList);
}
}
return applicationToolBar;
}
代码示例来源:origin: org.zaproxy/zap
private javax.swing.JToolBar getPanelToolbar() {
if (panelToolbar == null) {
panelToolbar = new javax.swing.JToolBar();
panelToolbar.setEnabled(true);
panelToolbar.setFloatable(false);
panelToolbar.setRollover(true);
panelToolbar.setPreferredSize(new java.awt.Dimension(800,30));
panelToolbar.setName("AlertToolbar");
panelToolbar.add(getScopeButton());
panelToolbar.add(getLinkWithSitesTreeButton());
panelToolbar.addSeparator();
panelToolbar.add(getEditButton());
}
return panelToolbar;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-inspect
private void initPanel() {
setBorder(new EmptyBorder(1, 2, 1, 2));
// configure toolbar
toolbar = new NoBorderToolBar(JToolBar.HORIZONTAL);
toolbar.setFloatable(false);
toolbar.setRollover(true);
toolbar.setBorderPainted(false);
toolbar.setBorder(BorderFactory.createEmptyBorder());
toolbar.setOpaque(false);
toolbar.setFocusable(false);
add(toolbar);
}
内容来源于网络,如有侵权,请联系作者删除!