Examples of MigLayout


Examples of net.miginfocom.swing.MigLayout

        //Get UI
        StatisticsUI[] statisticsUIs = Lookup.getDefault().lookupAll(StatisticsUI.class).toArray(new StatisticsUI[0]);

        for (StatisticsCategory category : categories )
        {
            MigLayout migLayout = new MigLayout("insets 0 0 0 0");
            migLayout.setColumnConstraints("[grow,fill]");
            migLayout.setRowConstraints("[min!]");
            JPanel innerPanel = new JPanel(migLayout);

            //Find uis in this category
            List<StatisticsUI> uis = new ArrayList<StatisticsUI>();
            for(StatisticsUI sui : statisticsUIs) {
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

                        Integer p2 = ((UIFrontEnd) o2).getStatisticsUI().getPosition();
                        return p1.compareTo(p2);
                    }
                });

                MigLayout migLayout = new MigLayout("insets 0");
                migLayout.setColumnConstraints("[grow,fill]");
                migLayout.setRowConstraints("[pref!]");
                JPanel innerPanel = new JPanel(migLayout);

                for (UIFrontEnd sui : uis) {
                    innerPanel.add(sui.frontEnd, "wrap");
                }
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

                        Integer p2 = ((StatisticsUI) o2).getPosition();
                        return p1.compareTo(p2);
                    }
                });

                MigLayout migLayout = new MigLayout("insets 0");
                migLayout.setColumnConstraints("[grow,fill]");
                migLayout.setRowConstraints("[pref!]");
                JPanel innerPanel = new JPanel(migLayout);

                for (StatisticsUI sui : uis) {
                    StatisticsFrontEnd frontEnd = new StatisticsFrontEnd(sui);
                    UIFrontEnd uife = new UIFrontEnd(sui, frontEnd, category);
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

    }

    private void refreshColumns() {
        columnsCheckBoxes = new JCheckBox[columns.length];
        contentPanel.removeAll();
        contentPanel.setLayout(new MigLayout("", "[pref!]"));
        for (int i = 0; i < columns.length; i++) {
            columnsCheckBoxes[i] = new JCheckBox(columns[i].getTitle(), availableColumnsModel.isColumnAvailable(columns[i]));
            columnsCheckBoxes[i].addActionListener(new ColumnCheckBoxListener(i));
            contentPanel.add(columnsCheckBoxes[i], "wrap");
        }
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

    }

    public void reloadSettings() {
        if (separator != null && file != null && file.exists() && mode != null && charset != null) {
            JPanel settingsPanel = new JPanel();
            settingsPanel.setLayout(new MigLayout());
            loadDescription(settingsPanel);
            switch (mode) {
                case NODES_TABLE:
                    table = Lookup.getDefault().lookup(AttributeController.class).getModel().getNodeTable();
                    loadColumns(settingsPanel);
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

    private void refreshColumns() {
        AttributeColumn[] columns = columnsAndRowChooser.getColumns();
        columnsCheckBoxes = new ColumnCheckBox[columns.length];
        contentPanel.removeAll();
        contentPanel.setLayout(new MigLayout("", "[pref!]"));
        for (int i = 0; i < columns.length; i++) {
            columnsCheckBoxes[i] = new ColumnCheckBox(columns[i], true);
            contentPanel.add(columnsCheckBoxes[i].getCheckBox(), "wrap");
        }
        contentPanel.revalidate();
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

    private void refreshColumns() {
        AttributeColumn[] columns=columnsChooser.getColumns();
        columnsCheckBoxes=new ColumnCheckBox[columns.length];
        contentPanel.removeAll();
        contentPanel.setLayout(new MigLayout("", "[pref!]"));
        for (int i=0;i< columns.length;i++) {
            columnsCheckBoxes[i] = new ColumnCheckBox(columns[i], true);
            contentPanel.add(columnsCheckBoxes[i].getCheckBox(), "wrap");
        }
        contentPanel.revalidate();
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

            }
            edgeCheckBoxs = new AttributesCheckBox[availableColumns.size()];
            target = edgeCheckBoxs;
        }
        contentPanel.removeAll();
        contentPanel.setLayout(new MigLayout("", "[pref!]"));
        for (int i = 0; i < availableColumns.size(); i++) {
            AttributeColumn column = availableColumns.get(i);
            AttributesCheckBox c = new AttributesCheckBox(column, selectedColumns.contains(column));
            target[i] = c;
            contentPanel.add(c.getCheckBox(), "wrap");
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

    private void refreshColumns() {
        boolean outlineTable = table instanceof Outline;
        TableModel model = table.getModel();
        columnsCheckBoxes = new JCheckBox[model.getColumnCount()];
        columnsPanel.removeAll();
        columnsPanel.setLayout(new MigLayout("", "[pref!]"));


        int modelIndex;
        //Show rest of columns:
        for (int i = 0; i < table.getColumnCount(); i++) {
View Full Code Here

Examples of net.miginfocom.swing.MigLayout

        disabledModsScl.setViewportView(disabledModsLst);

        lPnl = new JPanel();
        cPnl = new JPanel();
        rPnl = new JPanel();
        lPnl.setLayout(new MigLayout(new LC().fillY()));
        lPnl.add(enabledModsLbl, GuiConstants.WRAP);
        lPnl.add(enabledModsScl, "pushy, " + GuiConstants.GROW + GuiConstants.SEP + GuiConstants.WRAP);
        lPnl.add(openFolder, GuiConstants.FILL_SINGLE_LINE);
        cPnl.setLayout(new MigLayout());
        cPnl.add(enableMod, GuiConstants.WRAP);
        cPnl.add(disableMod);
        rPnl.setLayout(new MigLayout(new LC().fillY()));
        rPnl.add(disabledModsLbl, GuiConstants.WRAP);
        rPnl.add(disabledModsScl, "pushy, " + GuiConstants.GROW + GuiConstants.SEP + GuiConstants.WRAP);
        rPnl.add(addMod, GuiConstants.FILL_SINGLE_LINE);

        formPnl.setLayout(new MigLayout(new LC().fillY()));
        formPnl.add(lPnl, "push, grow, " + GuiConstants.SPLIT_3);
        formPnl.add(cPnl, "push, grow, center");
        formPnl.add(rPnl, "push, grow ");

        ((JPanel) tabbedPane.getComponent(0)).add(formPnl);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.