Hide « JPanel « Java Swing Q&A





1. How to show/hide JPanels in a JFrame?    stackoverflow.com

The application I am developing is a game. What I want to do is have JPanels that appear in the JFrame, like a text or message window, and then disappear ...

2. How to hide a panel in Java    stackoverflow.com

I am working on a java questionnaire app, and there is one problem: for example, there is two main questions, and the first main question has a subquestion, all the questions are ...

3. hiding JPanel based on binding (beansbinding)    forums.netbeans.org

4. Hide and unhide panel    coderanch.com

5. JPanel show / hide    coderanch.com

why this code doesn't work ? I am using Netbeans RCP. final JPanel card1 = new CuPanel(); final JPanel card2 = new StaffPanel(); private mainTopComponent() { //...... jPanel1.add(card1, "customer"); jPanel1.add(card2, "staff"); } private void initComponents() { ........ jComboBox1 = new javax.swing.JComboBox(); jPanel1 = new javax.swing.JPanel(); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "none", "staff", "customer" })); jComboBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ...

6. Issues with hiding a panel    coderanch.com

The long running code that takes time needs to be in a separate Thread. The code that updates the GUI needs to execute on the EDT. The tutorial shows an example of using a SwingWorker to do both parts of this. The other approach is to do it yourself by creating a separate Thread for the long running task. Then within ...

7. NetBeans JPanel Hide    forums.oracle.com

I'm working on a game Applet and after the Main Menu I would like to hide that JPanel and display another one that was hidden. I know how to do this with the setVisible() method, but is there a way I can hide the Main Menu JPanel in the Netbeans GUI editor so I can create the other one easily? And ...