javax.swing.JSplitPane.setDividerSize()方法的使用及代码示例

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

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

JSplitPane.setDividerSize介绍

暂无

代码示例

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

splitPane.setDividerSize(4);
getContentPane().add(splitPane, BorderLayout.CENTER);
  rightSplit.setDividerSize(4);
  splitPane.add(rightSplit, JSplitPane.RIGHT);
  leftSplit.setDividerSize(4);
  splitPane.add(leftSplit, JSplitPane.LEFT);

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

splitPane.setDividerSize(4);
getContentPane().add(splitPane, BorderLayout.CENTER);
  rightSplit.setDividerSize(4);
  splitPane.add(rightSplit, JSplitPane.RIGHT);
  leftSplit.setDividerSize(4);
  splitPane.add(leftSplit, JSplitPane.LEFT);

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

splitPane.setDividerSize(4);
getContentPane().add(splitPane, BorderLayout.CENTER);
  rightSplit.setDividerSize(4);
  splitPane.add(rightSplit, JSplitPane.RIGHT);
    rightSplitPane.setDividerSize(4);
    rightSplitPane.setDividerLocation(100);
    rightSplit.add(rightSplitPane, JSplitPane.BOTTOM);
  leftSplit.setDividerSize(4);
  splitPane.add(leftSplit, JSplitPane.LEFT);

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

splitPane.setDividerSize(4);
getContentPane().add(splitPane, BorderLayout.CENTER);
  rightSplit.setDividerSize(4);
  splitPane.add(rightSplit, JSplitPane.RIGHT);
    rightSplitPane.setDividerSize(4);
    rightSplitPane.setDividerLocation(100);
    rightSplit.add(rightSplitPane, JSplitPane.BOTTOM);
  leftSplit.setDividerSize(4);
  splitPane.add(leftSplit, JSplitPane.LEFT);

代码示例来源:origin: wiztools/rest-client

jsp_main.setDividerSize(5);
jsp_main.add(initUIRequest());
jsp_main.add(initUIResponse());

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

sp.setResizeWeight(0.7);
sp.setEnabled(false);
sp.setDividerSize(0);

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

private void setGUISize() {
  jTableSeats.getTableHeader().setFont(GUISizeHelper.tableFont);
  jTableSeats.setFont(GUISizeHelper.tableFont);
  jTableSeats.setRowHeight(GUISizeHelper.getTableRowHeight());
  jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
  jScrollPane1.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
  jScrollPane1.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));
}

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

private void setGUISize() {
  jSplitPane0.setDividerSize(GUISizeHelper.dividerBarSize);
  jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
  jSplitPane2.setDividerSize(GUISizeHelper.dividerBarSize);
  stackObjects.setCardDimension(GUISizeHelper.handCardDimension);
  txtSpellsCast.setFont(new Font(GUISizeHelper.gameDialogAreaFont.getFontName(), Font.BOLD, GUISizeHelper.gameDialogAreaFont.getSize()));
  txtHoldPriority.setFont(new Font(GUISizeHelper.gameDialogAreaFont.getFontName(), Font.BOLD, GUISizeHelper.gameDialogAreaFont.getSize()));
  GUISizeHelper.changePopupMenuFont(popupMenuTriggerOrder);
  int newStackWidth = pnlHelperHandButtonsStackArea.getWidth() * GUISizeHelper.stackWidth / 100;
  if (newStackWidth < 410) {
    newStackWidth = 410;
  }
  Dimension newDimension = new Dimension(pnlHelperHandButtonsStackArea.getWidth() - newStackWidth, GUISizeHelper.handCardDimension.height + GUISizeHelper.scrollBarSize);
  handContainer.setPreferredSize(newDimension);
  handContainer.setMaximumSize(newDimension);
  newDimension = new Dimension(newStackWidth, STACK_MIN_CARDS_OFFSET_Y + GUISizeHelper.handCardDimension.height + GUISizeHelper.scrollBarSize);
  stackObjects.setPreferredSize(newDimension);
  stackObjects.setMinimumSize(newDimension);
  stackObjects.setMaximumSize(newDimension);
  newDimension = new Dimension(newStackWidth, (int) pnlShortCuts.getPreferredSize().getHeight());
  pnlShortCuts.setPreferredSize(newDimension);
  pnlShortCuts.setMinimumSize(newDimension);
  pnlShortCuts.setMaximumSize(newDimension);
}

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

private void setGUISize() {
  tablePlayers.getTableHeader().setFont(GUISizeHelper.tableFont);
  tablePlayers.setFont(GUISizeHelper.tableFont);
  tablePlayers.setRowHeight(GUISizeHelper.getTableRowHeight());
  tableMatches.getTableHeader().setFont(GUISizeHelper.tableFont);
  tableMatches.setFont(GUISizeHelper.tableFont);
  tableMatches.setRowHeight(GUISizeHelper.getTableRowHeight());
  jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
  jSplitPane2.setDividerSize(GUISizeHelper.dividerBarSize);
  jScrollPane1.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
  jScrollPane1.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));
  jScrollPane2.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
  jScrollPane2.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));
  actionButtonColumn1.changeGUISize();
}

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

public void changeGUISize() {
  setGUISize();
  deckList.changeGUISize();
  sideboardList.changeGUISize();
  deckAreaSplitPane.setDividerSize(GUISizeHelper.dividerBarSize);
}

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

jSplitPane1.setDividerSize(3);
jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setToolTipText("");

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

tableCompleted.setRowHeight(GUISizeHelper.getTableRowHeight());
jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
jSplitPaneTables.setDividerSize(GUISizeHelper.dividerBarSize);
jScrollPaneTablesActive.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
jScrollPaneTablesActive.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));

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

private void setGUISize() {
  jTablePlayers.getTableHeader().setFont(GUISizeHelper.tableFont);
  jTablePlayers.setFont(GUISizeHelper.tableFont);
  jTablePlayers.setRowHeight(GUISizeHelper.getTableRowHeight());
  jScrollPanePlayers.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
  jScrollPanePlayers.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));
  jScrollPaneSystem.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
  jScrollPaneSystem.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));
  jTabbedPaneText.setFont(GUISizeHelper.getTabFont());
  jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
}

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

jSplitPane1.setDividerSize(10);
jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
jSplitPane1.setResizeWeight(0.25);

代码示例来源:origin: apache/pdfbox

jSplitPane1.setDividerSize(3);

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

jSplitPane1.setDividerSize(7);
jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setOneTouchExpandable(true);
jSplitPane0.setDividerSize(7);
jSplitPane0.setResizeWeight(1.0);
jSplitPane0.setOneTouchExpandable(true);

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

jSplitPane1.setDividerSize(10);
jSplitPane1.setResizeWeight(1.0);
jSplitPaneTables.setDividerSize(10);
jSplitPaneTables.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
jSplitPaneTables.setResizeWeight(0.5);

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

private void closeDock()
{
 _split.setDividerLocation(0);
 _split.setDividerSize(0);
}

代码示例来源:origin: net.sf.squirrel-sql.plugins/graph

private void onShow(JPanel panel, int lastHeight)
{
 _split.setBottomComponent(panel);
 _split.setDividerLocation(_split.getHeight() - lastHeight - _standardDividerSize - 1);
 _split.setDividerSize(_standardDividerSize);
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-ui

private void hideStep() {
  jSplitPaneSequenceStep.setDividerSize(0);
  jSplitPaneSequenceStep.setBottomComponent(null);
  if (jScrollPaneStep != null) {
    if (jScrollPaneStep.getComponentCount() > 0) {
      jScrollPaneStep.removeAll();
    }
    jScrollPaneStep = null;
  }
  textArea = null;
}

相关文章

JSplitPane类方法