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

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

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

JSplitPane.setDividerLocation介绍

暂无

代码示例

代码示例来源: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: libgdx/libgdx

splitPane = new JSplitPane();
splitPane.setUI(new BasicSplitPaneUI() {
  public void paint (Graphics g, JComponent jc) {
getContentPane().add(splitPane, BorderLayout.CENTER);
  JSplitPane rightSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
  rightSplit.setUI(new BasicSplitPaneUI() {
    public void paint (Graphics g, JComponent jc) {
  rightSplit.setDividerLocation(200);
  JSplitPane leftSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
  leftSplit.setUI(new BasicSplitPaneUI() {
    public void paint (Graphics g, JComponent jc) {
  leftSplit.setDividerLocation(575);
splitPane.setDividerLocation(325);

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

splitPane = new JSplitPane();
splitPane.setUI(new BasicSplitPaneUI() {
  public void paint (Graphics g, JComponent jc) {
getContentPane().add(splitPane, BorderLayout.CENTER);
  JSplitPane rightSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
  rightSplit.setUI(new BasicSplitPaneUI() {
    public void paint (Graphics g, JComponent jc) {
  rightSplit.setDividerLocation(200);
  JSplitPane leftSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
  leftSplit.setUI(new BasicSplitPaneUI() {
    public void paint (Graphics g, JComponent jc) {
  leftSplit.setDividerLocation(575);
splitPane.setDividerLocation(325);

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

private void initializeComponents () {
  splitPane = new JSplitPane();
  splitPane.setUI(new BasicSplitPaneUI() {
    public void paint (Graphics g, JComponent jc) {
  getContentPane().add(splitPane, BorderLayout.CENTER);
    JSplitPane rightSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    rightSplit.setUI(new BasicSplitPaneUI() {
      public void paint (Graphics g, JComponent jc) {
      JSplitPane rightSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
      rightSplitPane.setUI(new BasicSplitPaneUI() {
        public void paint (Graphics g, JComponent jc) {
      rightSplitPane.setDividerLocation(100);
      rightSplit.add(rightSplitPane, JSplitPane.BOTTOM);
    rightSplit.setDividerLocation(250);
    leftSplit.setDividerLocation(625);
  splitPane.setDividerLocation(500);

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

private void initializeComponents () {
  splitPane = new JSplitPane();
  splitPane.setUI(new BasicSplitPaneUI() {
    public void paint (Graphics g, JComponent jc) {
  getContentPane().add(splitPane, BorderLayout.CENTER);
    JSplitPane rightSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    rightSplit.setUI(new BasicSplitPaneUI() {
      public void paint (Graphics g, JComponent jc) {
      JSplitPane rightSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
      rightSplitPane.setUI(new BasicSplitPaneUI() {
        public void paint (Graphics g, JComponent jc) {
      rightSplitPane.setDividerLocation(100);
      rightSplit.add(rightSplitPane, JSplitPane.BOTTOM);
    rightSplit.setDividerLocation(250);
    leftSplit.setDividerLocation(625);
  splitPane.setDividerLocation(500);

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

JSplitPane controlSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, createCodeEditorPanel(),
    createXPathQueryPanel());
JSplitPane astAndSymbolTablePane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, createASTPanel(),
    createSymbolTableResultPanel());
JSplitPane resultsSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, astAndSymbolTablePane,
    createXPathResultPanel());
frame.setVisible(true);
int horozontalMiddleLocation = controlSplitPane.getMaximumDividerLocation() * 3 / 5;
controlSplitPane.setDividerLocation(horozontalMiddleLocation);
containerSplitPane.setDividerLocation(containerSplitPane.getMaximumDividerLocation() / 2);
astAndSymbolTablePane.setDividerLocation(astAndSymbolTablePane.getMaximumDividerLocation() / 3);
resultsSplitPane.setDividerLocation(horozontalMiddleLocation);

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

JSplitPane tableViewerSplitPane = new JSplitPane();
tableViewerSplitPane.setOneTouchExpandable(true);
tableViewerSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
tableViewerSplitPane.setDividerLocation(350);
JSplitPane splitPane = new JSplitPane();
splitPane.setOneTouchExpandable(true);
splitPane.setRightComponent(tableViewerSplitPane);
splitPane.setLeftComponent(categoryExplorerTreeScrollPane);
splitPane.setDividerLocation(130);

代码示例来源:origin: igniterealtime/Smack

private void addBasicPanels() {
  JSplitPane allPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
  allPane.setOneTouchExpandable(true);
  allPane.setBottomComponent(sublayout);
  allPane.setDividerLocation(150);

代码示例来源:origin: pentaho/mondrian

/**
 * 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.
 */
private void initComponents() {//GEN-BEGIN:initComponents
  jSplitPane1 = new javax.swing.JSplitPane();
  jScrollPane1 = new javax.swing.JScrollPane();
  tree = new javax.swing.JTree();
  jScrollPane2 = new javax.swing.JScrollPane();
  setLayout(new java.awt.BorderLayout());
  jSplitPane1.setDividerLocation(200);
  jScrollPane1.setViewportView(tree);
  jSplitPane1.setLeftComponent(jScrollPane1);
  jSplitPane1.setRightComponent(jScrollPane2);
  add(jSplitPane1, java.awt.BorderLayout.CENTER);
} //GEN-END:initComponents

代码示例来源: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();
btnStart.addActionListener(evt -> btnStartActionPerformed(evt));
jSplitPane1.setDividerLocation(300);
jSplitPane1.setDividerSize(3);
jSplitPane1.setResizeWeight(1.0);

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

splitPane = new JSplitPane();
splitPane.setDividerLocation(200);                    // the initial position of the divider is 200 (our window is 400 pixels high)

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

jSplitPane1 = new javax.swing.JSplitPane();
jPanel1 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jSplitPane1.setDividerLocation(250);
jSplitPane1.setResizeWeight(0.5);

代码示例来源: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.setToolTipText("");
jSplitPane1.setDividerLocation(230);
jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
jSplitPane1.setResizeWeight(0.5);

代码示例来源:origin: pentaho/mondrian

jScrollPane3 = new javax.swing.JScrollPane();
executeButton = new javax.swing.JButton();
jSplitPane1 = new javax.swing.JSplitPane();
jScrollPane1 = new javax.swing.JScrollPane();
queryTextPane = new javax.swing.JTextPane();
jSplitPane1.setDividerLocation(100);
jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
queryTextPane.setFont(new java.awt.Font("Courier New", 0, 12));

代码示例来源:origin: camunda/camunda-bpm-platform

JSplitPane tableViewerSplitPane = new JSplitPane();
tableViewerSplitPane.setOneTouchExpandable(true);
tableViewerSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
tableViewerSplitPane.setDividerLocation(350);
JSplitPane splitPane = new JSplitPane();
splitPane.setOneTouchExpandable(true);
splitPane.setRightComponent(tableViewerSplitPane);
splitPane.setLeftComponent(categoryExplorerTreeScrollPane);
splitPane.setDividerLocation(130);

代码示例来源:origin: fossasia/neurolab-desktop

JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, this.trackPanel, toolsPanel);
splitPane.setDividerLocation(border + trackHeight / 2);
this.add(splitPane);

代码示例来源:origin: pentaho/mondrian

jSplitPane1 = new JSplitPane();
jPanel1 = new JPanel();
jScrollPane2 = new JScrollPane();
jSplitPane1.setDividerLocation(200);
jPanel1.setLayout(new BorderLayout());

代码示例来源:origin: ome/bio-formats_plugins

private JSplitPane makeSplitPane(JList list, JPanel info) {
 JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
  new JScrollPane(list), info);
 splitPane.setDividerLocation(260);
 return splitPane;
}

代码示例来源:origin: openmicroscopy/bioformats

private JSplitPane makeSplitPane(JList list, JPanel info) {
 JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
  new JScrollPane(list), info);
 splitPane.setDividerLocation(260);
 return splitPane;
}

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

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

相关文章

JSplitPane类方法