Package javax.swing

Examples of javax.swing.JComponent$AccessibleJComponent


    previewPane.addReportProgressListener(progressBar);

    pageLabel = new JLabel();
    previewPane.addPropertyChangeListener(new PreviewPanePropertyChangeHandler());

    final JComponent extensionArea = statusBar.getExtensionArea();
    extensionArea.setLayout(new BoxLayout(extensionArea, BoxLayout.X_AXIS));
    extensionArea.add(progressBar);
    extensionArea.add(pageLabel);

    final JComponent contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(previewPane, BorderLayout.CENTER);
    contentPane.add(statusBar, BorderLayout.SOUTH);
    setContentPane(contentPane);

    updateMenu(previewPane.getMenu());
    statusBar.setIconTheme(previewPane.getIconTheme());
    statusBar.setStatus(previewPane.getStatusType(), previewPane.getStatusText());
View Full Code Here


    else
    {
      progressDialog = null;
    }

    final JComponent extensionArea = statusBar.getExtensionArea();
    extensionArea.setLayout(new BoxLayout(extensionArea, BoxLayout.X_AXIS));
    if (progressBar != null)
    {
      extensionArea.add(progressBar);
    }
    extensionArea.add(pageLabel);

    final JComponent contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(previewPane, BorderLayout.CENTER);
    contentPane.add(statusBar, BorderLayout.SOUTH);
    setContentPane(contentPane);

    updateMenu(previewPane.getMenu());
    setTitle(previewPane.getTitle());
    statusBar.setIconTheme(previewPane.getIconTheme());
View Full Code Here

    previewPane.addReportProgressListener(progressBar);

    pageLabel = new JLabel();
    previewPane.addPropertyChangeListener(new PreviewInternalFrame.PreviewPanePropertyChangeHandler());

    final JComponent extensionArea = statusBar.getExtensionArea();
    extensionArea.setLayout(new BoxLayout(extensionArea, BoxLayout.X_AXIS));
    extensionArea.add(progressBar);
    extensionArea.add(pageLabel);

    final JComponent contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(previewPane, BorderLayout.CENTER);
    contentPane.add(statusBar, BorderLayout.SOUTH);
    setContentPane(contentPane);

    updateMenu(previewPane.getMenu());
    setTitle(previewPane.getTitle());
    statusBar.setIconTheme(previewPane.getIconTheme());
View Full Code Here

    private static class ModuleCellRenderer implements ListCellRenderer {
        @Override
        public Component getListCellRendererComponent(
                JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
           
            JComponent component = (JComponent) value;
           
            if (value instanceof ModulePanel) {
                int module = ((ModulePanel) value).getModule();
                component.setToolTipText(DcModules.get(module).getDescription());
            }
           
            Color selectionColor = DcSettings.getColor(DcRepository.Settings.stSelectionColor);
            component.setBackground(isSelected ? selectionColor : Color.WHITE);
            return component;
        }
View Full Code Here

        reportControllerLocation = null;
      }
    }
    else
    {
      final JComponent rcp = newReportController.getControlPanel();
      if (rcp == null)
      {
        if (reportControllerComponent != null)
        {
          outerReportControllerHolder.removeAll();
View Full Code Here

        }
        if (anchorNode != null) {
          anchor = af.constructAnchor(anchorNode);
          if (anchor instanceof AnchorFactory.BoxAnchor) {
            AnchorFactory.BoxAnchor ba = (AnchorFactory.BoxAnchor) anchor;
            JComponent component = (JComponent) childWidget.getWidget();
            component.setAlignmentX(ba.getAlignmentX());
            component.setAlignmentY(ba.getAlignmentY());
            anchor = null;
          }
        } else {
          Component comp = (Component) childWidget.getWidget();

          if (comp != null && comp instanceof JComponent) {
            JComponent component = (JComponent) comp;

            component.setAlignmentX(0.0f);
            component.setAlignmentY(0.0f);
          }
        }
        widget.addChild(childWidget, anchor);
      }
    }
View Full Code Here

       JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

        panel.add(Utility.addLeftJustifiedComponent(useCustomGradleExecutorCheckBox));
        JComponent sideBySideComponent = createSideBySideComponent(customGradleExecutorField, browseForCustomGradleExecutorButton);
        sideBySideComponent.setBorder(BorderFactory.createEmptyBorder(0, 30, 0, 0)); //indent it
        panel.add(sideBySideComponent);

        useCustomGradleExecutorCheckBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (useCustomGradleExecutorCheckBox.isSelected()) { //if they checked it, browse for a custom executor immediately
View Full Code Here

    button.setMaximumSize(new Dimension(LFConstants.MAX_WIDTH, LFConstants.DEFAULT_HEIGHT));
    button.setAlignmentX(1.0f);
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        for (int i=0; i<panels.size(); i++) {
          JComponent c = (JComponent) panels.get(i);
          if (!c.isVisible())
            continue;
          c.setVisible(false);
        }
        container.setVisible(true);
      }
    });
    panels.add(container);
View Full Code Here

    getFormValidator().registerButton(rbEpson24PrinterCommandSet);
    getFormValidator().registerButton(rbEpson9PrinterCommandSet);
    getFormValidator().registerButton(rbIBMPrinterCommandSet);
    getFormValidator().registerButton(rbPlainPrinterCommandSet);

    final JComponent exportPane = createExportPane();

    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final boolean advancedSettingsTabAvail =
        "true".equals(config.getConfigProperty(
            "org.pentaho.reporting.engine.classic.core.modules.gui.plaintext.AdvancedSettingsAvailable"));
View Full Code Here

                } catch (Exception e) {}
        }
    }
   
    private JComponent getEditor(DcField field) {
        JComponent c;
       
        if (field.getFieldType() == ComponentFactory._LONGTEXTFIELD ||
            field.getFieldType() == ComponentFactory._URLFIELD) {
            c = ComponentFactory.getComponent(module.getIndex(), field.getReferenceIdx(),
                    field.getIndex(), ComponentFactory._SHORTTEXTFIELD, field.getLabel(), field.getMaximumLength());
        } else if (field.getFieldType() == ComponentFactory._REFERENCEFIELD) {
            c = ComponentFactory.getObjectCombo(field.getReferenceIdx());
        } else {
            c = ComponentFactory.getComponent(module.getIndex(),
                    field.getReferenceIdx(), field.getIndex(), field.getFieldType(), field.getLabel(), field.getMaximumLength());
        }
        c.setAutoscrolls(false);
        c.setBorder(null);
        c.setIgnoreRepaint(false);
        c.setVerifyInputWhenFocusTarget(false);
        c.setEnabled(!field.isReadOnly() && !readonly);
        return c;
    }
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.