use of java.awt.FlowLayout in project jmeter by apache.
the class ArgumentsPanel method makeLabelPanel.
/**
* Create a panel containing the title label for the table.
*
* @return a panel containing the title label
*/
protected Component makeLabelPanel() {
JPanel labelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
labelPanel.add(tableLabel);
if (this.background != null) {
labelPanel.setBackground(this.background);
}
return labelPanel;
}
use of java.awt.FlowLayout in project jmeter by apache.
the class StatGraphVisualizer method createGraphColumnPane.
private JPanel createGraphColumnPane() {
JPanel colPanel = new JPanel();
colPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
//$NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("aggregate_graph_columns_to_display"));
colPanel.add(label);
for (BarGraph bar : eltList) {
colPanel.add(bar.getChkBox());
colPanel.add(createColorBarButton(bar, eltList.indexOf(bar)));
}
colPanel.add(Box.createRigidArea(new Dimension(5, 0)));
chooseForeColor.setFont(FONT_SMALL);
colPanel.add(chooseForeColor);
chooseForeColor.addActionListener(this);
JPanel optionsPanel = new JPanel();
optionsPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
optionsPanel.add(createGraphFontValuePane());
optionsPanel.add(drawOutlinesBar);
optionsPanel.add(numberShowGrouping);
optionsPanel.add(valueLabelsVertical);
JPanel barPane = new JPanel(new BorderLayout());
barPane.add(colPanel, BorderLayout.NORTH);
barPane.add(Box.createRigidArea(new Dimension(0, 3)), BorderLayout.CENTER);
barPane.add(optionsPanel, BorderLayout.SOUTH);
JPanel columnPane = new JPanel(new BorderLayout());
columnPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), // $NON-NLS-1$
JMeterUtils.getResString("aggregate_graph_column_settings")));
columnPane.add(barPane, BorderLayout.NORTH);
columnPane.add(Box.createRigidArea(new Dimension(0, 3)), BorderLayout.CENTER);
columnPane.add(createGraphSelectionSubPane(), BorderLayout.SOUTH);
return columnPane;
}
use of java.awt.FlowLayout in project jmeter by apache.
the class GuiUtils method createLabelCombo.
/**
* Create a GUI component JLabel + JComboBox with a left and right margin (5px)
* @param label the label
* @param comboBox the combo box
* @return the JComponent (margin+JLabel+margin+JComboBox)
*/
public static JComponent createLabelCombo(String label, JComboBox<?> comboBox) {
JPanel labelCombo = new JPanel();
labelCombo.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
JLabel caption = new JLabel(label);
caption.setBorder(new EmptyBorder(0, 5, 0, 5));
labelCombo.add(caption);
labelCombo.add(comboBox);
return labelCombo;
}
use of java.awt.FlowLayout in project jmeter by apache.
the class TCPConfigGui method createNoDelayPanel.
private JPanel createNoDelayPanel() {
// $NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("tcp_nodelay"));
setNoDelay = new TristateCheckBox();
label.setLabelFor(setNoDelay);
JPanel nodelayPanel = new JPanel(new FlowLayout());
nodelayPanel.add(label);
nodelayPanel.add(setNoDelay);
return nodelayPanel;
}
use of java.awt.FlowLayout in project jmeter by apache.
the class CookiePanel method init.
/**
* Shows the main cookie configuration panel.
*/
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
tableModel = new PowerTableModel(COLUMN_RESOURCE_NAMES, columnClasses);
clearEachIteration = //$NON-NLS-1$
new JCheckBox(JMeterUtils.getResString("clear_cookies_per_iter"), false);
policy = new JLabeledChoice(//$NON-NLS-1$
JMeterUtils.getResString("cookie_manager_policy"), new HC4CookieHandler().getPolicies());
setLayout(new BorderLayout());
setBorder(makeBorder());
JPanel northPanel = new JPanel();
northPanel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
northPanel.add(makeTitlePanel());
JPanel optionsPane = new JPanel();
optionsPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), // $NON-NLS-1$
JMeterUtils.getResString("cookie_options")));
optionsPane.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
optionsPane.add(clearEachIteration);
JPanel policyTypePane = new JPanel();
policyTypePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
policyTypePane.add(policy);
optionsPane.add(policyTypePane);
northPanel.add(optionsPane);
add(northPanel, BorderLayout.NORTH);
add(createCookieTablePanel(), BorderLayout.CENTER);
}
Aggregations