List of usage examples for java.awt FlowLayout LEFT
int LEFT
To view the source code for java.awt FlowLayout LEFT.
Click Source Link
From source file:org.openmicroscopy.shoola.agents.fsimporter.chooser.ImportDialog.java
/** * Lays out the quota.//from w w w . j a v a 2s .c om * * @return See above. */ private JPanel buildQuotaPane() { JPanel row = new JPanel(); row.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); row.add(UIUtilities.buildComponentPanelRight(diskSpacePane, 0, 0, true)); row.add(UIUtilities.setTextFont(QuotaCanvas.IMPORT_SIZE_TEXT)); row.add(UIUtilities.buildComponentPanel(sizeImportLabel, 0, 0, true)); row.setBorder(null); return row; }
From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java
private JPanel createGraphSettingsPane() { JPanel settingsPane = new JPanel(new BorderLayout()); settingsPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("graph_resp_time_settings_pane"))); // $NON-NLS-1$ JPanel intervalPane = new JPanel(); intervalPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); intervalField.setText(String.valueOf(DEFAULT_INTERVAL)); intervalPane.add(intervalField);/* ww w. j av a2 s. c o m*/ // Button intervalButton.setFont(FONT_SMALL); intervalButton.addActionListener(this); intervalPane.add(intervalButton); settingsPane.add(intervalPane, BorderLayout.NORTH); settingsPane.add(createGraphSelectionSubPane(), BorderLayout.SOUTH); return settingsPane; }
From source file:org.apache.jmeter.visualizers.StatGraphVisualizer.java
private JPanel createGraphTitlePane() { JPanel titleNamePane = new JPanel(new BorderLayout()); syncWithName.setFont(new Font("SansSerif", Font.PLAIN, 10)); titleNamePane.add(graphTitle, BorderLayout.CENTER); titleNamePane.add(syncWithName, BorderLayout.EAST); JPanel titleStylePane = new JPanel(); titleStylePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 5)); titleStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_font"), //$NON-NLS-1$ titleFontNameList));//from w ww.ja v a 2 s .c o m titleFontNameList.setSelectedIndex(0); // default: sans serif titleStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_size"), //$NON-NLS-1$ titleFontSizeList)); titleFontSizeList.setSelectedItem(StatGraphProperties.fontSize[6]); // default: 16 titleStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_style"), //$NON-NLS-1$ titleFontStyleList)); titleFontStyleList.setSelectedItem(JMeterUtils.getResString("fontstyle.bold")); // $NON-NLS-1$ // default: bold JPanel titlePane = new JPanel(new BorderLayout()); titlePane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("aggregate_graph_title_group"))); // $NON-NLS-1$ titlePane.add(titleNamePane, BorderLayout.NORTH); titlePane.add(titleStylePane, BorderLayout.SOUTH); return titlePane; }
From source file:org.openmicroscopy.shoola.util.ui.UIUtilities.java
/** * Adds the specified {@link JComponent} to a {@link JPanel} * with a left flow layout./*from w w w .j a va2s . co m*/ * * @param component The component to add. * @param hgap The horizontal gap between components and between the * components and the borders of the * <code>Container</code>. * @param vgap The vertical gap between components and between the * components and the borders of the * <code>Container</code>. * @param isOpaque Pass <code>true</code> if this component should be * opaque, <code>false</code> otherwise. * @return See below. */ public static JPanel buildComponentPanel(JComponent component, int hgap, int vgap, boolean isOpaque) { JPanel p = new JPanel(); if (component == null) return p; if (hgap < 0) hgap = 0; if (vgap < 0) vgap = 0; p.setLayout(new FlowLayout(FlowLayout.LEFT, hgap, vgap)); p.add(component); p.setOpaque(isOpaque); return p; }
From source file:org.apache.jmeter.visualizers.StatGraphVisualizer.java
private JPanel createGraphFontValuePane() { JPanel fontValueStylePane = new JPanel(); fontValueStylePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); fontValueStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_value_font"), //$NON-NLS-1$ valueFontNameList));//w w w.j a v a 2 s . c o m valueFontNameList.setSelectedIndex(0); // default: sans serif fontValueStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_size"), //$NON-NLS-1$ valueFontSizeList)); valueFontSizeList.setSelectedItem(StatGraphProperties.fontSize[2]); // default: 10 fontValueStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_style"), //$NON-NLS-1$ valueFontStyleList)); valueFontStyleList.setSelectedItem(JMeterUtils.getResString("fontstyle.normal")); // default: normal //$NON-NLS-1$ return fontValueStylePane; }
From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java
private JPanel createGraphTitlePane() { JPanel titleNamePane = new JPanel(new BorderLayout()); syncWithName.setFont(FONT_SMALL);/*from www . j av a2 s . co m*/ titleNamePane.add(graphTitle, BorderLayout.CENTER); titleNamePane.add(syncWithName, BorderLayout.EAST); JPanel titleStylePane = new JPanel(); titleStylePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 5)); titleStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_font"), //$NON-NLS-1$ titleFontNameList)); titleFontNameList.setSelectedIndex(DEFAULT_TITLE_FONT_NAME); titleStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_size"), //$NON-NLS-1$ titleFontSizeList)); titleFontSizeList.setSelectedItem(StatGraphProperties.fontSize[DEFAULT_TITLE_FONT_SIZE]); titleStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_style"), //$NON-NLS-1$ titleFontStyleList)); titleFontStyleList.setSelectedIndex(DEFAULT_TITLE_FONT_STYLE); JPanel titlePane = new JPanel(new BorderLayout()); titlePane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("aggregate_graph_title_group"))); // $NON-NLS-1$ titlePane.add(titleNamePane, BorderLayout.NORTH); titlePane.add(titleStylePane, BorderLayout.SOUTH); return titlePane; }
From source file:org.apache.jmeter.visualizers.StatGraphVisualizer.java
private JPanel createGraphDimensionPane() { JPanel dimensionPane = new JPanel(); dimensionPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); dimensionPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("aggregate_graph_dimension"))); // $NON-NLS-1$ dimensionPane.add(dynamicGraphSize); dynamicGraphSize.setSelected(true); // default option graphWidth.setEnabled(false);//from w w w. j a v a 2 s .c om graphHeight.setEnabled(false); dynamicGraphSize.addActionListener(this); dimensionPane.add(Box.createRigidArea(new Dimension(10, 0))); dimensionPane.add(graphWidth); dimensionPane.add(Box.createRigidArea(new Dimension(5, 0))); dimensionPane.add(graphHeight); return dimensionPane; }
From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java
private JPanel createLinePane() { JPanel lineStylePane = new JPanel(); lineStylePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); lineStylePane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("graph_resp_time_settings_line"))); // $NON-NLS-1$ lineStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("graph_resp_time_stroke_width"), //$NON-NLS-1$ strokeWidthList));/*ww w . j a va2s . c o m*/ strokeWidthList.setSelectedItem(StatGraphProperties.strokeWidth[DEFAULT_STROKE_WIDTH_LIST]); lineStylePane.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("graph_resp_time_shape_label"), //$NON-NLS-1$ pointShapeLine)); pointShapeLine.setSelectedIndex(DEFAULT_LINE_SHAPE_POINT); return lineStylePane; }
From source file:org.apache.jmeter.visualizers.StatGraphVisualizer.java
/** * Create pane for X Axis options/* ww w . j a v a 2 s. co m*/ * @return X Axis pane */ private JPanel createGraphXAxisPane() { JPanel xAxisPane = new JPanel(); xAxisPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); xAxisPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("aggregate_graph_xaxis_group"))); // $NON-NLS-1$ xAxisPane.add(maxLengthXAxisLabel); return xAxisPane; }
From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java
private JPanel createGraphDimensionPane() { JPanel dimensionPane = new JPanel(); dimensionPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); dimensionPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("aggregate_graph_dimension"))); // $NON-NLS-1$ dimensionPane.add(dynamicGraphSize); dynamicGraphSize.setSelected(DEFAULT_DYNAMIC_GRAPH_SIZE); graphWidth.setEnabled(false);//w ww.j a v a 2 s .c o m graphHeight.setEnabled(false); dynamicGraphSize.addActionListener(this); dimensionPane.add(Box.createRigidArea(new Dimension(10, 0))); dimensionPane.add(graphWidth); dimensionPane.add(Box.createRigidArea(new Dimension(5, 0))); dimensionPane.add(graphHeight); return dimensionPane; }