Package javax.swing

Examples of javax.swing.JSeparator$AccessibleJSeparator


        radioButtonPanel.add(gtkRadioButton);

        getContentPane().add(radioButtonPanel, BorderLayout.NORTH);

        int y = -1;
        controlPanel.add(new JSeparator(SwingConstants.HORIZONTAL),
                new GridBagConstraints(0, ++y, 1, 1, 1.0, 0.0,
                        GridBagConstraints.NORTHWEST,
                        GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
                        0, 0));
        controlPanel.add(antiAliasCheckBox,
View Full Code Here


    return siteTypePanel;
  }

  private JSeparator getSep()
  {
    JSeparator sep = new JSeparator(SwingConstants.HORIZONTAL);
    // separators need preferred size in GridBagLayout
    sep.setPreferredSize(new Dimension(100, 20));
    sep.setMinimumSize(new Dimension(100, 20));
    return sep;
  }
View Full Code Here

        //  Next, Back, and Cancel. It is also responsible a JPanel above them that
        //  uses a CardLayout layout manager to display multiple panels in the
        //  same spot.
       
        JPanel buttonPanel = new JPanel();
        JSeparator separator = new JSeparator();
        Box buttonBox = new Box(BoxLayout.X_AXIS);

        cardPanel = new JPanel();
        cardPanel.setBorder(new EmptyBorder(new Insets(5, 10, 5, 10)));      
View Full Code Here

        buttonBar.add(new JButton(cancelAction));
        buttonBar.add(previousButton = new JButton(previousAction));
        buttonBar.add(nextButton = new JButton(nextAction));
        buttonBar.add(finishButton = new JButton(finishAction));
        southPanel = new JPanel(new BorderLayout());
        southPanel.add(new JSeparator(JSeparator.HORIZONTAL), BorderLayout.NORTH);
        southPanel.add(buttonBar, BorderLayout.SOUTH);
        errorLabel = new JLabel(new ResourceIcon(getClass(), "/images/error-16x16.png"));
        errorLabel.setHorizontalAlignment(JLabel.LEFT);
        errorLabel.setVisible(false);
    }
View Full Code Here

                        + "one version 0.1.16 installation to another "
                        + "0.2.5+ installation. You may choose which resources you "
                        + "wish to be copied. If resources with the same name already " + "exist they will be left as is.");
        l.setIcon(new ImageIcon(GUIUpgrader.class.getResource("upgrader-48x48.png")));
        info.add(l, BorderLayout.CENTER);
        info.add(new JSeparator(JSeparator.HORIZONTAL), BorderLayout.SOUTH);
        mainPanel = new JPanel(new BorderLayout());
        add(info, BorderLayout.NORTH);
        add(mainPanel, BorderLayout.CENTER);

        // Installations panel
View Full Code Here

    public CSVSettingsPanel(GanttProject parent) {
        super(GanttProject.correctLabel(GanttLanguage.getInstance().getText(
                "csvexport")), GanttLanguage.getInstance().getText(
                "settingsCVSExport"), parent);
        appli = parent;
        vb.add(new JSeparator());
        JPanel genePanel = new JPanel(new BorderLayout());
        JLabel lblSeparatedField = new JLabel(language
                .getText("separatedFields"));
        lblSeparatedField.setFont(new Font(lblSeparatedField.getFont()
                .getFontName(), Font.BOLD, lblSeparatedField.getFont()
                .getSize()));
        genePanel.add(lblSeparatedField, BorderLayout.WEST);
        vb.add(genePanel);

        JPanel fixedPanel = new JPanel(new BorderLayout());
        fixedPanel.add(bFixedSize = new JRadioButton(), BorderLayout.WEST);
        // bFixedSize.setEnabled(false);
        bFixedSize.addActionListener(this);
        fixedPanel.add(new JLabel(language.getText("fixedWidth")),
                BorderLayout.CENTER);
        vb.add(fixedPanel);

        JPanel separatedPanel = new JPanel(new BorderLayout());
        separatedPanel.add(bSeparatedText = new JRadioButton(),
                BorderLayout.WEST);
        bSeparatedText.addActionListener(this);
        separatedPanel.add(new JLabel(language.getText("separated")),
                BorderLayout.CENTER);
        vb.add(separatedPanel);

        JPanel separatorFieldPanel = new JPanel(new GridBagLayout());
        vb.add(separatorFieldPanel);
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.anchor = GridBagConstraints.WEST;
        gbc.insets.right = 15;
        gbc.insets.left = 10;
        gbc.insets.top = 10;

        addUsingGBL(separatorFieldPanel, bDoubleDot = new JRadioButton(), gbc,
                0, 0, 1, 1);
        bDoubleDot.addActionListener(this);
        addUsingGBL(separatorFieldPanel, new JLabel(language
                .getText("doubledot")), gbc, 1, 0, 1, 1);
        addUsingGBL(separatorFieldPanel, bDotComa = new JRadioButton(), gbc, 3,
                0, 1, 1);
        bDotComa.addActionListener(this);
        addUsingGBL(separatorFieldPanel,
                new JLabel(language.getText("dotComa")), gbc, 4, 0, 1, 1);
        addUsingGBL(separatorFieldPanel, bComa = new JRadioButton(), gbc, 6, 0,
                1, 1);
        bComa.addActionListener(this);
        addUsingGBL(separatorFieldPanel, new JLabel(language.getText("coma")),
                gbc, 7, 0, 1, 1);
        bSpace = new JRadioButton();
        // addUsingGBL(separatorFieldPanel, bSpace , gbc, 0, 1, 1, 1);
        bSpace.addActionListener(this);
        // addUsingGBL(separatorFieldPanel, new
        // JLabel(language.getText("space")), gbc, 1, 1, 1, 1);
        addUsingGBL(separatorFieldPanel, bOther = new JRadioButton(), gbc, 6,
                1, 1, 1);
        bOther.addActionListener(this);
        addUsingGBL(separatorFieldPanel, new JLabel(language.getText("other")),
                gbc, 7, 1, 1, 1);
        addUsingGBL(separatorFieldPanel, tfOther = new JTextField(5), gbc, 8,
                1, 1, 1);

        JPanel textSeparatorFieldPanel = new JPanel(new FlowLayout());
        vb.add(textSeparatorFieldPanel);
        textSeparatorFieldPanel.add(new JLabel(language
                .getText("textSeparator")));
        cbTextSeparator = new JComboBox(appli.getOptions().getCSVOptions()
                .getSeparatedTextChars());
        textSeparatorFieldPanel.add(new JLabel("  "));
        textSeparatorFieldPanel.add(cbTextSeparator);

        vb.add(new JPanel());
        // /////////////////////////////////////////////////
        vb.add(new JSeparator());
        JPanel taskPanel = new JPanel(new BorderLayout());
        JLabel lblTaskField = new JLabel(language.getText("taskFields"));
        lblTaskField.setFont(new Font(lblTaskField.getFont().getFontName(),
                Font.BOLD, lblTaskField.getFont().getSize()));
        taskPanel.add(lblTaskField, BorderLayout.WEST);
        vb.add(taskPanel);
        JPanel taskFieldPanel = new JPanel(new GridBagLayout());
        vb.add(taskFieldPanel);
        addUsingGBL(taskFieldPanel, cbTaskID = new JCheckBox(), gbc, 0, 0, 1, 1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("id")), gbc, 1,
                0, 1, 1);
        addUsingGBL(taskFieldPanel, cbTaskName = new JCheckBox(), gbc, 3, 0, 1,
                1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("name")), gbc,
                4, 0, 1, 1);
        addUsingGBL(taskFieldPanel, cbTaskDuration = new JCheckBox(), gbc, 6,
                0, 1, 1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("length")),
                gbc, 7, 0, 1, 1);
        addUsingGBL(taskFieldPanel, cbStartDate = new JCheckBox(), gbc, 0, 1,
                1, 1);
        addUsingGBL(taskFieldPanel, new JLabel(language
                .getText("dateOfBegining")), gbc, 1, 1, 1, 1);
        addUsingGBL(taskFieldPanel, cbEndDate = new JCheckBox(), gbc, 3, 1, 1,
                1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("dateOfEnd")),
                gbc, 4, 1, 1, 1);
        addUsingGBL(taskFieldPanel, cbTaskPercent = new JCheckBox(), gbc, 6, 1,
                1, 1);
        addUsingGBL(taskFieldPanel,
                new JLabel(language.getText("advancement")), gbc, 7, 1, 1, 1);
        addUsingGBL(taskFieldPanel, cbTaskWebLink = new JCheckBox(), gbc, 0, 2,
                1, 1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("webLink")),
                gbc, 1, 2, 1, 1);
        addUsingGBL(taskFieldPanel, cbTaskResources = new JCheckBox(), gbc, 3,
                2, 1, 1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("resources")),
                gbc, 4, 2, 1, 1);
        addUsingGBL(taskFieldPanel, cbTaskNotes = new JCheckBox(), gbc, 6, 2,
                1, 1);
        addUsingGBL(taskFieldPanel, new JLabel(language.getText("notes")), gbc,
                7, 2, 1, 1);

        vb.add(new JPanel());
        // /////////////////////////////////////////////////
        vb.add(new JSeparator());
        JPanel resPanel = new JPanel(new BorderLayout());
        JLabel lblResField = new JLabel(language.getText("resFields"));
        lblResField.setFont(new Font(lblResField.getFont().getFontName(),
                Font.BOLD, lblResField.getFont().getSize()));
        resPanel.add(lblResField, BorderLayout.WEST);
View Full Code Here

        cancelButton.addActionListener(this);

        southPanel.add(cancelButton);
        southPanel.setPreferredSize(new Dimension(600, 50));
        Box southBox = Box.createVerticalBox();
        southBox.add(new JSeparator());
        southBox.add(southPanel);
        mainPanel.add(southBox, BorderLayout.SOUTH);

        // set the ok button as default action for enter
        if (getRootPane() != null)
View Full Code Here

    JLabel l = new JLabel(text);
    l.setFont(UIManager.getFont("ToolTip.font"));
    UIUtil.jGridBagAdd(this, l, gbc2,
                       GridBagConstraints.RELATIVE);
    gbc2.weightx = 1.0;
    UIUtil.jGridBagAdd(this, new JSeparator(JSeparator.HORIZONTAL), gbc2,
                       GridBagConstraints.REMAINDER);
  }
View Full Code Here

            updateAdvancedComponents();
          }
        });
    this.qualitySlider.setValue(this.qualitySlider.getMinimum() + controller.getQuality());
   
    this.advancedComponentsSeparator = new JSeparator();

    // Create date and time labels and spinners bound to TIME controller property
    Date time = new Date(Camera.convertTimeToTimeZone(controller.getTime(), TimeZone.getDefault().getID()));
    this.dateLabel = new JLabel();
    final SpinnerDateModel dateSpinnerModel = new SpinnerDateModel();
View Full Code Here

            updateAdvancedComponents();
          }
        });
    this.qualitySlider.setValue(this.qualitySlider.getMinimum() + controller.getQuality());

    this.advancedComponentsSeparator = new JSeparator();

    // Create date and time labels and spinners bound to TIME controller property
    Date time = new Date(Camera.convertTimeToTimeZone(controller.getTime(), TimeZone.getDefault().getID()));
    this.dateLabel = new JLabel();
    final SpinnerDateModel dateSpinnerModel = new SpinnerDateModel();
View Full Code Here

TOP

Related Classes of javax.swing.JSeparator$AccessibleJSeparator

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.