Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is setVisible in Netbeans palette?

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

like image 729
Fran b Avatar asked Jul 09 '12 10:07

Fran b


People also ask

How do I find my palette in Netbeans?

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.

How do I change the swing look and feel in Netbeans?

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.

What is Palette in Netbeans?

The component palette provides quick access to commonly used components (JavaBeans) available for adding to forms. The components are organized in categories.

How do I search all files in Netbeans?

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).


2 Answers

What I did was right click the label and go to Customize code and make the label visibility as false.

like image 198
Anuja Shiran Avatar answered Oct 21 '22 16:10

Anuja Shiran


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!

like image 1
James Avatar answered Oct 21 '22 16:10

James