Solved

How Can I Set Java Swing Components to be Invisible or Hidden

Posted on 2010-11-28
1
685 Views
Last Modified: 2013-12-14
Hello,

I have a large GUI interface built in NetBeans IDE using Java Swing and AWT components. How can I set the GUI components to be hidden or invisible? Without affecting the functionality or their presence. Will really appreciate a response.

Thanks

Anthony
0
Comment
Question by:anthonynonso
1 Comment
 
LVL 2

Accepted Solution

by:
rnevet earned 500 total points
ID: 34226541
if you don't want the layout to change:
every JComponent has a setVisible(boolean) function. should do the job.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 79
Java - Why doesn't this JFrame work 3 43
ForLoop Example 3 40
Windows 10 IE Certificate Issue 10 42
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now