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

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

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

JToolBar.setMargin介绍

暂无

代码示例

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

protected void initializeLoggingToolbar() {
  toolBar.setMargin(new Insets(5, 0, 5, 0));
  toolBar.setFloatable(false);
  toolBar.add(copyButton);
  copyButton.setFocusable(false);
  copyButton.setEnabled(false);
  copyButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      StringBuilder sb = new StringBuilder();
      List<StateVariableValue> messages = getSelectedValue();
      for (StateVariableValue message : messages) {
        sb.append(message.toString()).append("\n");
      }
      Application.copyToClipboard(sb.toString());
    }
  });
  toolBar.setFloatable(false);
  toolBar.add(copyButton);
  toolBar.add(Box.createHorizontalGlue());
}

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

setResizable(true);
invocationToolBar.setMargin(new Insets(5, 0, 5, 0));
invocationToolBar.setFloatable(false);

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

monitoringToolBar.setMargin(new Insets(5, 0, 5, 0));
monitoringToolBar.setFloatable(false);

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

JToolBar toolB = new JToolBar();
toolB.setFloatable(false);
toolB.setMargin(new Insets(0,0,0,0));

代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn

newbar.setFloatable(true);
newbar.setAlignmentX(Component.LEFT_ALIGNMENT);
newbar.setMargin(new Insets(0, 0, 0, 0));

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

vertical.setMargin(new Insets(10, 5, 5, 5));

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

toolbar.add(currentLocationPanel);
toolbar.add(webButton);
toolbar.setMargin(new Insets(5,3,2,3));
add(toolbar, BorderLayout.PAGE_START);

代码示例来源:origin: org.gephi/desktop-appearance

controlToolbar.setMargin(new java.awt.Insets(0, 4, 0, 0));
controlToolbar.setOpaque(false);

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

droidToolBar.setMargin(new java.awt.Insets(4, 4, 4, 4));
droidToolBar.setMaximumSize(new java.awt.Dimension(0, 0));
droidToolBar.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

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

droidToolBar.setMargin(new java.awt.Insets(4, 4, 4, 4));
droidToolBar.setMaximumSize(new java.awt.Dimension(0, 0));
droidToolBar.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

代码示例来源:origin: org.xworker/xworker_core

comp.setMargin(margin);

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

m_Toolbar.setVisible(false);
m_Toolbar.setFloatable(false);
m_Toolbar.setMargin(new Insets(0,0,0,0));

代码示例来源:origin: cytoscape.coreplugins/attribute-browser

browserToolBar.setMargin(new java.awt.Insets(0, 0, 3, 0));
browserToolBar.setPreferredSize(new Dimension(200, 30));
browserToolBar.setFloatable(false);

相关文章

JToolBar类方法