Package net.miginfocom.swing

Examples of net.miginfocom.swing.MigLayout


    public QuestionGroupForm(QuestionGroup qg, Designer designer) {
        super(designer);
        m_changeListeners = new LinkedList<ChangeListener>();
        m_questionGroup = qg;
        setLayout(new MigLayout("fillx, aligny top"));

        JLabel columnsLabel = new JLabel("Columns");

        m_realButton = new JCheckBox("Group these questions");
        m_realButton.addItemListener(this);
View Full Code Here


        m_activeButton.addItemListener(this);

        m_portField.setEnabled(false);
        m_destinationField.setEnabled(false);

        setLayout(new MigLayout("fillx, insets 0, wrap 2", "[][fill, sg, grow]", "[align baseline, grow 0]"));

        add(m_activeButton, "span");
        add(destinationLabel);
        add(m_destinationField);
        add(portLabel);
View Full Code Here

        m_headerField.setToolTipText("The text that will appear at the top of the initial page(s).");

        JButton nextButton = new JButton("Next");
        JButton backButton = new JButton("Back");

        setLayout(new MigLayout("fill"));

        add(titleComponent(m_headerField, "Initial Header"), "wrap, growx");

        add(m_questions, "wrap, grow, spanx, pushy");
View Full Code Here

    public Question(int type, Designer d) {
        m_type = -1;
        m_designer = d;
        m_group = null;
        m_panel = new JPanel();
        m_panel.setLayout(new MigLayout("fill, insets 0", "[fill]", "[fill]"));
        setType(type);
    }
View Full Code Here

        m_typeMenu.addItem("Date");
        m_typeMenu.addItem("Click Field");
        m_typeMenu.setSelectedIndex(type);
        m_typeMenu.addActionListener(this);

        m_headerPanel.setLayout(new MigLayout("fillx, insets 0", "[grow 0|fill]"));
        m_headerPanel.add(questionLabel);
        m_headerPanel.add(m_questionField, "growx, wrap");
        m_headerPanel.add(typeLabel);
        m_headerPanel.add(m_typeMenu, "growx, wrap");
        m_headerPanel.add(new JSeparator(), "span, growx, gapy 5 5, newline");

        m_footerPanel = new JPanel();
        m_footerPanel.setLayout(new MigLayout("fillx, insets 0"));
        /*m_footerPanel.add(new JPanel(), "h 0:0:push, pushy, wrap");
          m_footerPanel.add(new JSeparator(), "wrap, growx, gapy 5 5");
          m_footerPanel.add(m_requiredButton);*/

        setLayout(new MigLayout("fill, insets 0", "[][fill]", "[align baseline, grow 0]"));
        add(m_headerPanel, "north");
        add(m_footerPanel, "south, pushy, h push, growy, gp 1");

        m_listComponent = new JLabel(getName());
    }
View Full Code Here

        m_heightField.setToolTipText("<html>The height of the stimulus. This also includes the buttons controlling it.<br>This will not grow the stimulus beyond its preferred size, nor will it change its aspect ratio.</html>");

        JButton nextButton = new JButton("Next");
        JButton backButton = new JButton("Back");

        setLayout(new MigLayout("fill", "[grow 0|fill, grow, sg col]"));

        JPanel pagesPanel = new JPanel(new MigLayout("fill, insets 0", "[sg, fill, grow]"));
        pagesPanel.setBorder(BorderFactory.createTitledBorder("Pages"));
        pagesPanel.add(m_backButton);
        pagesPanel.add(m_loopButton);
        add(pagesPanel, "span, wrap, growx");

        JPanel stimuliPanel = new JPanel(new MigLayout("fill, insets 0", "[sg, fill, grow]"));
        stimuliPanel.setBorder(BorderFactory.createTitledBorder("Stimuli"));
        stimuliPanel.add(m_stopButton);
        stimuliPanel.add(m_pauseButton);
        stimuliPanel.add(m_repeatButton, "wrap");
View Full Code Here

        m_portField.setToolTipText("The port on which to listen for incoming UDP messages");

        m_listComponent = new JLabel(getName());
        m_nameField.getDocument().addDocumentListener(this);

        setLayout(new MigLayout("fillx, insets 0, wrap 2", "[][fill, sg, grow]", "[align baseline, grow 0]"));

        add(nameLabel);
        add(m_nameField);
        add(portLabel);
        add(m_portField);
View Full Code Here

              JOptionPane.showMessageDialog(null, exc.getMessage(), "Test failed", JOptionPane.ERROR_MESSAGE);
            }
          }
        });

        setLayout(new MigLayout("fillx, insets 0, wrap 2", "[][fill, sg, grow]", "[align baseline, grow 0]"));

        add(m_activeButton, "span");
        add(serverLabel);
        add(m_serverField);
        add(senderLabel);
View Full Code Here

            myNameSender = new NameSender(this, dest, destPort);
        }

        myResultClasses = resultClassVector.toArray(new String[0]);

        myPage.setLayout(new MigLayout("fill, wrap 1"));
        myPage.add(myFolderParser.getPanel(), "alignx 50%");
        if (myMouseRecorder != null) {
            myPage.add(myMouseRecorder, "w 10cm, h 10cm, alignx 50%");
        }
    }
View Full Code Here

    /**
     * @param label The text beside the checkbox.
     */
    public Checkbox(ExtendedElement source) {
        super(source.attribute("name"));
        setLayout(new MigLayout("insets 0"));
        JLabel label = source.labelAttribute("name");
        label.setHorizontalAlignment(SwingConstants.LEFT);
        theCheckBox = new JCheckBox();

        /*if (!m_set) {
View Full Code Here

TOP

Related Classes of net.miginfocom.swing.MigLayout

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.