Luk*_*ane 3 java swing netbeans design-time matisse
在NetBeans中使用Swing图形编辑器时,自定义组件是否可以检测到它的设计时间?例如
public CustomComponent() {
initComponents();
if (!isDesignTime()) {
someIcon = IconFactory.loadIcon("icons/SomeIcon.png");
}
}
Run Code Online (Sandbox Code Playgroud)
基本上我是在追求类似.net的东西 Component.DesignMode