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

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

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

JSplitPane.setResizeWeight介绍

暂无

代码示例

代码示例来源:origin: stanfordnlp/CoreNLP

/**
 * Sets up the file panel, input panel, and match panel
 */
private static JSplitPane setUpTopPanels() {
 JPanel filePanel = FilePanel.getInstance();
 JPanel inputPanel = InputPanel.getInstance();
 JPanel matchesPanel = MatchesPanel.getInstance();
 JSplitPane inputAndMatchesPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, inputPanel, matchesPanel);
 inputAndMatchesPane.setDividerLocation(450);
 inputAndMatchesPane.setResizeWeight(.5);
 inputAndMatchesPane.setBorder(BorderFactory.createEmptyBorder());
 JSplitPane fullTopPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, filePanel, inputAndMatchesPane);
 fullTopPanel.setDividerLocation(275);
 fullTopPanel.setBorder(BorderFactory.createEmptyBorder());
 return fullTopPanel;
}

代码示例来源:origin: kiegroup/optaplanner

private JComponent createContentPane() {
  JComponent quickOpenPanel = createQuickOpenPanel();
  JPanel mainPanel = new JPanel(new BorderLayout());
  mainPanel.add(createToolBar(), BorderLayout.NORTH);
  mainPanel.add(createMiddlePanel(), BorderLayout.CENTER);
  mainPanel.add(createScorePanel(), BorderLayout.SOUTH);
  JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, quickOpenPanel, mainPanel);
  splitPane.setOneTouchExpandable(true);
  splitPane.setResizeWeight(0.2);
  return splitPane;
}

代码示例来源:origin: skylot/jadx

private void initUI() {
  mainPanel = new JPanel(new BorderLayout());
  JSplitPane splitPane = new JSplitPane();
  splitPane.setResizeWeight(SPLIT_PANE_RESIZE_WEIGHT);
  mainPanel.add(splitPane);

代码示例来源:origin: kiegroup/optaplanner

private JComponent createQuickOpenPanel() {
  JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
      createQuickOpenUnsolvedPanel(), createQuickOpenSolvedPanel());
  splitPane.setResizeWeight(0.8);
  splitPane.setBorder(null);
  return splitPane;
}

代码示例来源:origin: MovingBlocks/Terasology

propertyPanelScrollPane.setPreferredSize(new Dimension(350, 720));
verticalSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, viewport, propertyPanelScrollPane);
verticalSplitPane.setContinuousLayout(true);
verticalSplitPane.setResizeWeight(0.5);
getContentPane().add(verticalSplitPane, BorderLayout.CENTER);

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

/** Create content of this MainFrame. */
private void createContent() {
  setLayout(new BorderLayout());
  textArea = new JTextArea(20, 15);
  textArea.setEditable(false);
  final JScrollPane textAreaScrollPane = new JScrollPane(textArea);
  treeTable = new TreeTable(model.getParseTreeTableModel());
  treeTable.setEditor(textArea);
  treeTable.setLinePositionMap(model.getLinesToPosition());
  final JScrollPane treeTableScrollPane = new JScrollPane(treeTable);
  final JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, treeTableScrollPane,
    textAreaScrollPane);
  add(splitPane, BorderLayout.CENTER);
  splitPane.setResizeWeight(0.7);
  add(createButtonsPanel(), BorderLayout.PAGE_END);
  pack();
}

代码示例来源:origin: kiegroup/optaplanner

final List<ConstraintMatchTotal> constraintMatchTotalList
    = solutionBusiness.getConstraintMatchTotalList();
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
final JTable table = new JTable(new ConstraintMatchTotalTableModel(constraintMatchTotalList));
TableColumnModel columnModel = table.getColumnModel();
bottomPanel.add(buttonPanel, BorderLayout.SOUTH);
splitPane.setBottomComponent(bottomPanel);
splitPane.setResizeWeight(1.0);
setContentPane(splitPane);

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

@PostConstruct
public void init() {
  addWindowListener(
      new WindowAdapter() {
        @Override
        public void windowClosing(WindowEvent windowEvent) {
          dispose();
        }
      }
  );
  JScrollPane containerTreePane;
  containerTreePane = new JScrollPane(treeView.asUIComponent());
  containerTreePane.setMinimumSize(new Dimension(180, 200));
  JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
  splitPane.setBorder(new EmptyBorder(10, 10, 10, 10));
  splitPane.setLeftComponent(containerTreePane);
  splitPane.setRightComponent(detailView.asUIComponent());
  splitPane.setResizeWeight(0.65);
  setLayout(new BorderLayout());
  setPreferredSize(new Dimension(700, 500));
  setMinimumSize(new Dimension(500, 250));
  add(splitPane, BorderLayout.CENTER);
  pack();
  setVisible(true);
}

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

xPathPanel = new XPathPanel(model);
getContentPane().setLayout(new BorderLayout());
JSplitPane editingPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, sourcePanel, astPanel);
editingPane.setResizeWeight(0.5d);
JPanel interactionsPane = new JPanel(new BorderLayout());
interactionsPane.add(xPathPanel, BorderLayout.SOUTH);

代码示例来源:origin: stanfordnlp/CoreNLP

JSplitPane verticalSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, inputAndMatchesPanel, displayMatchesPanel);
verticalSplit.setResizeWeight(.2);
this.add(verticalSplit, BorderLayout.CENTER);

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

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
  deckAreaSplitPane = new javax.swing.JSplitPane();
  deckList = new mage.client.cards.DragCardGrid();
  sideboardList = new mage.client.cards.DragCardGrid();
  deckAreaSplitPane.setBorder(null);
  deckAreaSplitPane.setResizeWeight(0.6);
  deckAreaSplitPane.setLeftComponent(deckList);
  deckAreaSplitPane.setRightComponent(sideboardList);
  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  this.setLayout(layout);
  layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(deckAreaSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE)
  );
  layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(deckAreaSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE)
  );
}// </editor-fold>//GEN-END:initComponents

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

JSplitPane sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
sp.setResizeWeight(0.7);
sp.setEnabled(false);
sp.setDividerSize(0);

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

btnCancel = new javax.swing.JButton();
btnStart = new javax.swing.JButton();
jSplitPane1 = new javax.swing.JSplitPane();
jScrollPane1 = new javax.swing.JScrollPane();
jTableSeats = new javax.swing.JTable();
jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setToolTipText("");

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

jSplitPane1 = new javax.swing.JSplitPane();
jPanel1 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jSplitPane1.setResizeWeight(0.5);

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

private void initComponents() {
  jSplitPane1 = new javax.swing.JSplitPane();
  cardSelector = new mage.client.deckeditor.CardSelector();
  deckArea = new mage.client.deckeditor.DeckArea();
  jSplitPane1.setResizeWeight(0.5);
  jSplitPane1.setTopComponent(cardSelector);
  jSplitPane1.setBottomComponent(deckArea);

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

lblStartTime = new javax.swing.JLabel();
lblEndTime = new javax.swing.JLabel();
jSplitPane2 = new javax.swing.JSplitPane();
jSplitPane1 = new javax.swing.JSplitPane();
jScrollPane1 = new javax.swing.JScrollPane();
tablePlayers = new javax.swing.JTable();
);
jSplitPane2.setResizeWeight(1.0);
jSplitPane2.setToolTipText("");
jSplitPane1.setResizeWeight(0.5);

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

jSplitPane1 = new javax.swing.JSplitPane();
jScrollPanePlayers = new javax.swing.JScrollPane();
jTablePlayers = new MageTable(tableInfo);
jSplitPane1.setDividerSize(10);
jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
jSplitPane1.setResizeWeight(0.25);

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

jSplitPane1 = new javax.swing.JSplitPane();
jSplitPane0 = new javax.swing.JSplitPane();
jPanel2 = new javax.swing.JPanel();
pnlHelperHandButtonsStackArea = new javax.swing.JPanel();
gameChatPanel.setMinimumSize(new java.awt.Dimension(100, 48));
gameChatPanel.enableHyperlinks();
jSplitPane2 = new javax.swing.JSplitPane();
handContainer = new HandPanel();
handCards = new HashMap<>();
jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setOneTouchExpandable(true);
jSplitPane1.setMinimumSize(new java.awt.Dimension(26, 48));
jSplitPane0.setResizeWeight(1.0);
jSplitPane0.setOneTouchExpandable(true);
jSplitPane2.setResizeWeight(0.5);
jSplitPane2.setLeftComponent(userChatPanel);
jSplitPane2.setBottomComponent(gameChatPanel);

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

btnPassword = new javax.swing.JToggleButton();
btnQuickStart = new javax.swing.JButton();
jSplitPane1 = new javax.swing.JSplitPane();
jPanelTables = new javax.swing.JPanel();
jSplitPaneTables = new javax.swing.JSplitPane();
jScrollPaneTablesActive = new javax.swing.JScrollPane();
tableTables = new MageTable();
jSplitPane1.setResizeWeight(1.0);
jSplitPaneTables.setResizeWeight(0.5);

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

JSplitPane splitPane = new JSplitPane();
splitPane.setLeftComponent(new JTextPane());
splitPane.setRightComponent(new JTextPane());
splitPane.setResizeWeight(0.7);
splitPane.setDividerLocation(.7);

相关文章

JSplitPane类方法