本文整理了Java中javax.swing.JToolBar.putClientProperty()
方法的一些代码示例,展示了JToolBar.putClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.putClientProperty()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:putClientProperty
暂无
代码示例来源:origin: log4j/log4j
protected JToolBar createToolBar() {
JToolBar tb = new JToolBar();
tb.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
JComboBox fontCombo = new JComboBox();
JComboBox fontSizeCombo = new JComboBox();
代码示例来源:origin: com.github.insubstantial/substance
/** Creates new form. */
public ColorChooserMainPanel() {
initComponents();
toolBar
.putClientProperty("Quaqua.ToolBar.isDividerDrawn",
Boolean.TRUE);
}
代码示例来源:origin: org.java.net.substance/substance
/** Creates new form. */
public ColorChooserMainPanel() {
initComponents();
toolBar
.putClientProperty("Quaqua.ToolBar.isDividerDrawn",
Boolean.TRUE);
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
/**
* Creates and returns a <code>JToolBar</code>
*/
public static JToolBar createToolBar() {
JToolBar toolBar = new JToolBar();
toolBar.setFloatable(false);
toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
toolBar.setFloatable(false);
Border marginBorder = new EmptyBorder(0, 2, 0, 2);
EtchedBorder etchedBorder = new EtchedBorder();
Border compoundBorder = new CompoundBorder(etchedBorder, marginBorder);
toolBar.setBorder(compoundBorder);
return toolBar;
}
代码示例来源:origin: org.nuiton/nuiton-widgets
/**
* Creates and returns a <code>JToolBar</code>
*/
public static JToolBar createToolBar() {
JToolBar toolBar = new JToolBar();
toolBar.setFloatable(false);
toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
toolBar.setFloatable(false);
Border marginBorder = new EmptyBorder(0, 2, 0, 2);
EtchedBorder etchedBorder = new EtchedBorder();
Border compoundBorder = new CompoundBorder(etchedBorder, marginBorder);
toolBar.setBorder(compoundBorder);
return toolBar;
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
protected JToolBar createToolBar() {
JToolBar tb = new JToolBar();
tb.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
JComboBox fontCombo = new JComboBox();
JComboBox fontSizeCombo = new JComboBox();
代码示例来源:origin: org.apache.activemq/activemq-all
protected JToolBar createToolBar() {
JToolBar tb = new JToolBar();
tb.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
JComboBox fontCombo = new JComboBox();
JComboBox fontSizeCombo = new JComboBox();
代码示例来源:origin: ru.sbtqa/monte-media
@Override
public void setTransferHandler(TransferHandler newHandler) {
super.setTransferHandler(newHandler);
movieControlPanel.setTransferHandler(newHandler);
jPanel1.setTransferHandler(newHandler);
toolBar.setTransferHandler(newHandler);
toolBar.putClientProperty("Quaqua.ToolBar.style", "bottom");
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
} else {
group = new ButtonGroup();
tb.putClientProperty("toolButtonGroup", group);
tb.putClientProperty("toolHandler", toolHandler);
代码示例来源:origin: org.gephi/directory-chooser
topPanel.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
table.setDefaultRenderer(ThreadSummaryCellRenderer.class, new ThreadSummaryCellRenderer(this));
buttonsToolBar.setFloatable(false);
buttonsToolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); // NOI18N
代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-swing
toolBar.putClientProperty("actionsLookupResult", actions); // prevent GC
listener.resultChanged(null);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
/**
* Creates a new Synchronize Panel managed by the given versioning system.
*
* @param parent enclosing top component
*/
public VersioningPanel(HgVersioningTopComponent parent) {
this.parentTopComponent = parent;
this.mercurial = Mercurial.getInstance();
refreshViewTask = rp.create(new RefreshViewTask());
explorerManager = new ExplorerManager();
displayStatuses = FileInformation.STATUS_LOCAL_CHANGE;
noContentComponent.setLabel(NbBundle.getMessage(VersioningPanel.class, "MSG_No_Changes_All")); // NOI18N
syncTable = new SyncTable();
initComponents();
setVersioningComponent(syncTable.getComponent());
reScheduleRefresh(0);
// XXX click it in form editor, probbaly requires Mattisse >=v2
jPanel2.setFloatable(false);
jPanel2.putClientProperty("JToolBar.isRollover", Boolean.TRUE); // NOI18N
jPanel2.setLayout(new ToolbarLayout());
if( "Aqua".equals( UIManager.getLookAndFeel().getID() ) ) { // NOI18N
Color color = UIManager.getColor("NbExplorerView.background"); // NOI18N
setBackground(color);
jPanel2.setBackground(color);
}
}
代码示例来源:origin: kaikramer/keystore-explorer
jtbToolBar.putClientProperty(Options.HEADER_STYLE_KEY, HeaderStyle.BOTH);
内容来源于网络,如有侵权,请联系作者删除!