// Create a left-right split pane
JSplitPane hpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftComponent, rightComponent); // Create a top-bottom split pane
JSplitPane vpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topComponent, bottomComponent); // Get the children from the horizontal split pane
leftComponent = hpane.getLeftComponent();
rightComponent = hpane.getRightComponent(); // Get the children from the vertical split pane
topComponent = vpane.getTopComponent();
bottomComponent = vpane.getBottomComponent(); // Replace the children in the horizontal split pane
hpane.setLeftComponent(comp1);
hpane.setRightComponent(comp2); // Replace the children in the vertical split pane
vpane.setTopComponent(comp3);
vpane.setBottomComponent(comp4);
Related Examples

最新文章

  1. DOM对象与JQUERY对象的相互转化
  2. (转)SpyGlass工具介绍
  3. bzoj3315:[Usaco2013 Nov]Pogo-Cow
  4. Spring事务传播特性的浅析——事务方法嵌套调用的迷茫
  5. [RAC] oracle rac 后台进程
  6. 不为人知的Locked
  7. React的JSX语法及组件
  8. Filebeat 启动关闭流程
  9. 【朝花夕拾】Android编码风格篇
  10. cdh5.15集群添加spark2.3服务(parcels安装)
  11. Django之Models(一)
  12. React native 环境搭建遇到问题解决(android)
  13. Sqlite数据库管理(SQLite Developer) v4.0.0.528 中文版+破解方法(申明:来源于网络)
  14. shiro实战系列(八)之安全管理器
  15. 【Pyton】【小甲鱼】正则表达式(一)
  16. CF&&CC百套计划1 Codeforces Round #449 B. Ithea Plays With Chtholly
  17. NLTK和Stanford NLP两个工具的安装配置
  18. golang学习之slice基本操作
  19. CentOS/RedHat安装Python3
  20. BZOJ2333:[SCOI2011]棘手的操作(Splay)

热门文章

  1. 【转】Android项目使用Ant打包,生成build.xml
  2. 修改AIX Noncomp内存占用比
  3. python导外部包
  4. 基于jQuery图片弹出翻转特效代码
  5. 基于jquery多种切换效果的焦点图(兼容ie6)
  6. java基础篇---内存分析
  7. java基础解疑!!
  8. [转]MYSQL 与 Oracle 之间的数据类型转换
  9. Java并发编程:阻塞队列 <转>
  10. android:screenOrientation的说明