javax.swing.Box.createGlue()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(269)

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

Box.createGlue介绍

暂无

代码示例

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

versionPanel.add(revision);
versionPanel.add(launcher);
versionPanel.add(Box.createGlue());
versionPanel.add(loggedLabel);
versionPanel.add(emailLabel);

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

buttonPanel.add(removeButton);
buttonPanel.add(Box.createGlue());

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

cancelBox.add(Box.createGlue());
cancelBox.add(cancel);
cancelBox.add(Box.createGlue());
cancelBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 6, 0));

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

GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, ISOLATED_COMPONENT_INSETS, 0, 0));
configPanel.add(Box.createGlue(), new GridBagConstraints(0, 5, 2, 1, 1.0, 1.0,
    GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, emptyInsets(), 0, 0));

代码示例来源:origin: ron190/jsql-injection

lastLine.add(Box.createGlue());
lastLine.add(this.buttonClose);

代码示例来源:origin: ron190/jsql-injection

lastLine.add(Box.createGlue());
lastLine.add(this.buttonSend);

代码示例来源:origin: ron190/jsql-injection

panelCheckIp.setBorder(BorderFactory.createEmptyBorder(15, 0, 0, 0));
panelCheckIp.add(buttonCheckIp);
panelCheckIp.add(Box.createGlue());
panelProxy.add(panelCheckIp);

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

while (j <= 6) {
  jDiceResult.add(javax.swing.Box.createGlue());
}

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

while (j <= 6) {
  jDiceResult.add(javax.swing.Box.createGlue());
}

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

if (j <= 6) {
  jDiceResult.add(javax.swing.Box.createGlue());
}

代码示例来源:origin: sc.fiji/VIB-lib

public static JCheckBox addCheckBox(Container c, String label) {
  JCheckBox check = new JCheckBox();
  check.setSelected(false);
  Box box = new Box(BoxLayout.X_AXIS);
  box.add(new JLabel(label));
  box.add(Box.createGlue());
  box.add(check);
  c.add(box);
  return check;
}

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

private Box getDomainPanel(JTextField f){
  JLabel l01 = new JLabel("Input structures:");
  Box hBox = Box.createHorizontalBox();
  hBox.add(Box.createGlue());
  hBox.add(l01);
  f.setMaximumSize(new Dimension(Short.MAX_VALUE,30));
  f.setToolTipText("Provide structure identifiers space separated.");
  hBox.add(Box.createVerticalGlue());
  hBox.add(f, BorderLayout.CENTER);
  hBox.add(Box.createGlue());
  return hBox;
}

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

public ThreadProgress(int index)
{
  super(new BorderLayout(12,12));
  this.index = index;
  Box box = new Box(BoxLayout.Y_AXIS);
  box.add(Box.createGlue());
  box.add(progress = new JProgressBar());
  progress.setStringPainted(true);
  box.add(Box.createGlue());
  ThreadProgress.this.add(BorderLayout.CENTER,box);
  abort = new JButton(jEdit.getProperty("io-progress-monitor.abort"));
  abort.addActionListener(new ActionHandler());
  ThreadProgress.this.add(BorderLayout.EAST,abort);
  update();
} //}}}

代码示例来源:origin: edu.toronto.cs.savant/savant-core

private void initStatusBar() {
  toolbar_bottom.add(Box.createGlue(), 2);
  memorystatusbar = new MemoryStatusBarItem();
  memorystatusbar.setMaximumSize(new Dimension(100, 30));
  memorystatusbar.setFillColor(Color.lightGray);
  this.toolbar_bottom.add(memorystatusbar);
  setSpeedAndEfficiencyIndicatorsVisible(false);
}

代码示例来源:origin: com.numdata/numdata-swing

/**
 * Construct panel to place buttons on.
 *
 * @return Button panel component.
 */
@NotNull
protected Container createButtonBar()
{
  final Box result = new Box( BoxLayout.X_AXIS );
  result.setBorder( BorderFactory.createCompoundBorder( BorderFactory.createMatteBorder( 1, 0, 0, 0, Color.GRAY ), BorderFactory.createEmptyBorder( BUTTON_BAR_INSET, BUTTON_BAR_INSET, BUTTON_BAR_INSET, BUTTON_BAR_INSET ) ) );
  result.add( Box.createGlue() );
  add( result, BorderLayout.SOUTH );
  return result;
}

代码示例来源:origin: lbalazscs/Pixelitor

private static void createAboutBox() {
  box = Box.createVerticalBox();
  addLabel(AboutDialog.class.getResource("/images/pixelitor_icon48.png"));
  addLabel("<html><b><font size=+1>Pixelitor</font></b></html>");
  addLabel("Version " + Build.VERSION_NUMBER);
  box.add(Box.createRigidArea(new Dimension(10, 20)));
  addLabel("<html><center> Copyright \u00A9 2009-2018 L\u00E1szl\u00F3 Bal\u00E1zs-Cs\u00EDki " +
      "<br>and Contributors<br><br>");
  addLabel("lbalazscs\u0040gmail.com");
  JButton linkButton = createLinkButton();
  box.add(linkButton);
  box.add(Box.createGlue());
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

private void initialize() {
  setStyle(createGroupStyle());
  Box box = Box.createVerticalBox();
  add(box);
  box.setMinimumSize(new Dimension(200, 120));
  box.setPreferredSize(new Dimension(200, 120));
  Component c = Box.createGlue();
  c.setSize(160, 100);
  c.setMinimumSize(new Dimension(160, 100));
  final ResizableContainer rc = new ResizableContainer(c, this);
  box.add(rc);
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

public void init(VDialogWindow dialog,
      DialogAnswerListener answerListener,
      JComponent content, String[] options) {
    content.setAlignmentX(0.5f);
    add(content);
    add(Box.createGlue());
    add(createButtonPanel(dialog,
        DialogType.CUSTOM, answerListener, options));
  }
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

public void init(VDialogWindow dialog,
    DialogAnswerListener answerListener,
    JComponent content, DialogType type) {
  content.setAlignmentX(0.5f);
  add(content);
  add(Box.createGlue());
  add(createButtonPanel(dialog, type, answerListener));
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

/**
 * Constructor.
 * @param parent the type representation that uses the plot pane
 */
public PlotPane(TypeRepresentationBase parent) {
  this.typeRepresentation = parent;
  VBoxLayout layout = new VBoxLayout(this, VBoxLayout.X_AXIS);
  setLayout(layout);
  this.add(Box.createGlue());
  Box box = new Box(VBoxLayout.Y_AXIS);
  box.add(Box.createVerticalGlue());
  box.add(new Ruler(this));
  this.add(box);
  addComponentListener(this);
}

相关文章