使用WindowsBuilder进行可视化设计时不能预览界面
2015-08-01 15:56
459 查看
今天用windowsBuilder设计界面,本来想自己写代码,然后再在可视化窗口中预览,看看效果,可是提示"WindowBuilder was not able to show the
GUI”的错误。google了一下,发现原来是布局不对造成的:
I tried creating a very simple project in which I created a layout manager named SomeLayout.
I copied into it the exact code from FillLayout, and I also created a SomeLayoutInfo class with helper classes, which I modeled exactly after the FillLayoutInfo and associated from the WB source tree. It doesn't seem to be working the way I expected. I have
attached a very simple sample Eclipse project that highlights the problem that I am seeing (note that the classpath will need to be massaged a bit to point to your local SWT version and WB installation directory).
In the sample project I have psoted, when I click on the Design tab for MainWindow.java, I get
a "WindowBuilder was not able to show the GUI" message. If I comment out line 47:
Code: [Select all] [Show/ hide]
GUI”的错误。google了一下,发现原来是布局不对造成的:
I tried creating a very simple project in which I created a layout manager named SomeLayout.
I copied into it the exact code from FillLayout, and I also created a SomeLayoutInfo class with helper classes, which I modeled exactly after the FillLayoutInfo and associated from the WB source tree. It doesn't seem to be working the way I expected. I have
attached a very simple sample Eclipse project that highlights the problem that I am seeing (note that the classpath will need to be massaged a bit to point to your local SWT version and WB installation directory).
In the sample project I have psoted, when I click on the Design tab for MainWindow.java, I get
a "WindowBuilder was not able to show the GUI" message. If I comment out line 47:
Code: [Select all] [Show/ hide]
// shell.setLayout(new SomeLayout(SWT.HORIZONTAL));
相关文章推荐
- Selenium2学习-024-WebUI自动化实战实例-022-网站不同分辨率下页面样式展示兼容性问题解决方案 -- 设置浏览器显示区域大小(无人值守,节约测试成本的福音,BOSS 最爱)
- UIView UILabel UITextFiled UIButton UIControlView UIAlertView
- c# ConcurrentQueue
- <property name="typeAliasesPackage" value="cn.itcast.core.bean"/>的作用
- Uilabel 字体
- hdu 4027 Can you answer these queries?
- windows 8.1 专业版 visual stuido 2015 安装失败
- UE和UI的概念
- Selenium2学习-023-WebUI自动化实战实例-021-获取浏览器显示区域大小,通过 WebDriver 截图功能
- Unique Binary Search Tree II
- Postgresql: UUID的使用
- Subsequence
- UIButton常用属性小结(编辑中。。。)
- PAT (Advanced Level) 1099. Build A Binary Search Tree (30) 中序遍历往BST中填数据
- DirectUI界面编程(六)实现右键弹出菜单
- DirectUI界面编程(六)实现右键弹出菜单
- DirectUI界面编程(六)实现右键弹出菜单
- Request processing failed; nested exception is java.lang.NullPointerException
- NSString+NSMutableString+NSArray+NSMutableArray+NSNumber+NSValue用法汇总
- SPOJ QTREE Query on a tree(边权LCT模板)