Examples of invalidate()


Examples of javax.swing.JLayeredPane.invalidate()

    if(isEmbeddedPanelCreated) {
      if(isProxiedFiliation) {
        if(embeddedPanel.getParent() == null) {
          layeredPane.setLayer(embeddedPanel, Integer.MIN_VALUE);
          layeredPane.add(embeddedPanel);
          layeredPane.invalidate();
          layeredPane.validate();
        }
        JLayeredPane oldLayeredPane = findLayeredPane(embeddedPanel);
        if(layeredPane != oldLayeredPane) {
          embeddedPanel.isCrossWindowReparenting = true;
View Full Code Here

Examples of javax.swing.JList.invalidate()

    public void actionPerformed(final ActionEvent e)
    {
      final JList list = getFormulaList();
      list.setListData(getDescriptionsForCategory(getSelectedCategoryName()));
      list.invalidate();
    }
  }

  private class FormulaListMouseHandler extends MouseAdapter
  {
View Full Code Here

Examples of javax.swing.JMenu.invalidate()

      }
    });
    separateServersMenuItem.setSelected( viewType == ServerViewTypes.MULTI_TAB );
    viewMenu.add( separateServersMenuItem );
   
    viewMenu.invalidate();
  }

  private void initializeProjectsMenu() {
        // initialize popup on servers panel.
        getProjectsMenu();
View Full Code Here

Examples of javax.swing.JOptionPane.invalidate()

    dlg.setSize(Integer.parseInt(ConfigProperties.getInstance()
        .getProperty(EDITOR_WIDTH)), Integer.parseInt(ConfigProperties
        .getInstance().getProperty(EDITOR_HEIGHT)));
    com.subhajit.gui.FrameUtils.centerDialog(dlg);
    op.setVisible(true);
    op.invalidate();
    dlg.setModal(true);
    dlg.setVisible(true);
  }

  /**
 
View Full Code Here

Examples of javax.swing.JPanel.invalidate()

      }

      contentPane.add(mToolBarPanel, location);
    }

    contentPane.invalidate();
    contentPane.updateUI();
  }

  private void addContextMenuMouseListener(final JComponent c) {
    c.addMouseListener(new MouseAdapter() {
View Full Code Here

Examples of javax.swing.JRootPane.invalidate()

            @Override
            public void run() {
                ui.setVisible(value);
                JRootPane rp = SwingUtilities.getRootPane(ui);
                if (rp != null) {
                    rp.invalidate();
                    rp.repaint();
                }
            }
        });
    }
View Full Code Here

Examples of javax.swing.JScrollPane.invalidate()

                        - scrollInsets.bottom);
            }

            d.setSize(d.getWidth() - 20, d.getHeight() - 20);
            setAllSize(x, y);
            scrollPane.invalidate();
            scrollPane.validate();
        }
    }

    private Insets getInsets(JScrollPane scrollPane) {
View Full Code Here

Examples of javax.swing.JTabbedPane.invalidate()

    editingPanel.invalidate();
    tabbedPane.add("Edit bean field", editingPanel);

    tabbedPane.add("View entire bean", renderWholeBeanPanel());
    tabbedPane.setVisible(true);
    tabbedPane.invalidate();
    add(tabbedPane);
  }

  /**
   * Protected constructor
View Full Code Here

Examples of javax.swing.JTable.invalidate()

          return c;
        }
      };
      ret.setModel(new DefaultTableModel());
      ret.setVisible(true);
      ret.invalidate();
      return ret;
    }

    public static JTable newTable(final String[] tableLabels,
        final int[] columnWidths) {
View Full Code Here

Examples of javax.swing.JTree.invalidate()

  public JTree createBeanEditingTree(Object bean, String[] fieldsToEdit)
      throws ReflectionException {
    DefaultMutableTreeNode defaultMutableTreeNode = new DefaultMutableTreeNode();
    JTree ret = new JTree(new DefaultTreeModel(defaultMutableTreeNode));
    setupBean(ret, bean, fieldsToEdit);
    ret.invalidate();
    ret.setVisible(true);
    return ret;
  }

  public ClassLoader getCustomClassLoader() {
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.