本文整理了Java中javax.swing.JSplitPane.setMinimumSize()
方法的一些代码示例,展示了JSplitPane.setMinimumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSplitPane.setMinimumSize()
方法的具体详情如下:
包路径:javax.swing.JSplitPane
类名称:JSplitPane
方法名:setMinimumSize
暂无
代码示例来源: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: magefree/mage
jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setOneTouchExpandable(true);
jSplitPane1.setMinimumSize(new java.awt.Dimension(26, 48));
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui
/**
*/
private void addView(final JSplitPane view) {
assert EventQueue.isDispatchThread();
view.setMinimumSize(new Dimension(0, 0));
tabPane.addTab(view.getToolTipText(), view);
tabPane.setSelectedComponent(view);
tabPane.validate();
}
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
private void createVerticalSplitPane() {
this.verticalSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
this.verticalSplitPane.setResizeWeight(0.8);
this.verticalSplitPane.setPreferredSize(new Dimension(620, 600));
this.verticalSplitPane.setMinimumSize(new Dimension(200, 200));
// add JTextPane to top of vertical split pane
this.createTextScrollPane();
this.verticalSplitPane.setTopComponent(this.textScrollPane);
// bottom pane is the legend, with checkboxes
this.verticalSplitPane.setBottomComponent(this.createTabbedChoicePane());
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
private void configureSecondComponent() {
JSplitPane secondSplit = (JSplitPane) getSecondComponent();
int newWidth = secondSplit.getMinimumSize().width;
int newHeight = 0;
if (getFirstComponent(secondSplit).isVisible() && getSecondComponent(secondSplit).isVisible()) {
newHeight = getSecondComponent(secondSplit).getSize().height
+ (getFirstComponent(secondSplit).isVisible()
? (getFirstComponent(secondSplit).getMinimumSize().height + secondSplit.getDividerSize()) : 0);
} else if (getFirstComponent(secondSplit).isVisible()) {
newHeight = getFirstComponent(secondSplit).getMinimumSize().height;
} else {
newHeight = getSecondComponent(secondSplit).getMinimumSize().height;
}
secondSplit.setMinimumSize(new Dimension(newWidth, newHeight));
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
private void configureFirstComponent() {
JSplitPane firstSplit = (JSplitPane) getFirstComponent();
int newWidth;
int newHeight;
newWidth = firstSplit.getMinimumSize().width;
newHeight = 0;
if (getFirstComponent(firstSplit).isVisible() && getSecondComponent(firstSplit).isVisible()) {
newHeight = getFirstComponent(firstSplit).getSize().height
+ getSecondComponent(firstSplit).getMinimumSize().height + firstSplit.getDividerSize();
} else if (getFirstComponent(firstSplit).isVisible()) {
newHeight = getFirstComponent(firstSplit).getMinimumSize().height;
} else {
newHeight = getSecondComponent(firstSplit).getMinimumSize().height;
}
firstSplit.setMinimumSize(new Dimension(newWidth, newHeight));
}
代码示例来源:origin: org.apache.uima/uimaj-tools
/**
* Creates the vertical split pane.
*/
private void createVerticalSplitPane() {
this.verticalSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
this.verticalSplitPane.setResizeWeight(0.8);
this.verticalSplitPane.setPreferredSize(new Dimension(620, 600));
this.verticalSplitPane.setMinimumSize(new Dimension(200, 200));
// add JTextPane to top of vertical split pane
this.createTextScrollPane();
this.verticalSplitPane.setTopComponent(this.textScrollPane);
// bottom pane is the legend, with checkboxes
this.verticalSplitPane.setBottomComponent(this.createTabbedChoicePane());
}
代码示例来源:origin: org.kohsuke.droovy/groovy
private void jbInit() throws Exception{
border1 = BorderFactory.createEmptyBorder();
border2 = 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(border1);
jScrollPane2.setBorder(border1);
jSplitPane1.setMinimumSize(new Dimension(800,600));
mainPanel.add(jSplitPane1, BorderLayout.CENTER);
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: org.codehaus.groovy/groovy-jdk14
private void jbInit() throws Exception{
border1 = BorderFactory.createEmptyBorder();
border2 = 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(border1);
jScrollPane2.setBorder(border1);
jSplitPane1.setMinimumSize(new Dimension(800,600));
mainPanel.add(jSplitPane1, BorderLayout.CENTER);
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: org.codehaus.groovy/groovy-all-minimal
private void jbInit() throws Exception{
border1 = BorderFactory.createEmptyBorder();
border2 = 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(border1);
jScrollPane2.setBorder(border1);
jSplitPane1.setMinimumSize(new Dimension(800,600));
mainPanel.add(jSplitPane1, BorderLayout.CENTER);
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: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
private void jbInit() throws Exception{
border1 = BorderFactory.createEmptyBorder();
border2 = 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(border1);
jScrollPane2.setBorder(border1);
jSplitPane1.setMinimumSize(new Dimension(800,600));
mainPanel.add(jSplitPane1, BorderLayout.CENTER);
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: cpesch/RouteConverter
mapSplitPane.setDividerLocation(0);
mapSplitPane.setDividerSize(10);
mapSplitPane.setMinimumSize(new Dimension(-1, -1));
mapSplitPane.setOneTouchExpandable(true);
mapSplitPane.setOpaque(true);
代码示例来源:origin: jpcsp/jpcsp
jSplitPane1.setMinimumSize(new java.awt.Dimension(179, 100));
代码示例来源:origin: sc.fiji/TrackMate_
public void init( final JGraphXAdapter lGraph )
{
this.graph = lGraph;
// GraphComponent
graphComponent = createGraphComponent();
// Add the info pane
infoPane = new InfoPane( trackScheme.getModel(), trackScheme.getSelectionModel() );
// Add the graph outline
final mxGraphOutline graphOutline = new mxGraphOutline( graphComponent );
final JSplitPane inner = new JSplitPane( JSplitPane.VERTICAL_SPLIT, graphOutline, infoPane );
inner.setDividerLocation( 120 );
inner.setMinimumSize( new Dimension( 0, 0 ) );
final JSplitPane splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, inner, graphComponent );
splitPane.setDividerLocation( 170 );
getContentPane().add( splitPane, BorderLayout.CENTER );
final TrackSchemeKeyboardHandler keyboardHandler = new TrackSchemeKeyboardHandler( graphComponent, new TrackNavigator( trackScheme.getModel(), trackScheme.getSelectionModel() ) );
keyboardHandler.installKeyboardActions( graphComponent );
keyboardHandler.installKeyboardActions( infoPane );
}
代码示例来源:origin: ontop/ontop
splitTargetSource.setDoubleBuffered(true);
splitTargetSource.setFocusable(false);
splitTargetSource.setMinimumSize(new java.awt.Dimension(600, 430));
splitTargetSource.setOneTouchExpandable(true);
splitTargetSource.setPreferredSize(new java.awt.Dimension(600, 430));
splitSQL.setResizeWeight(0.8);
splitSQL.setFocusable(false);
splitSQL.setMinimumSize(new java.awt.Dimension(600, 280));
splitSQL.setOneTouchExpandable(true);
splitSQL.setPreferredSize(new java.awt.Dimension(600, 280));
代码示例来源:origin: fiji/TrackMate
public void init( final JGraphXAdapter lGraph )
{
this.graph = lGraph;
// GraphComponent
graphComponent = createGraphComponent();
// Add the info pane
infoPane = new InfoPane( trackScheme.getModel(), trackScheme.getSelectionModel() );
// Add the graph outline
final mxGraphOutline graphOutline = new mxGraphOutline( graphComponent );
final JSplitPane inner = new JSplitPane( JSplitPane.VERTICAL_SPLIT, graphOutline, infoPane );
inner.setDividerLocation( 120 );
inner.setMinimumSize( new Dimension( 0, 0 ) );
final JSplitPane splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, inner, graphComponent );
splitPane.setDividerLocation( 170 );
getContentPane().add( splitPane, BorderLayout.CENTER );
final TrackSchemeKeyboardHandler keyboardHandler = new TrackSchemeKeyboardHandler( graphComponent, new TrackNavigator( trackScheme.getModel(), trackScheme.getSelectionModel() ) );
keyboardHandler.installKeyboardActions( graphComponent );
keyboardHandler.installKeyboardActions( infoPane );
}
代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit
splitPane.setOneTouchExpandable(true);
splitPane.setBorder(null);
splitPane.setMinimumSize(
new Dimension(0,0));
splitPane.setDividerLocation(divider);
代码示例来源:origin: gurkenlabs/litiengine
private static Component initRightSplitPanel() {
final MapObjectPanel mapEditorPanel = new MapObjectPanel();
final MapSelectionPanel mapSelectionPanel = new MapSelectionPanel();
EditorScreen.instance().setMapEditorPanel(mapEditorPanel);
EditorScreen.instance().setMapSelectionPanel(mapSelectionPanel);
JSplitPane rightSplitPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
rightSplitPanel.setMinimumSize(new Dimension(300, 0));
rightSplitPanel.setBottomComponent(mapEditorPanel);
rightSplitPanel.setTopComponent(mapSelectionPanel);
rightSplitPanel.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, evt -> userPreferences.setSelectionEditSplitter(rightSplitPanel.getDividerLocation()));
if (userPreferences.getSelectionEditSplitter() != 0) {
rightSplitPanel.setDividerLocation(userPreferences.getSelectionEditSplitter());
}
return rightSplitPanel;
}
代码示例来源:origin: org.apache.airavata/airavata-xbaya-gui
this.rightSplitPane.setBottomComponent(this.rightBottomTabbedPane);
this.leftSplitPane.setMinimumSize(SwingUtil.MINIMUM_SIZE);
this.rightSplitPane.setMinimumSize(SwingUtil.MINIMUM_SIZE);
代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit
newSplitPane.setOneTouchExpandable(true);
newSplitPane.setBorder(null);
newSplitPane.setMinimumSize(new Dimension(0,0));
newSplitPane.setResizeWeight(0.5);
内容来源于网络,如有侵权,请联系作者删除!