Package javax.swing

Examples of javax.swing.JPanel.revalidate()


    portField = new JTextField(8);
    portField.setName(ProxyControl.PORT);
    portField.addKeyListener(this);
    portField.setText("8080");
    panel.add(portField);
    panel.revalidate();
    return panel;
  }

  private JPanel createIncludePanel()
  {
View Full Code Here


        JPanel panel = new JPanel();
        panel.setLayout(new BorderLayout());
        panel.add(sourceCodeScrollPane, BorderLayout.CENTER);

        panel.revalidate();
        if (MainFrame.GUI2_DEBUG) {
            System.out.println("Created source code panel");
        }
        return panel;
    }
View Full Code Here

          tree.setModel(treeModel);
          //tree.setPreferredSize(new Dimension(180, 400));
          treePanel.removeAll();
          treePanel.add("Center", tree);
          //pack();
          treePanel.revalidate();
          selBtn.setEnabled(true);
         
        }catch(RuntimeException e){
          e.printStackTrace();
         
View Full Code Here

        }catch(RuntimeException e){
          e.printStackTrace();
         
          treePanel.removeAll();
          treePanel.add("Center", new JTextArea(e.getMessage()));
          treePanel.revalidate();
         
          //dispose();
        }
      }
    }.start();
View Full Code Here

    characterPanel.setBackground(Color.LIGHT_GRAY);
    weaponPanel.setBackground(Color.LIGHT_GRAY);
   
    roomPanel.revalidate();
    characterPanel.revalidate();
    weaponPanel.revalidate();
   
    notebookPanel.setBackground(Color.LIGHT_GRAY);
    notebookPanel.add(characterLabel);
    notebookPanel.add(characterPanel);
    notebookPanel.add(weaponLabel);
View Full Code Here

                        searchField.requestFocus();
                    } else {
                        searchField.setText("");
                        table.requestFocus();
                    }
                    filterPane.revalidate();
                    filterPane.repaint();
                }
            });
            searchField.addKeyListener(new KeyAdapter() {
                @Override
View Full Code Here

    arrow.setColor(color);
    arrow.setArrowLocation(startX, startY, endX, endY);
    arrow.setBounds(0, 0, Math.max(startX, endX) + 30, Math.max(startY, endY) + 30); // 30 is offset for arrow heads (being cut otherwise)
    //System.out.println("  Adding arrow (startX=" + startX + ", startY=" + startY +", endX=" + endX + ", endY=" + endY + ")");
    p.add(arrow);
    p.revalidate();
    p.repaint();
  }
 
  /**
   * Removes all arrows from the screen.
View Full Code Here

   */
  public static void removeAllArrows() {
    JPanel p = getArrowsPanel();
    if (p.getComponentCount() > 0) {
      p.removeAll();
      p.revalidate();
      p.repaint();
    }
  }

}
View Full Code Here

    // setup the accessory
    accessory = new JPanel();
    accessory.setLayout(null);
    accessory.setPreferredSize(new Dimension(200, 200));
    accessory.revalidate();
    m_FileChooserPanel.setAccessory(accessory);
    m_CustomDimensionsCheckBox = new JCheckBox(Messages.getInstance().getString("PrintableComponent_InitFileChooser_CustomDimensionsCheckBox_JCheckBox_Text"));
    m_CustomDimensionsCheckBox.setBounds(14, 7, 200, 21);
    m_CustomDimensionsCheckBox.addItemListener(new ItemListener() {
View Full Code Here

    // setup the accessory
    accessory = new JPanel();
    accessory.setLayout(null);
    accessory.setPreferredSize(new Dimension(200, 200));
    accessory.revalidate();
    m_FileChooserPanel.setAccessory(accessory);
    m_CustomDimensionsCheckBox = new JCheckBox("Use custom dimensions");
    m_CustomDimensionsCheckBox.setBounds(14, 7, 200, 21);
    m_CustomDimensionsCheckBox.addItemListener(new ItemListener() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.