本文整理了Java中javax.swing.JSplitPane.add()
方法的一些代码示例,展示了JSplitPane.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSplitPane.add()
方法的具体详情如下:
包路径:javax.swing.JSplitPane
类名称:JSplitPane
方法名:add
暂无
代码示例来源:origin: libgdx/libgdx
splitPane.add(rightSplit, JSplitPane.RIGHT);
rightSplit.add(propertiesPanel, JSplitPane.TOP);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Editor Properties")));
rightSplit.add(propertiesPanel, JSplitPane.BOTTOM);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Emitter Properties")));
splitPane.add(leftSplit, JSplitPane.LEFT);
leftSplit.add(spacer, JSplitPane.BOTTOM);
spacer.add(lwjglCanvas.getCanvas());
spacer.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 4));
leftSplit.add(emittersPanel, JSplitPane.TOP);
emittersPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(0, 6, 6, 0), BorderFactory
.createTitledBorder("Effect Emitters")));
代码示例来源:origin: libgdx/libgdx
splitPane.add(rightSplit, JSplitPane.RIGHT);
rightSplit.add(propertiesPanel, JSplitPane.TOP);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Editor Properties")));
rightSplit.add(propertiesPanel, JSplitPane.BOTTOM);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Emitter Properties")));
splitPane.add(leftSplit, JSplitPane.LEFT);
leftSplit.add(spacer, JSplitPane.BOTTOM);
spacer.add(lwjglCanvas.getCanvas());
spacer.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 4));
leftSplit.add(emittersPanel, JSplitPane.TOP);
emittersPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(0, 6, 6, 0), BorderFactory
.createTitledBorder("Effect Emitters")));
代码示例来源:origin: libgdx/libgdx
splitPane.add(rightSplit, JSplitPane.RIGHT);
rightSplit.add(propertiesPanel, JSplitPane.TOP);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Editor Properties")));
rightSplitPane.setDividerSize(4);
rightSplitPane.setDividerLocation(100);
rightSplit.add(rightSplitPane, JSplitPane.BOTTOM);
rightSplitPane.add(propertiesPanel, JSplitPane.TOP);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Influencers")));
rightSplitPane.add(propertiesPanel, JSplitPane.BOTTOM);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Particle Controller Components")));
splitPane.add(leftSplit, JSplitPane.LEFT);
leftSplit.add(spacer, JSplitPane.TOP);
spacer.add(lwjglCanvas.getCanvas());
spacer.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 4));
leftSplit.add(emittersPanel, JSplitPane.BOTTOM);
emittersPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(0, 6, 6, 0), BorderFactory
.createTitledBorder("Particle Controllers")));
代码示例来源:origin: libgdx/libgdx
splitPane.add(rightSplit, JSplitPane.RIGHT);
rightSplit.add(propertiesPanel, JSplitPane.TOP);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Editor Properties")));
rightSplitPane.setDividerSize(4);
rightSplitPane.setDividerLocation(100);
rightSplit.add(rightSplitPane, JSplitPane.BOTTOM);
rightSplitPane.add(propertiesPanel, JSplitPane.TOP);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Influencers")));
rightSplitPane.add(propertiesPanel, JSplitPane.BOTTOM);
propertiesPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(3, 0, 6, 6), BorderFactory
.createTitledBorder("Particle Controller Components")));
splitPane.add(leftSplit, JSplitPane.LEFT);
leftSplit.add(spacer, JSplitPane.TOP);
spacer.add(lwjglCanvas.getCanvas());
spacer.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 4));
leftSplit.add(emittersPanel, JSplitPane.BOTTOM);
emittersPanel.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(0, 6, 6, 0), BorderFactory
.createTitledBorder("Particle Controllers")));
代码示例来源:origin: org.codehaus.groovy/groovy
private void jbInit(Reader reader) throws Exception {
final Border border = BorderFactory.createEmptyBorder();
jSplitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT);
tokenPane.setEditable(false);
tokenPane.setText("");
scriptPane.setFont(new java.awt.Font("DialogInput", 0, 12));
scriptPane.setEditable(false);
scriptPane.setMargin(new Insets(5, 5, 5, 5));
scriptPane.setText("");
jScrollPane1.setBorder(border);
jScrollPane2.setBorder(border);
jSplitPane1.setMinimumSize(new Dimension(800, 600));
mainPanel.add(jSplitPane1, BorderLayout.CENTER);
if (reader == null) {
mainPanel.add(jbutton, BorderLayout.NORTH);
}
this.getContentPane().add(mainPanel);
jSplitPane1.add(jScrollPane1, JSplitPane.LEFT);
jScrollPane1.getViewport().add(tokenPane, null);
jSplitPane1.add(jScrollPane2, JSplitPane.RIGHT);
jScrollPane2.getViewport().add(scriptPane, null);
jScrollPane1.setColumnHeaderView(new JLabel(" Token Stream:"));
jScrollPane2.setColumnHeaderView(new JLabel(" Input Script:"));
jSplitPane1.setResizeWeight(0.5);
}
代码示例来源:origin: wiztools/rest-client
jsp_main.add(initUIRequest());
jsp_main.add(initUIResponse());
this.add(jsp_main, BorderLayout.CENTER);
代码示例来源:origin: fr.ifremer/isis-fish
protected void addChildrenToSplit() {
if (!allComponentsCreated) {
return;
}
split.add(editor, JSplitPane.LEFT);
split.add($JScrollPane1, JSplitPane.RIGHT);
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void addChildrenToSplitPane() {
if (!allComponentsCreated) {
return;
}
splitPane.add(splitPane2, JSplitPane.LEFT);
splitPane.add($JScrollPane0, JSplitPane.RIGHT);
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void addChildrenToSplitPane2() {
if (!allComponentsCreated) {
return;
}
splitPane2.add(tableRemote, JSplitPane.LEFT);
splitPane2.add(tableLocal, JSplitPane.RIGHT);
}
代码示例来源:origin: stackoverflow.com
ChartPanel p = new ChartPanel(chart);
JSplitPane splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
frame1.add( splitpane , BorderLayout.CENTER );
splitpane.add(p);
splitpane.add(area1);
pane.validate();
frame1.validate();
frame1.repaint();
代码示例来源:origin: protegeproject/protege
public void componentAdded(ContainerEvent e) {
if (getComponentCount() == 1) {
splitPane.add(ViewHolder.this, ViewHolder.this.loc);
}
}
代码示例来源:origin: com.github.danielpacak.osgi.swingconsole/osgi.swingconsole
private void createGUI() {
setLayout(new BorderLayout());
add(menuBar, NORTH);
JSplitPane verticalPane = new JSplitPane(VERTICAL_SPLIT);
verticalPane.setResizeWeight(0.75);
verticalPane.add(table);
verticalPane.add(properties);
JSplitPane horizontalPane = new JSplitPane(HORIZONTAL_SPLIT);
horizontalPane.setResizeWeight(0.5);
horizontalPane.add(verticalPane);
horizontalPane.add(new JScrollPane(configuration));
add(horizontalPane, CENTER);
}
代码示例来源:origin: org.protege/protege-editor-core-application
public void componentAdded(ContainerEvent e) {
if (getComponentCount() == 1) {
splitPane.add(ViewHolder.this, ViewHolder.this.loc);
}
}
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
public void componentAdded(ContainerEvent e) {
if (getComponentCount() == 1) {
splitPane.add(ViewHolder.this, ViewHolder.this.loc);
}
}
代码示例来源:origin: com.github.danielpacak.osgi.swingconsole/osgi.swingconsole
private void createGUI() {
setLayout(new BorderLayout());
add(menuBar, BorderLayout.NORTH);
JSplitPane horizontalPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
horizontalPane.setResizeWeight(0.6);
horizontalPane.add(table);
horizontalPane.add(new JScrollPane(bundleManifest));
add(horizontalPane, BorderLayout.CENTER);
}
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_components
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout());
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
split.add(getTreePanel());
split.add(getSideBySidePanel());
add(split, BorderLayout.CENTER);
}
代码示例来源:origin: edu.stanford.protege/org.protege.ontograf
private void init() {
setLayout(new BorderLayout());
setTitle("Node tooltip configuration");
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
splitPane.add(getTypeScrollPanel(getTypesPanel("Class Tooltip Options:"), owlClassTooltipTypes));
splitPane.add(getTypeScrollPanel(getTypesPanel("Individual Tooltip Options:"), owlIndividualTooltipTypes));
splitPane.setDividerLocation(300);
add(splitPane, BorderLayout.CENTER);
add(getButtonPanel(), BorderLayout.SOUTH);
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
/**
* Create the user interface.
*/
private void createGUI()
{
setLayout(new BorderLayout());
_tree = new ObjectTree(_session);
_splitPane.setOneTouchExpandable(true);
_splitPane.setContinuousLayout(true);
LeftPanel leftPanel = new LeftPanel();
leftPanel.setMinimumSize(new Dimension(50,50));
_splitPane.add(leftPanel, JSplitPane.LEFT);
add(_splitPane, BorderLayout.CENTER);
_splitPane.setDividerLocation(200);
_tree.setSelectionRow(0);
}
代码示例来源:origin: realXuJiang/bigtable-sql
/**
* Create the user interface.
*/
private void createGUI()
{
setLayout(new BorderLayout());
_tree = new ObjectTree(_session);
_splitPane.setOneTouchExpandable(true);
_splitPane.setContinuousLayout(true);
LeftPanel leftPanel = new LeftPanel();
leftPanel.setMinimumSize(new Dimension(50,50));
_splitPane.add(leftPanel, JSplitPane.LEFT);
add(_splitPane, BorderLayout.CENTER);
_splitPane.setDividerLocation(200);
_tree.setSelectionRow(0);
}
代码示例来源:origin: net.sourceforge.jadex/jadex-rules-tools
/**
* Create a rule engine panel.
*/
public RuleEnginePanel(final RuleSystem rulesystem, final ISteppable steppable)
{
this.oavpanel = new OAVPanel(rulesystem.getState());
this.rulebasepanel = new RulebasePanel(rulesystem.getRulebase(), steppable);
this.retepanel = new RetePanel(rulesystem, steppable, rulebasepanel);
JSplitPane sp1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
sp1.setOneTouchExpandable(true);
sp1.add(rulebasepanel);
sp1.add(retepanel);
sp1.setDividerLocation(150);
this.addTab("Working Memory", icons.getIcon("show_state"), oavpanel);
this.addTab("Rule Engine", icons.getIcon("show_rete"), sp1);
this.setSelectedIndex(0);
}
内容来源于网络,如有侵权,请联系作者删除!