Package javax.swing

Examples of javax.swing.BoxLayout


  /**
   * @return JPanel containing statistics related to all curves
   */
  protected JPanel createCurveStatisticsPanel(){
    JPanel ret=new JPanel();
    ret.setLayout(new BoxLayout(ret,BoxLayout.Y_AXIS));

    // Fisrt set xmin and xmax
    upateGlobalStatistics();
   
    // Then set curves statistics
View Full Code Here


    public ExpressionDialog(JDialog parent) {
      super(parent,true);
      setTitle(resources.getString("Editing:")+current);

      this.getContentPane().setLayout(new BoxLayout(this.getContentPane(),BoxLayout.Y_AXIS));

      valuePanel = Box.createHorizontalBox();
      valuePanel.add(new JLabel(resources.getString("Value=")));
      valuePanel.add(theValue = new JTextField(10));
      valuePanel.setVisible(false);
View Full Code Here

    Container contentPane = dialog.getContentPane();

    JPanel p  = new JPanel();
    Border paneEdge = BorderFactory.createEmptyBorder(0,10,10,10);
    p.setBorder(paneEdge);
    p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));

    p.add(dsi);   
   
    contentPane.add(p,BorderLayout.CENTER);
    contentPane.add(createButtonPanel(), BorderLayout.SOUTH);
View Full Code Here

  protected static MenuResourceBundle  resources = (MenuResourceBundle)ResourceFinder.get(AxePropertiesPanel.class);

  public AxePropertiesPanel(String title, String id, boolean showFloatingProperties, String shapeName) {
    super(shapeName);
    this.id=id;
    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

    setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),title));

    JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    cbgrid = resources.getCheckBox("grid", this);
View Full Code Here

        combo.add(blimitdelete);
        title.add(combo);
        add(title, BorderLayout.NORTH);
        add(Box.createVerticalStrut(25));
        JPanel limitsProperties = new JPanel();
        limitsProperties.setLayout(new BoxLayout(limitsProperties, BoxLayout.Y_AXIS));
        // limit axis
        JPanel axisPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
        ButtonGroup direction = new ButtonGroup();
        horizontal = new JRadioButton(resources.getString("horizontal"), true);
        vertical = new JRadioButton(resources.getString("vertical"), true);
View Full Code Here

    JLabel axisTitle = new JLabel(resources.getStringValue("axisLabel"));
    axisTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    axisPaneContainer.add(axisTitle, BorderLayout.NORTH);
   
    axisPane = new JPanel ();
    axisPane.setLayout(new BoxLayout(axisPane, BoxLayout.Y_AXIS));
    axeprop=new AxePropertiesPanel[4];
   
    axisPane.add(axeprop[0]=new AxePropertiesPanel(resources.getStringValue("primXSection"), "primX", true, null));
    axisPane.add(axeprop[1]=new AxePropertiesPanel(resources.getStringValue("primYSection"), "primY", false, null));
    axisPane.add(axeprop[2]=new AxePropertiesPanel(resources.getStringValue("secXSection"), "secX", false, null));
    axisPane.add(axeprop[3]=new AxePropertiesPanel(resources.getStringValue("secYSection"), "secY", false, null));
    axisPaneContainer.add(axisPane,BorderLayout.CENTER );
   
    JPanel s1 = new JPanel (new BorderLayout());
    s1.add(axisPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("axisLabel"), s1);
 
    // Curves pane
    JPanel curvePaneContainer = new JPanel (new BorderLayout());
    JLabel curveTitle = new JLabel(resources.getStringValue("curveLabel"));
    curveTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    curvePaneContainer.add(curveTitle, BorderLayout.NORTH);
   
    curvePane = new JPanel ();
    curvePane.setLayout(new BoxLayout(curvePane, BoxLayout.Y_AXIS));

    curvProp= createCurvePropertiesPanel()
    curvePane.add(curvProp);
   
    curvePaneContainer.add(curvePane,BorderLayout.CENTER);
   
    JPanel s2 = new JPanel (new BorderLayout());
    s2.add(curvePaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("curveLabel"), s2);
   
   
    //  Limit pane
    JPanel limitPaneContainer = new JPanel (new BorderLayout());
    JLabel limitTitle = new JLabel(resources.getStringValue("limitLabel"));
    limitTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    limitPaneContainer.add(limitTitle, BorderLayout.NORTH);
   
    limitPane = new JPanel ();
    limitPane.setLayout(new BoxLayout(limitPane, BoxLayout.Y_AXIS));

    limitProp=new LimitPropertiesPanel(resources);
    limitPane.add(limitProp);
   
    limitPaneContainer.add(limitPane,BorderLayout.CENTER);
   
    JPanel l = new JPanel (new BorderLayout());
    l.add(limitPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("limitLabel"), l);


   
    // Plot settings pane
    JPanel plotSettingsContainer= new JPanel (new BorderLayout());
    JLabel plotTitle = new JLabel(resources.getStringValue("plotLabel"));
    plotTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    plotSettingsContainer.add(plotTitle, BorderLayout.NORTH);
   
    plotPropertiesPane = new JPanel ();
    plotPropertiesPane.setLayout(new BoxLayout(plotPropertiesPane, BoxLayout.Y_AXIS));
    plotPropertiesPane.add(Box.createVerticalStrut(10));
   
    JPanel title = new JPanel(new FlowLayout(FlowLayout.LEFT));
    title.add(new JLabel(resources.getStringValue("titleLabel")));
    tftitle = new JTextField(25);
View Full Code Here

    JLabel axisTitle = new JLabel(resources.getStringValue("axisLabel"));
    axisTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    axisPaneContainer.add(axisTitle, BorderLayout.NORTH);
   
    axisPane = new JPanel ();
    axisPane.setLayout(new BoxLayout(axisPane, BoxLayout.Y_AXIS));
    axeprop=new AxePropertiesPanel[4];
    addPrimeAxes();
    addSecondaryAxes();
   
    axisPaneContainer.add(axisPane,BorderLayout.CENTER );
   
    JPanel s1 = new JPanel (new BorderLayout());
    s1.add(axisPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("axisLabel"), s1);
 
    // Curves pane
    JPanel curvePaneContainer = new JPanel (new BorderLayout());
    JLabel curveTitle = new JLabel(resources.getStringValue("curveLabel"));
    curveTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    curvePaneContainer.add(curveTitle, BorderLayout.NORTH);
   
    curvePane = new JPanel ();
    curvePane.setLayout(new BoxLayout(curvePane, BoxLayout.Y_AXIS));

    curvProp=new CurvePropertiesPanel(resources)
    curvePane.add(curvProp);
   
    curvePaneContainer.add(curvePane,BorderLayout.CENTER);
   
    JPanel s2 = new JPanel (new BorderLayout());
    s2.add(curvePaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("curveLabel"), s2);
   
   
    //  Limit pane
    JPanel limitPaneContainer = new JPanel (new BorderLayout());
    JLabel limitTitle = new JLabel(resources.getStringValue("limitLabel"));
    limitTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    limitPaneContainer.add(limitTitle, BorderLayout.NORTH);
   
    limitPane = new JPanel ();
    limitPane.setLayout(new BoxLayout(limitPane, BoxLayout.Y_AXIS));

    limitProp=new LimitPropertiesPanel(resources);
    limitPane.add(limitProp);
   
    limitPaneContainer.add(limitPane,BorderLayout.CENTER);
   
    JPanel l = new JPanel (new BorderLayout());
    l.add(limitPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("limitLabel"), l);

   
    // Plot settings pane
    JPanel plotSettingsContainer= new JPanel (new BorderLayout());
    JLabel plotTitle = new JLabel(resources.getStringValue("plotLabel"));
    plotTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    plotSettingsContainer.add(plotTitle, BorderLayout.NORTH);

   
    plotPropertiesPane = new JPanel();
    plotPropertiesPane.setLayout(new BoxLayout(plotPropertiesPane, BoxLayout.Y_AXIS));
    plotPropertiesPane.add(Box.createVerticalStrut(10));
   
    JPanel title = new JPanel(new FlowLayout(FlowLayout.LEFT));
    title.add(new JLabel(resources.getStringValue("titleLabel")));
    tftitle = new JTextField(25);
View Full Code Here

                .getI18nResourceBundle(), "Mix options")));
        mixOptionsPanelLayout = new SpringLayout();
        mixOptionsPanel.setLayout(mixOptionsPanelLayout);
        mixOptionsPanel.setPreferredSize(new Dimension(200, 110));
        mixOptionsPanel.setMinimumSize(new Dimension(160, 105));
        optionsChecksPanel.setLayout(new BoxLayout(optionsChecksPanel, BoxLayout.LINE_AXIS));
        optionsChecksPanel.add(Box.createRigidArea(new Dimension(5, 0)));

        reverseFirstCheckbox.setText(GettextResource.gettext(config.getI18nResourceBundle(), "Reverse first document"));
        reverseFirstCheckbox.setSelected(false);
        optionsChecksPanel.add(reverseFirstCheckbox);
View Full Code Here

        // Set the current state
        setState();

        playerpanel.removeLoadingLabel();
        playerpanel.setLayout( new BoxLayout(playerpanel,BoxLayout.Y_AXIS) );
        playerpanel.add(topPanel);
        playerpanel.add(radioPanel);
        playerpanel.add(eventPanel);

        getFrame().pack();
View Full Code Here

        // Set the current state
        setState();

        playerpanel.removeLoadingLabel();
        playerpanel.setLayout( new BoxLayout(playerpanel,BoxLayout.Y_AXIS) );
        playerpanel.add(topPanel);
        playerpanel.add(radioPanel);
        playerpanel.add(eventPanel);

        final Component vis =
View Full Code Here

TOP

Related Classes of javax.swing.BoxLayout

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.