Package java.awt

Examples of java.awt.CardLayout


    editorContainer = new JPanel();
    fields = new String[0];
    editorContainer.setLayout(new BorderLayout());

    final JPanel cardHolder = new JPanel();
    cardHolder.setLayout(new CardLayout());
    cardHolder.add("2", editorContainer);
    cardHolder.add("1", Box.createRigidArea(new Dimension(450, 500)));

    setLayout(new BorderLayout());
    setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
View Full Code Here


    colorCode.getDocument().addDocumentListener(new ColorCodeInputHandler());

    hsbColorSelectorPanel = new HSBColorSelectorPanel();
    rgbColorSelectorPanel = new RGBColorSelectorPanel();

    colorSelectorLayout = new CardLayout();

    colorSelectorPanel = new JPanel();
    colorSelectorPanel.setLayout(colorSelectorLayout);
    colorSelectorPanel.add("HSB", hsbColorSelectorPanel); // NON-NLS
    colorSelectorPanel.add("RGB", rgbColorSelectorPanel); // NON-NLS
View Full Code Here

    final JPanel enumerationEditor = createEnumerationEditor();
    final JPanel textEditor = createTextEditor();
    final JPanel classEditor = createClassEditor();

    detailManagerPanel = new JPanel();
    detailManager = new CardLayout();
    detailManagerPanel.setLayout(detailManager);
    detailManagerPanel.add(classEditor, ConfigDescriptionEditor.CLASS_DETAIL_EDITOR_NAME);
    detailManagerPanel.add(textEditor, ConfigDescriptionEditor.TEXT_DETAIL_EDITOR_NAME);
    detailManagerPanel.add(enumerationEditor, ConfigDescriptionEditor.ENUM_DETAIL_EDITOR_NAME);
View Full Code Here

        sortablePanel.add(getTableheader(), gbc);

        getTableheader().setBorder(new LineBorder(Color.BLACK));

        JPanel topPanel = makeNavigationPanel("Class name filter:", filterPanel, sortablePanel, treePanel);
        cardPanel = new JPanel(new CardLayout());
        JPanel waitPanel = new JPanel();
        waitPanel.setLayout(new BoxLayout(waitPanel, BoxLayout.Y_AXIS));
        waitPanel.add(new JLabel("Please wait..."));
        waitStatusLabel = new JLabel();
        waitPanel.add(waitStatusLabel);
View Full Code Here

            public void run() {
                mainFrame.enableRecentMenu(card == MainFrame.BugCard.TREECARD);
                getTableheader().setReorderingAllowed(card == MainFrame.BugCard.TREECARD);
                mainFrame.getMainFrameMenu().enablePreferencesMenuItem(card == MainFrame.BugCard.TREECARD);
                window.setCursor(cursor);
                CardLayout layout = (CardLayout) cardPanel.getLayout();
                layout.show(cardPanel, card.name());
                if (card == MainFrame.BugCard.TREECARD) {
                    SorterDialog.getInstance().thaw();
                } else {
                    SorterDialog.getInstance().freeze();
                }
View Full Code Here

        }
        this.step = step;
        previousButton.setEnabled(step != MIN_STEP);
        nextButton.setEnabled(step != MAX_STEP && !sourceRootBox.getText().equals(""));

        CardLayout cards = (CardLayout) contentPanel.getLayout();
        cards.show(contentPanel, "card" + step);

    }
View Full Code Here

        setLastSaved(lastSaved);
        cloudReportPane.setText(report);
        CommentInfo commentInfo = new CommentInfo().invoke();
        boolean sameText = commentInfo.isSameText();
        String txt = commentInfo.getTxt();
        CardLayout cl = (CardLayout) (cards.getLayout());
        HashSet<BugInstance> newBugSet = new HashSet<BugInstance>(bugs);
        boolean sameBugs = newBugSet.equals(lastBugsEdited);
        if (!sameBugs) {
            lastBugsEdited = newBugSet;
            clickedBulkReview = false;
        }
        if (!inCloud(bugs)) {
            cl.show(cards, "NOT_IN_CLOUD");
        } else if (bugs.size() > 1 && !clickedBulkReview) {
            warningLabel.setText("<HTML>" + bugs.size() + " bugs are selected.<BR>Click to review them all at once.");
            cl.show(cards, "WARNING");
        } else {
            cl.show(cards, "COMMENTS");
        }
        if (!sameText) {
            txt = MessageFormat.format(MSG_OVERWRITE_REVIEW, bugs.size());
            setDefaultComment(txt);
        } else {
View Full Code Here

        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        gbc.fill = GridBagConstraints.BOTH;
        mainPanel.add(panel3, gbc);
        cards = new JPanel();
        cards.setLayout(new CardLayout(0, 0));
        gbc = new GridBagConstraints();
        gbc.gridx = 5;
        gbc.gridy = 4;
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
View Full Code Here

        return new JScrollPane(list);
    }

    protected Component buildConfigPanel(){
        JPanel configPanel = new JPanel();
        CardLayout cardLayout = new CardLayout();
        configPanel.setLayout(cardLayout);
        configPanel.add(buildUserLanguage(),
                        Resources.getString(LABEL_USER_LANGUAGE));

        configPanel.add(buildUserStyleSheet(),
View Full Code Here

        return new JScrollPane(list);
    }

    protected Component buildConfigPanel(){
        JPanel configPanel = new JPanel();
        CardLayout cardLayout = new CardLayout();
        configPanel.setLayout(cardLayout);
        configPanel.add(buildUserLanguage(),
                        Resources.getString(LABEL_USER_LANGUAGE));

        configPanel.add(buildUserStyleSheet(),
View Full Code Here

TOP

Related Classes of java.awt.CardLayout

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.