Package javax.swing

Examples of javax.swing.JComponent$AccessibleJComponent


   */
  protected final void cleanUp()
  {
    if (component instanceof JComponent && isOwnPeerConnected() == false)
    {
      final JComponent jc = (JComponent) component;
      RepaintManager.currentManager(jc).removeInvalidComponent(jc);
      RepaintManager.currentManager(jc).markCompletelyClean(jc);
    }
    contentPane.removeAll();
    RepaintManager.currentManager(contentPane).removeInvalidComponent(contentPane);
View Full Code Here


   */
  private void prepareComponent(final Component c)
  {
    if (c instanceof JComponent)
    {
      final JComponent jc = (JComponent) c;
      jc.setDoubleBuffered(false);
      final Component[] childs = jc.getComponents();
      for (int i = 0; i < childs.length; i++)
      {
        final Component child = childs[i];
        prepareComponent(child);
      }
View Full Code Here

                        }
                    }));
        }

        if (component instanceof JComponent) {
            JComponent c = (JComponent) component;
           
            // remove all listeners
            removeListeners(c);
           
            if (c instanceof net.datacrow.console.components.lists.DcList)
                ((net.datacrow.console.components.lists.DcList) c).clear();
           
            if (c instanceof DcTable)
                ((DcTable) c).clear();
           
            if (c instanceof DcPanel)
                ((DcPanel) c).clear();
           
            if (c instanceof IComponent)
                ((IComponent) c).clear();
           
            if (c instanceof JMenu) {
                for (int i = 0; i < ((JMenu) c).getItemCount(); i++)
                    clean(((JMenu) c).getItem(i));
            }
           
            for (int i = 0; i < c.getComponentCount(); i++) {
                try {
                    clean(c.getComponent(i));
                } catch (Exception e) {}
            }

            c.setComponentPopupMenu(null);
            c.removeAll();
            c.removeNotify();
            c.invalidate();
        }
    }   
View Full Code Here

            showPopup = (popup != null);
        }

        if (showPopup) {

            JComponent map = null;
            if (mouseDelegator != null) {
                map = mouseDelegator.getMap();
            } else if (canvas != null) {
                // If a MouseDelegator is not being used, go
                // directly to the MapBean.
View Full Code Here

        jcc.getSelectionModel().addChangeListener(ok);
       
        /* WORKAROUND for Java bug #5029286 and #6199676 */
        //        jcc.setPreviewPanel(ok.getTransparancyAdjustment(initColor.getAlpha()));
        JComponent previewPanel = ok.getTransparancyAdjustment(initColor.getAlpha());
        previewPanel.setSize(previewPanel.getPreferredSize());
        previewPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 1, 0));
        jcc.setPreviewPanel(previewPanel);
       
        JDialog colorDialog = JColorChooser.createDialog(component,
                title,
                true,
View Full Code Here

        if (windowSupport != null) {
            windowSupport.killWindow();
            windowSupport = null;
        }

        JComponent comp = createPropertyGUI(propertyConsumer);
        windowSupport = new WindowSupport(comp, "Inspector - " + prefix);
        windowSupport.setMaxSize(-1, 500);
        windowSupport.displayInWindow();
    }
View Full Code Here

     * @return JComponent, a panel holding the interface to set the properties.
     */
    public JComponent createPropertyGUI(String prefix, Properties props,
                                        Properties info) {

        JComponent component = createEmbeddedPropertyGUI(prefix, props, info);

        JButton doneButton = null, cancelButton = null;

        JPanel buttons = new JPanel();
        if (print) {
            doneButton = new JButton("Print");
            cancelButton = new JButton("Quit");
        } else {
            doneButton = new JButton("OK");
            cancelButton = new JButton("Cancel");
        }
        doneButton.addActionListener(this);
        doneButton.setActionCommand(doneCommand);
        cancelButton.addActionListener(this);
        cancelButton.setActionCommand(cancelCommand);
        buttons.add(doneButton);
        buttons.add(cancelButton);

        component.add(buttons, BorderLayout.SOUTH);

        component.validate();
        return component;
    }
View Full Code Here

  public static void main(String[] args) {
    logger.info("Building up GUI");
    frame = new JFrame("Just4Log");
    Just4LogGui app = new Just4LogGui();

    JComponent contents = app.createComponents();
    frame.getContentPane().add(contents, BorderLayout.CENTER);

    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
View Full Code Here

      final JPanel content = new JPanel(new BorderLayout());
      content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

      final URL url = ObjectUtilities.getResource
          ("org/pentaho/reporting/engine/classic/demo/resources/external-handler-info.html", CompoundDemoFrame.class);
      final JComponent scroll = createDescriptionTextPane(url);
      final JButton previewButton = new ActionButton(getPreviewAction());
      content.add(scroll, BorderLayout.CENTER);
      content.add(previewButton, BorderLayout.SOUTH);
      externalHandlerArea = content;
    }
View Full Code Here

  {
    final JPanel content = new JPanel(new BorderLayout());
    content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    final URL url = demoHandler.getDemoDescriptionSource();
    final JComponent scroll = createDescriptionTextPane(url);

    final JButton previewButton = new ActionButton(getPreviewAction());

    final JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    splitPane.setTopComponent(scroll);
View Full Code Here

TOP

Related Classes of javax.swing.JComponent$AccessibleJComponent

Copyright © 2018 www.massapicom. 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.