寻求帮助:Jface下如何布局界面问题。 主界面打算设计为左面放置一个treeview右面放置tableview,点击左侧树的节点可以动态的改变右边的列表显示,采用何种布局方式可以实现此效果,目前在createcontent方法中调用自己写的initTree和initTable方法,只显示一个,不能同时并排显示两个面板,请问如何解决此问题,最好带上一个简单代码实例,只要能同时显示左侧树和右侧表格控件即可,谢谢。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //窗休分为2列getShell().setLayout(new GridLayout(2,false)); //左边树 Composite leftComp = new Composite(shell,SWT.NONE); leftComp.setLayoutData(new GridData(GridData.FILL_BOTH));leftComp.setLayout(new FillLayout()); TreeViewer tv = new TreeViewer(leftComp,SWT.BORDER); //右边TableComposite rightComp = new Composite(shell,SWT.NONE);rightComp.setLayoutData(new GridData(GridData.FILL_BOTH)); rightComp.setLayout(new FillLayout()); TableViewer tb = new TableViewer(rightComp,SWT.BORDER); 请大虾指点!!!!!!!! 无法执行sql.executeUpdate 求一高难度正则表达式 java中如何得到当前月份英文名称 界面问题 读Thinking in java 遇到困难。 很简单,简单的问题,谢谢! 用jbuilder调度程序时出现source file and class file are out of sync错误,是怎么回事?在线等,急 java.awt.TextField 如何自动获得焦点??? VJ好,还是JBuilder好???? 关于JTextPane的问题!!! 难题
//窗休分为2列
getShell().setLayout(new GridLayout(2,false)); //左边树
Composite leftComp = new Composite(shell,SWT.NONE);
leftComp.setLayoutData(new GridData(GridData.FILL_BOTH));
leftComp.setLayout(new FillLayout());
TreeViewer tv = new TreeViewer(leftComp,SWT.BORDER);
//右边Table
Composite rightComp = new Composite(shell,SWT.NONE);
rightComp.setLayoutData(new GridData(GridData.FILL_BOTH));
rightComp.setLayout(new FillLayout());
TableViewer tb = new TableViewer(rightComp,SWT.BORDER);