如何让我的 Netbeans 拖放小部件知道它是在 Netbeans 设计视图窗口还是正在运行的应用程序中呈现?
如何让我的 Netbeans 拖放小部件知道它是在 Netbeans 设计视图窗口还是正在运行的应用程序中呈现?
我正在尝试进行一些自定义渲染。 我认为这与根容器有关。
How do I get my netbeans drag and drop widget to know whether it is rendering inside the netbeans design view window or the running application?
I'm trying to do some custom rendering. I think it has to do with the root container.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试 java.beans.Beans.isDesignTime ()。
Try java.beans.Beans.isDesignTime().
这是另一种方法:
虽然我认为该
方法更好
This is another method:
Although I think the
method is better
进行测试
使用以下示例
它有效 - 这非常令人难以置信。
Testing the
with the following example
It works - that's quite incredible.