现有代码上的 NetBeans Gui Builder [英] NetBeans Gui Builder on existing code

查看:26
本文介绍了现有代码上的 NetBeans Gui Builder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不时使用 Eclipse 为我的雇主维护一些 Java 代码,并根据我的需要在本地 hack 一些 OSS.

I use Eclipse from time to time to maintain some java code for my employer and to hack locally some OSS to my needs.

虽然自 3.5 版本以来我没有升级我的 Eclipse 发行版,但最近当我升级到 3.7 时,我对 WindowBuilder 功能感到惊讶.WindowBuilder 具有解析一些现有代码并呈现相应 GUI 的有趣可能性.当它不是自动的时,我可以尝试通过右键单击/使用/WindowBuilder编辑器打开来强制渲染.

While I did not upgraded my Eclipse distro since the 3.5 release, I was recently amazed by the WindowBuilder feature when I upgraded to 3.7. WindowBuilder has the interesting possibility to parse some existing code and render the corresponding GUI. When it is not automagical, I can try to force the rendering by a right-click / open with / WindowBuilder editor.

我最近还决定测试 NetBeans IDE(此时可用的最新版本:7.0.1),我发现它在视觉上很吸引人,而且我想它应该比我的 Eclipse + 一堆插件(NSIS 集成 +mylyn + CDT + ...) 仅用于一些 Java 开发严格意义上.

I also recently decided to test the NetBeans IDE (latest release available at this time : 7.0.1) that I found visually appealing and that I guess it should be less bloated than my Eclipse + a bunch of plugins (NSIS integration + mylyn + CDT + ...) for just some java development stricto sensu.

我的问题是,对于某些代码(在我的测试用例中,它在 jomic 项目中)NetBeans GUI Builder 没有渲染(非常简单的)Jframe 派生类,我没有找到是否/如何告诉它尝试.如果我 用/WindowBuilder 编辑器打开,WindowBuilder 可以呈现相同的类.

My problem is that for some code (in my test case, it is on the jomic project) NetBeans GUI Builder makes no rendering of a (quite simple) Jframe derived class, and I did not found if / how to tell it to try. The same class can be rendered by WindowBuilder if I open with / WindowBuilder editor.

有什么技巧可以用来渲染 GUI 代码吗?感谢您帮助 NetBeans 菜鸟 :)

Is there a trick that I can use to render the GUI code ? Thanks for helping a NetBeans rookie :)

推荐答案

GUI Builder 仅适用于 GUI Builder 生成的代码.

The GUI Builder only works on code that the GUI Builder made.

NetBeans 表单编辑器无法重新生成丢失的 .form 文件用于 GUI 类,或者 为 GUI 类生成 .form 文件而不是最初在 NetBeans 中创建.

NetBeans form editor is not able to regenerate a missing .form file for GUI classes, or to generate a .form file for GUI classes not originally created in NetBeans.

然而,有一些外部工具试图解决这个问题,例如FormGenerator.检查 contrib.netbeans.org 以获得最新版本.来源

However, there are some external tools trying to address this problem, e.g. FormGenerator. Check contrib.netbeans.org for newest version. Source

这篇关于现有代码上的 NetBeans Gui Builder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆