Package java.awt

Examples of java.awt.FlowLayout


       
        setBorder(ComponentFactory.getTitleBorder(DcResources.getText("msgJobStatus", dmp.getTitle())));
        setLayout(Layout.getGBL());
       
        JPanel panelActions = new JPanel();
        panelActions.setLayout(new FlowLayout(FlowLayout.LEFT));
       
        buttonStart.setActionCommand("start");
        buttonStop.setActionCommand("stop");
       
        buttonStart.addActionListener(this);
View Full Code Here


        getContentPane().add(scrollIn,      Layout.getGBC( 1, 0, 2, 3, 90.0, 90.0
                            ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
                             new Insets(5, 5, 5, 5), 0, 0));
       
        JPanel panelActions = new JPanel();
        panelActions.setLayout(new FlowLayout(FlowLayout.RIGHT));
        panelActions.add(buttonNo);
        panelActions.add(buttonYes);
       
        textMessage.setBackground(panelActions.getBackground());
       
View Full Code Here

    }
   
    private void build() {
        // Actions
        JPanel panelActions = new JPanel();
        panelActions.setLayout(new FlowLayout(FlowLayout.LEFT));
       
        buttonAdd.addActionListener(this);
        buttonAdd.setActionCommand("createField");
        buttonRemove.addActionListener(this);
        buttonRemove.setActionCommand("delete");
View Full Code Here

                      new Insets( 5, 5, 5, 5), 0, 0));

        //**********************************************************
        //Action panel
        //**********************************************************
        panelAction.setLayout(new FlowLayout(FlowLayout.LEFT));
        JButton buttonClose = ComponentFactory.getButton(DcResources.getText("lblClose"));
        JButton buttonSave = ComponentFactory.getButton(DcResources.getText("lblSave"));

        buttonClose.addActionListener(this);
        buttonClose.setActionCommand("close");
View Full Code Here

       
        if (existingField && field.getFieldType() == ComponentFactory._REFERENCESFIELD)
            comboFieldType.setEnabled(false);
       
        JPanel panelActions = new JPanel();
        panelActions.setLayout(new FlowLayout(FlowLayout.RIGHT));
       
        JButton buttonOk = ComponentFactory.getButton(DcResources.getText("lblOK"));
        JButton buttonClose = ComponentFactory.getButton(DcResources.getText("lblClose"));
       
        panelActions.add(buttonOk);
View Full Code Here

        panelStatus.setLayout(Layout.getGBL());
        panelStatus.setBorder(ComponentFactory.getTitleBorder(DcResources.getText("lblWebServerStatus")));
       
       
        JPanel panelActions = new JPanel();
        panelActions.setLayout(new FlowLayout(FlowLayout.LEFT));
       
        buttonStart.setActionCommand("start");
        buttonStop.setActionCommand("stop");
       
        buttonStart.addActionListener(this);
View Full Code Here

      // X axis section
      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("XAxis")));
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
     
      CyclicNumberAxis cna = null;
      if (plot.getDomainAxis() instanceof CyclicNumberAxis) cna = (CyclicNumberAxis)plot.getDomainAxis();
     
      panel.add(cbcyclex = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(xcards.getLayout());
          if (isSelected()) cl.show(xcards, "cyclic");
          else cl.show(xcards, "normal");
        }
      });
      panel.add(cbinvertx = new ActionCheckBox(resources.getString("Inverted"), plot.getDomainAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
        }
      });
      section.add(panel);
     
      xcards = new JPanel();
      xcards.setLayout(new CardLayout());
     
      Box hbox = Box.createHorizontalBox();
      hbox.add(new JLabel(resources.getString("Period")));
      hbox.add(nfperiodx = new NumberField(cna==null ? 0 : cna.getPeriod()));
      hbox.add(Box.createHorizontalGlue());
      hbox.add(new JLabel(resources.getString("Offset")));
      hbox.add(nfoffsetx = new NumberField(cna==null ? 0 : cna.getOffset()));
      xcards.add(hbox,"cyclic");
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      double autorange = plot.getDomainAxis().getFixedAutoRange();
      panel.add(cbfixedautox = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          nffixedautox.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(nffixedautox = new NumberField(autorange,10));
      xcards.add(panel,"normal");

      section.add(xcards);
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbautox = new ActionCheckBox(resources.getString("Auto-update"), plot.getDomainAxis().isAutoRange()) {
        public void actionPerformed(ActionEvent e) {
          cbfixedautox.setEnabled(isSelected());
          cbfixedautox.apply();
          lpxmin.setEnabled(!isSelected());
          lpxmax.setEnabled(!isSelected());
          tfpxmin.setEnabled(!isSelected());
          tfpxmax.setEnabled(!isSelected());
        }
      });
      panel.add(lpxmin = new JLabel(resources.getString("minLabel")));
      panel.add(tfpxmin = new NumberField(10));
      tfpxmin.setValue(plot.getDomainAxis().getLowerBound());
      panel.add(lpxmax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfpxmax = new NumberField(10));
      tfpxmax.setValue(plot.getDomainAxis().getUpperBound());
      cbautox.apply();
      section.add(panel);
     
      content.add(section);

     
      // Now handle Y axis
      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("YAxis")));

      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
     
      cna = null;
      if (plot.getRangeAxis() instanceof CyclicNumberAxis) cna = (CyclicNumberAxis)plot.getRangeAxis();
     
      panel.add(cbcycley = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(ycards.getLayout());
          if (isSelected()) cl.show(ycards, "cyclic");
          else cl.show(ycards, "normal");
        }
      });
      panel.add(cbinverty = new ActionCheckBox(resources.getString("Inverted"), plot.getRangeAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
        }
      });
      section.add(panel);
     
      ycards = new JPanel();
      ycards.setLayout(new CardLayout());
     
      hbox = Box.createHorizontalBox();
      hbox.add(new JLabel(resources.getString("Period")));
      hbox.add(nfperiody = new NumberField(cna==null ? 0 : cna.getPeriod()));
      hbox.add(Box.createHorizontalGlue());
      hbox.add(new JLabel(resources.getString("Offset")));
      hbox.add(nfoffsety = new NumberField(cna==null ? 0 : cna.getOffset()));
      ycards.add(hbox,"cyclic");
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      autorange = plot.getRangeAxis().getFixedAutoRange();
      panel.add(cbfixedautoy = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          nffixedautoy.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(nffixedautoy = new NumberField(autorange,10));
      ycards.add(panel,"normal");

      section.add(ycards);
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbautoy = new ActionCheckBox(resources.getString("Auto-update"), plot.getRangeAxis().isAutoRange()) {
        public void actionPerformed(ActionEvent e) {
          cbfixedautoy.setEnabled(isSelected());
          cbfixedautoy.apply();
          lpymin.setEnabled(!isSelected());
View Full Code Here

                JPanel bpanel = new JPanel(new GridLayout(1, 1));
                bpanel.add(changeSourceAlias = new JButton(resources.getString("changeSourceAlias")));
                treePane.add(bpanel, BorderLayout.SOUTH);
                JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(list), treePane);
                list.setVisibleRowCount(10);
                JPanel bbox = new JPanel(new FlowLayout());
                final JButton bok;
                bbox.add(bok = new JButton("OK"));
                // bbox.add(bcancel = new JButton("Cancel"));
                final JDialog dialog = new JDialog(JSynoptic.gui.getOwner(), resources
                        .getString("conflictResolutionDialog"), true);
View Full Code Here

    super.createContent();
   
    cbSecAxisEnabled = new JCheckBox(resources.getString("displaySecXAxis"));
 
    JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.LEFT));
    panel.add(cbSecAxisEnabled);
   
    axisPane.add(panel);
  }
View Full Code Here

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("OverallRange")));

      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbautorange = new ActionCheckBox(resources.getString("Auto-update"), plot.isAutorange()) {
        public void actionPerformed(ActionEvent e) {
          lrangemin.setEnabled(!isSelected());
          lrangemax.setEnabled(!isSelected());
          tfrangemin.setEnabled(!isSelected());
          tfrangemax.setEnabled(!isSelected());
        }
      });
      panel.add(lrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfrangemin = new NumberField(10));
      tfrangemin.setValue(plot.getRange().getLowerBound());
      panel.add(lrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfrangemax = new NumberField(10));
      tfrangemax.setValue(plot.getRange().getUpperBound());
      section.add(panel);
      cbautorange.apply();
      p1.add(section);

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("'Normal'Range")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbnrange = new ActionCheckBox(resources.getString("Enable"), plot.getNormalRange()!=null) {
        public void actionPerformed(ActionEvent e) {
          lnrangemin.setEnabled(isSelected());
          lnrangemax.setEnabled(isSelected());
          tfnrangemin.setEnabled(isSelected());
          tfnrangemax.setEnabled(isSelected());
        }
      });
      panel.add(lnrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfnrangemin = new NumberField(10));
      if (plot.getNormalRange()!=null) tfnrangemin.setValue(plot.getNormalRange().getLowerBound());
      panel.add(lnrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfnrangemax = new NumberField(10));
      if (plot.getNormalRange()!=null) tfnrangemax.setValue(plot.getNormalRange().getUpperBound());
      section.add(panel);
      cbnrange.apply();
      p1.add(section);

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("'Warning'Range")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbwrange = new ActionCheckBox(resources.getString("Enable"), plot.getWarningRange()!=null) {
        public void actionPerformed(ActionEvent e) {
          lwrangemin.setEnabled(isSelected());
          lwrangemax.setEnabled(isSelected());
          tfwrangemin.setEnabled(isSelected());
          tfwrangemax.setEnabled(isSelected());
        }
      });
      panel.add(lwrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfwrangemin = new NumberField(10));
      if (plot.getWarningRange()!=null) tfwrangemin.setValue(plot.getWarningRange().getLowerBound());
      panel.add(lwrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfwrangemax = new NumberField(10));
      if (plot.getWarningRange()!=null) tfwrangemax.setValue(plot.getWarningRange().getUpperBound());
      section.add(panel);
      cbwrange.apply();
      p1.add(section);

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("'Critical'Range")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbcrange = new ActionCheckBox(resources.getString("Enable"), plot.getCriticalRange()!=null) {
        public void actionPerformed(ActionEvent e) {
          lcrangemin.setEnabled(isSelected());
          lcrangemax.setEnabled(isSelected());
          tfcrangemin.setEnabled(isSelected());
View Full Code Here

TOP

Related Classes of java.awt.FlowLayout

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.