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

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

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

JSplitPane.setOneTouchExpandable介绍

暂无

代码示例

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

tableViewerSplitPane.setOneTouchExpandable(true);
tableViewerSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
tableViewerSplitPane.setLeftComponent(_logTableScrollPane);
splitPane.setOneTouchExpandable(true);
splitPane.setRightComponent(tableViewerSplitPane);
splitPane.setLeftComponent(categoryExplorerTreeScrollPane);

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

private void addBasicPanels() {
  JSplitPane allPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
  allPane.setOneTouchExpandable(true);

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

JSplitPane mainSplittedPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, upperPanel,bottomPanel);
mainSplittedPane.setOneTouchExpandable(true);
mainSplittedPane.setResizeWeight(0.5);

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

tableViewerSplitPane.setOneTouchExpandable(true);
tableViewerSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
tableViewerSplitPane.setLeftComponent(_logTableScrollPane);
splitPane.setOneTouchExpandable(true);
splitPane.setRightComponent(tableViewerSplitPane);
splitPane.setLeftComponent(categoryExplorerTreeScrollPane);

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

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

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

// put two JScrollPane into SplitPane 
 JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
     scrollPanelLeft, scrollPanelRight);
 splitPane.setOneTouchExpandable(true);
 // still no effect
 add(splitPane, BorderLayout.CENTER);
 setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
 setVisible(true);// JFrame setVisible
 splitPane.setDividerLocation(getWidth()/2); //Use setDividerLocation here.

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-vmd-game

private void initLayout() {		
  this.mainEditorPanel.setLayout(new BorderLayout());
  
  //layout the main window
  this.mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, false, this.previewExplorerSplit, this.mainEditorPanel);
  this.mainSplit.setDividerLocation(230);
  this.mainSplit.setDividerSize(5);
  this.mainSplit.setOneTouchExpandable(false);
  this.mainSplit.setResizeWeight(0.0);
  
  //TODO: here implement the toolbar panel
  //this.rootPanel.add(this.toolbarPanel);
  
  this.rootPanel.add(this.mainEditorPanel, BorderLayout.CENTER);
  
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = CONSTRUCTOR_JSDOC, params = {"orientation"})
public SplitPane(int aOrientation) {
  super(aOrientation == Orientation.VERTICAL ? JSplitPane.VERTICAL_SPLIT : JSplitPane.HORIZONTAL_SPLIT);
  super.setOneTouchExpandable(true);
  //super.setDividerSize(3);
}

代码示例来源:origin: triplea-game/triplea

private void layoutComponents() {
 final Container content = this;
 content.setLayout(new BorderLayout());
 final JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
 split.setLeftComponent(chatMessagePanel);
 split.setRightComponent(chatPlayerPanel);
 split.setOneTouchExpandable(false);
 split.setDividerSize(DIVIDER_SIZE);
 split.setResizeWeight(1);
 content.add(split, BorderLayout.CENTER);
}

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

JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
        treeScrollPane, scrollPane);
    splitPane.setOneTouchExpandable(true);
    splitPane.setDividerLocation(400);
    splitPane.setContinuousLayout(true);

add(splitPane, "push, grow");

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setOneTouchExpandable(boolean aValue) {
  super.setOneTouchExpandable(aValue);
}

代码示例来源:origin: fr.ifremer/isis-fish

protected void createSplit() {
  $objectMap.put("split", split = new JSplitPane());
  
  split.setName("split");
  split.setOneTouchExpandable(true);
  split.setOrientation(0);
  split.setResizeWeight(0.8);
}

代码示例来源:origin: fr.ifremer/isis-fish

protected void createSplitPane2() {
  $objectMap.put("splitPane2", splitPane2 = new JSplitPane());
  
  splitPane2.setName("splitPane2");
  splitPane2.setOneTouchExpandable(true);
  splitPane2.setOrientation(1);
}

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

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: cmu-phil/tetrad

private JSplitPane createSplitPane(UpdaterWrapper updaterWrapper) {
  JScrollPane workbenchScroll = createWorkbenchScroll(updaterWrapper);
  workbenchScroll.setBorder(new TitledBorder("Manipulated Graph"));
  JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
      workbenchScroll, createRightPanel(updaterWrapper));
  splitPane.setOneTouchExpandable(true);
  splitPane.setDividerLocation(workbenchScroll.getPreferredSize().width);
  return splitPane;
}

代码示例来源:origin: MegaMek/mekhq

public void hideDailyReportDialog() {
  logDialog.setVisible(false);
  mainPanel.setRightComponent(panLog);
  mainPanel.setOneTouchExpandable(true);
  miDetachLog.setEnabled(true);
  miAttachLog.setEnabled(false);
  this.revalidate();
  this.repaint();
}

代码示例来源: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.sf.squirrel-sql.plugins/graph

public GraphQueryWherePanel(HideDockButtonHandler hideDockButtonHandler, JComponent editor, GraphPluginResources rsrc)
{
 setLayout(new BorderLayout());
 add(createButtonPanel(hideDockButtonHandler, rsrc), BorderLayout.NORTH);
 split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
 treeWhere = new JTree();
 split.setLeftComponent(new JScrollPane(treeWhere));
 split.setRightComponent(createEditorPanel(editor));
 split.setOneTouchExpandable(true);
 add(split);
}

代码示例来源:origin: MegaMek/mekhq

public JTextPane getReport() {
  // SplitPane them
  JSplitPane splitOverviewPersonnel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, getCombatPersonnelReport(), getSupportPersonnelReport());
  splitOverviewPersonnel.setName("splitOverviewPersonnel");
  splitOverviewPersonnel.setOneTouchExpandable(true);
  splitOverviewPersonnel.setResizeWeight(0.5);
  
  // Actual report pane
  JTextPane txtReport = new JTextPane();
  txtReport.setMinimumSize(new Dimension(800, 500));
  txtReport.insertComponent(splitOverviewPersonnel);
  return txtReport;
}

相关文章

JSplitPane类方法