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

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

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

JSplitPane.setBorder介绍

暂无

代码示例

代码示例来源: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 createQuickOpenPanel() {
  JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
      createQuickOpenUnsolvedPanel(), createQuickOpenSolvedPanel());
  splitPane.setResizeWeight(0.8);
  splitPane.setBorder(null);
  return splitPane;
}

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

@PostConstruct
public void init() {
  browserPanel.add(browserView.asUIComponent(), BorderLayout.CENTER);
  browserPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 5));
  browserPanel.setPreferredSize(new Dimension(250, 250));
  browserPanel.setMinimumSize(new Dimension(250, 250));
  infoPanel.add(deviceInfosView.asUIComponent(), BorderLayout.CENTER);
  infoPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));
  infoPanel.setPreferredSize(new Dimension(675, 200));
  infoPanel.setMinimumSize(new Dimension(650, 200));
  eastWestSplitPane.setBorder(BorderFactory.createEmptyBorder());
  eastWestSplitPane.setResizeWeight(0);
  eastWestSplitPane.setLeftComponent(browserPanel);
  eastWestSplitPane.setRightComponent(infoPanel);
  northSouthSplitPane.setBorder(BorderFactory.createEmptyBorder());
  northSouthSplitPane.setResizeWeight(0.8);
  northSouthSplitPane.setTopComponent(eastWestSplitPane);
  northSouthSplitPane.setBottomComponent(logView.asUIComponent());
  add(toolbarView.asUIComponent(), BorderLayout.NORTH);
  add(northSouthSplitPane, BorderLayout.CENTER);
  setSize(new Dimension(975, 700));
  setMinimumSize(new Dimension(975, 450));
  setResizable(true);
}

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

spt.setBorder(new BevelBorder(BevelBorder.LOWERED));
spt.setPreferredSize(new Dimension(this.getWidth(), 24));
this.add(spt, BorderLayout.SOUTH);

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

colorPaneSystem = new mage.client.components.ColorPane();
jSplitPane1.setBorder(null);
jSplitPane1.setDividerSize(10);
jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

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

jSplitPane1.setBorder(null);
jSplitPane1.setDividerSize(7);
jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setMinimumSize(new java.awt.Dimension(26, 48));
jSplitPane0.setBorder(null);
jSplitPane0.setDividerSize(7);
jSplitPane0.setResizeWeight(1.0);

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

add(jPanelTop, gridBagConstraints);
jSplitPane1.setBorder(null);
jSplitPane1.setDividerSize(10);
jSplitPane1.setResizeWeight(1.0);
jSplitPaneTables.setBorder(null);
jSplitPaneTables.setDividerSize(10);
jSplitPaneTables.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

代码示例来源:origin: com.google.code.findbugs/findbugs

private void removeSplitPaneBorders(JSplitPane pane) {
  pane.setUI(new BasicSplitPaneUI() {
    @Override
    public BasicSplitPaneDivider createDefaultDivider() {
      return new BasicSplitPaneDivider(this) {
        @Override
        public void setBorder(Border b) {
        }
      };
    }
  });
  pane.setBorder(new EmptyBorder(3, 3, 3, 3));
}

代码示例来源:origin: Nepxion/Thunder

public JPanel createContainer() {
  if (container == null) {
    splitPane = new JSplitPane();
    splitPane.setBorder(BorderFactory.createEmptyBorder());
    splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
    container = new JPanel();
    container.setLayout(new BorderLayout());
    showTable(tableVisible);
  }
  return container;
}

代码示例来源:origin: org.optaplanner/optaplanner-examples

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

代码示例来源:origin: com.fifesoft.rtext/fife.common

@Override
protected void installDefaults() {
  super.installDefaults();
  splitPane.setBorder(null);
  divider.setDividerSize(4);
}

代码示例来源:origin: antlr/antlrworks

public JSplitPane createSplitPane() {
  JSplitPane pane = new JSplitPane();
  pane.setBorder(null);
  pane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
  pane.setContinuousLayout(true);
  pane.setOneTouchExpandable(true);
  pane.setResizeWeight(0.5);
  return pane;
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

public Component create(Context context) {
    JSplitPane splitPane = new DebugSplitPane((Integer) context.get("newOrientation"));
    splitPane.setBorder(null);
    splitPane.setContinuousLayout(true);
    splitPane.setDividerSize(0);
    splitPane.setDividerLocation(300);
    splitPane.setLeftComponent(null);
    splitPane.setRightComponent(null);
    return splitPane;
  }
}

代码示例来源:origin: protegeproject/protege

public OWLAnnotationEditor(OWLEditorKit owlEditorKit) {
  this.owlEditorKit = owlEditorKit;
  mainPanel.setLayout(new BorderLayout());
  JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
  mainPanel.add(splitPane);
  annotationPropertySelector = createAnnotationPropertySelector();
  splitPane.setLeftComponent(annotationPropertySelector);
  splitPane.setRightComponent(tabbedPane);
  splitPane.setBorder(null);
  loadEditors();
  initialiseLastSelectedProperty();
  annotationPropertySelector.addSelectionListener(event -> verify());
  tabbedPane.addChangeListener(changeListener);
}

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

/**
 * Make {@link JSplitPane} controls invisible. This should help keeping the
 * user interface clean.
 *
 * @param splitPane   Split pane whose controls to make invisible.
 * @param borderSize  Size of empty border around split pane (e.g. 4).
 * @param dividerSize Size of split pane divider(e.g. 8).
 */
public static void makeSplitPaneControlsInvisible( final JSplitPane splitPane, final int borderSize, final int dividerSize )
{
  splitPane.setBorder( BorderFactory.createEmptyBorder( borderSize, borderSize, borderSize, borderSize ) );
  splitPane.setDividerSize( dividerSize );
  splitPane.setUI( new InvisibleSplitPaneUI() );
}

代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl

public ObjectSelectorPanel(OWLEditorKit owlEditorKit) {
    this.owlEditorKit = owlEditorKit;
    ontologiesPanel = new OntologyImportsAndNavigationPanel(owlEditorKit);
    setLayout(new BorderLayout());
    JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    add(splitPane);
    splitPane.setTopComponent(ontologiesPanel);
    entitiesPanel = new OWLEntitySelectorPanel(owlEditorKit);
    splitPane.setBottomComponent(entitiesPanel);
    splitPane.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
    splitPane.setResizeWeight(0.18);

  }
}

代码示例来源:origin: org.protege/protege-editor-owl

public ObjectSelectorPanel(OWLEditorKit owlEditorKit) {
    this.owlEditorKit = owlEditorKit;
    ontologiesPanel = new OntologyImportsAndNavigationPanel(owlEditorKit);
    setLayout(new BorderLayout());
    JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    add(splitPane);
    splitPane.setTopComponent(ontologiesPanel);
    entitiesPanel = new OWLEntitySelectorPanel(owlEditorKit);
    splitPane.setBottomComponent(entitiesPanel);
    splitPane.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
    splitPane.setResizeWeight(0.18);

  }
}

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

public void propertiesChanged()
{
  showIcons = jEdit.getBooleanProperty("vfs.browser.showIcons");
  table.propertiesChanged();
  GUIUtilities.initContinuousLayout(splitPane);
  splitPane.setBorder(null);
} //}}}

相关文章

JSplitPane类方法