Package simtools.ui

Examples of simtools.ui.GridBagPanel


        }
        lAlias = new JLabel(resources.getStringValue("Alias"));
        tfAlias = new JTextField();
       
       
        GridBagPanel sourcePane = new GridBagPanel();
        sourcePane.addOnCurrentRow(filteredSourceTree, 5, true, true, true);
        sourcePane.addOnCurrentRow(lAlias);
        sourcePane.addOnCurrentRow(tfAlias, 4, true, false, true);
        sourcePane.addOnCurrentRow(new ExpressionPanel(filteredSourceTree.getSourceTree()), 5, true, false, true);

    
        tfAlias.getDocument().addDocumentListener(new DocumentListener() {
            public void changedUpdate(DocumentEvent e) {
                updateAlias();
View Full Code Here


       
        // HTML parser
        htmlParser = new SourceForgeHTMLParser();


        GridBagPanel helpSearchPanel = new GridBagPanel();
        helpSearchPanel.addOnCurrentRow(searchTip);
        helpSearchPanel.addOnCurrentRow(searchField, 3, true, false, false);
        helpSearchPanel.addOnCurrentRow(toolbar,1,false, false, true);
        helpSearchPanel.addOnCurrentRow(scrollSearchTree, 5, true, true, true);


        // HELP PANES
        JTabbedPane helpTreePane = new JTabbedPane();
View Full Code Here

        addOnCurrentRow(tfNewSourceName = new JTextField(), 4, true, false, true);
 
       
        tabbedPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
       
        GridBagPanel predefinedSources = new GridBagPanel();
        predefinedSources.addOnCurrentRow(cbxPredefined = new JComboBox(), 5, true, false, true);
        tabbedPane.add(predefinedSources, resources.getString("predefinedSources"));
       
        GridBagPanel mathExpression= new GridBagPanel();
        mathExpression.addOnCurrentRow(tfExpression = new JTextField(), 5, true, false, true);
        tabbedPane.add(mathExpression, resources.getString("mathExpression"));

        tabbedPane.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                switch(tabbedPane.getSelectedIndex()) {
View Full Code Here

                }
            }
        });
       
       
        dynamicImagePanel = new GridBagPanel(resources.getString("UseDynamicImages"));
        dynamicImagePanel.addOnCurrentRow(cbDynamic, 4);
        dynamicImagePanel.addOnCurrentRow(lds, 4);
        dynamicImagePanel.carriageReturn();
        dynamicImagePanel.addOnCurrentRow(cmLabel, 4);
        dynamicImagePanel.addOnCurrentRow(dsLabel, 4);
View Full Code Here

                }
            }
        });


        switchPositionPanel = new GridBagPanel(resources.getString("setSwitchDynamicPosition"));

        switchPositionPanel.addOnCurrentRow(lds, 2);
        switchPositionPanel.addOnCurrentRow(ldynamicDsId, 1, true, false, true);

        switchPositionPanel.addOnCurrentRow(dstree, 4, true, true, true);
View Full Code Here

                }
            }
        });

        // Create panels
        staticImagePanel = new GridBagPanel();
        staticImagePanel.addOnCurrentRow(bChoose, 2);
        staticImagePanel.addOnCurrentRow(lstatic);
        staticImagePanel.carriageReturn();
        staticImagePanel.addOnCurrentRow(rbFit, 2);
        staticImagePanel.addOnCurrentRow(rbResize, 2);
View Full Code Here

    }

    public PropertiesPanel1D(boolean showResize, boolean drawOptional, boolean showStroke, boolean showTransform,
            String shapeName) {
        super(shapeName);
        colorAndStrokePanel = new GridBagPanel(resources.getString("ColorAndStroke"));
        sizePanel = new GridBagPanel(resources.getString("Size"));
       
        // Create contents
        setColorPanel(drawOptional);
        setStrokePanel(showStroke);
       
View Full Code Here

   
    // curve axis
    axis = new JLabel();
   
    // curve display
    GridBagPanel curveDiplay = new GridBagPanel(resources.getStringValue("curveDisplay"));

    bcurvecolor = new JButton("    ");
    bcurvecolor.addActionListener(this);
    cbxstrokes = new JComboBox(StrokeDisplay.defaultstrokes);
    cbxstrokes.setRenderer(new StrokeDisplay());
    cbxstrokes.addActionListener(this);

    curveDiplay.addOnCurrentRow(new JLabel(resources.getString("curveColor")));
    curveDiplay.addOnCurrentRow(bcurvecolor);
    curveDiplay.addOnCurrentRow(new JLabel(resources.getString("curveStyle")));
    curveDiplay.addOnCurrentRow(cbxstrokes);
    curveDiplay.carriageReturn();
   
   
    // curve type
        GridBagPanel curveType = new GridBagPanel(resources.getStringValue("pointDisplay"));
       
        curveType.addOnCurrentRow(lShowPoints = new JLabel(showPointsIconOff));
        curveType.addOnCurrentRow(cbpoints = resources.getCheckBox("points", this));
        curveType.carriageReturn();
       
        curveType.addOnCurrentRow(lShowBars = new JLabel(showBarIconOff));
        curveType.addOnCurrentRow(cbdrawBars = resources.getCheckBox("drawBars", this));
        curveType.carriageReturn();
   
    addOnCurrentRow(cbxcurves, 2, true, false, false);
    addOnCurrentRow(bcurvedelete);
    carriageReturn();
    addOnCurrentRow(axis, 1, true, false, true);
View Full Code Here

        updateWarnings();
    }

    protected JComponent createDataSourceSelectionContent() {
        GridBagPanel dsSelPanel = new GridBagPanel(resources.getString("selectDataSource"));

        dstreeProg = FilteredSourceTree.getFromPool("PropertiesPanel0");
        dstreeProg.getSourceTree().addTreeSelectionListener(new TreeSelectionListener() {
            public void valueChanged(TreeSelectionEvent e) {
                updateWarnings();

                if ((dstreeProg.getSelectedSourceOrCollection() instanceof DataSource)) {
                    axeProp.setLabel( DataInfo.getLabel(dstreeProg.getSelectedSourceOrCollection()) );
                }

                axeProp.setEnabled((dstreeProg.getSelectedSourceOrCollection() instanceof DataSource));
            }
        });

        dsSelPanel.addOnCurrentRow(dstreeProg, 1, true, true, true);
        return dsSelPanel;
    }
View Full Code Here

        rbRegular.setSelected(true);
        rbUser.setSelected(false);
        rbRegular.apply();
        rbUser.apply();
        // Create panel
        GridBagPanel polygonPanel = new GridBagPanel(resources.getString("Polygon"));
        polygonPanel.addOnCurrentRow(rbRegular);
        polygonPanel.addOnCurrentRow(lorder);
        polygonPanel.addOnCurrentRow(sporder, 1, true, false, true);
        // polygonPanel.carriageReturn();
        polygonPanel.addOnCurrentRow(rbUser);
        polygonPanel.carriageReturn();
        polygonPanel.addOnCurrentRow(lpoints);
        polygonPanel.carriageReturn();
        polygonPanel.addOnCurrentRow(jsptaPoints, 3, true, true, true);
        return polygonPanel;
    }
View Full Code Here

TOP

Related Classes of simtools.ui.GridBagPanel

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.