I am using Netbeans on design mode for to make a gui. I am looking for a property corresponding to the setVisible
method of java and I can not find it.
I have looked in Properties and Binding, but have found nothing.
At last I have written this.component.setVisible(false);
in Post-Init Code in the section of the pallet code.
Is there another way to do this?
PS: I use Netbeans 7.1
Window---> IDE Tools--> Palette Show activity on this post. For Netbeans 8 use: Ctrl + Shift + 8 . You can then drag it to any section of the window where you want it to appear.
You can change the of the preview by: Tools-Options Miscellaneous tab Windows tab Look and Feel:Preferred look and feel. With this the look and feel of the IDE changes too.
The component palette provides quick access to commonly used components (JavaBeans) available for adding to forms. The components are organized in categories.
Choose Edit | Find in Projects to search all files in all open projects (including project metadata files). In the Projects window, right-click the node for the folder or project that you want to search in and choose Find (or press Ctrl-F).
What I did was right click the label and go to Customize code and make the label visibility as false.
Nope!
If you're using netbeans the default is to open components as visible. As far as i'm aware this can't be changed unless you do not use a GUI builder such as netbeans.
As you said in your question you can just simply set the component's .setVisible() parameter to false or true depending on what you would like!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With