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

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

问题描述

我不时使用Eclipse为我的雇主维护一些java代码,并根据我的需要在本地破解一些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.

虽然我没有升级我的Eclipse发行版自3.5版本发布以来,当我升级到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开发 stricto sensu

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可以呈现相同的类。

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表单编辑器无法为GUI类重新生成缺少的.form文件
,或者生成.form文件GUI类不是最初在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天全站免登陆