如何在NetBeans中编辑GUI的灰色区域? [英] how to edit grayed out area of GUI in NetBeans?

查看:94
本文介绍了如何在NetBeans中编辑GUI的灰色区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请为我的愚蠢问题感到抱歉,但我无法找到有关如何更改设置的信息,以便在NetBeans 6.1中我可以编辑蓝色防护区域。


我在FAQ中阅读 NetBeans Wiki:FaqFormEditingGuardedBlocks 我必须在Properties-> Code中更改一些内容,但我确实我不知道这应该是什么。


提前谢谢。

Please sorry for my dumb question but I cannot find information on how I can change settings so that in NetBeans 6.1 I can edit blue guarded areas.

I read in FAQ NetBeans Wiki: FaqFormEditingGuardedBlocks that I had to change something in Properties->Code ,but I really can''t figure out what this should be.

Thanks in advance.

推荐答案

嘿那里!


这里没有愚蠢的问题:-)但是我现在不急于帮助你,我会抓住我的笔记本,安装了NetBeans,然后我就看看了。你的链接中包含的文字似乎很有吸引力......当你尝试说什么时会发生什么?


有点!
Hey there!

No dumb questions here:-) But I am not at leisure to help you right now, I will grab my notebook, it has NetBeans installed, then I''ll have a look. The text included in your link seems quite fetching though... what happens when you try what is said?

In a bit!


< a href =https://bytes.com/topic/java/answers/856301-how-edit-grayed-out-area-gui-netbeans#post3435822\"rel =nofollowclass =at_reply> @ValValVal


你给出的链接部分说明......
@ValValVal
The link you gave says in part...

但是,请注意,在initComponents()方法调用之后,您可以轻松地从受保护的块中编写代码,通常是构造函数,作为应该执行的附加设置代码。这个选项经常被遗忘,但它是添加自定义代码的最有效和最简单的方法,适用于大多数情况(例如自定义实例化代码除外)。
However, please note that you can easily write your code out of the guarded block, typically into the constructor after the initComponents() method call, as additional setup code that should be performed. This option is often forgotten, but it is the most eficient and easiset way to add custom code, working in most situation (e.g. except custom instantiation code).



你试过吗?我发现它一直适用于我。

只需在initComponents()之后放置你想做的事情,然后如果你需要在那里改变一些东西,它总是轻而易举。

或者你有一个特殊的原因为什么要直接更改生成的代码??


问候,


Alex。

Have you tried that? I find it works for me all the time.
Just put whatever you want to do after initComponents() then if you need to change something there, it''s always a breeze.
Or you have a special reason why you want to change the generated code directly??

Regards,

Alex.


嗨!

我没有特别需要编辑它,但仍想知道更多关于系统的知识,有时NetBeans会生成错误的代码。在这些情况下,我必须帮助他。
Hi!
I have no special needs to edit it, but still want to know to get more knoledge about the system ,and sometimes NetBeans generates bad code. In these cases I must help him out.


这篇关于如何在NetBeans中编辑GUI的灰色区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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