add(box,BorderLayout.NORTH);
//JPanel mainPanel = new JPanel(new BorderLayout());
// THREAD PROPERTIES
VerticalPanel threadPropsPanel = new VerticalPanel();
threadPropsPanel.setBorder(
BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("thread_properties")));
// NUMBER OF THREADS
JPanel threadPanel = new JPanel(new BorderLayout(5, 0));
JLabel threadLabel =
new JLabel(JMeterUtils.getResString("number_of_threads"));
threadPanel.add(threadLabel, BorderLayout.WEST);
threadInput = new JTextField("1", 5);
threadInput.setName(THREAD_NAME);
threadLabel.setLabelFor(threadInput);
threadPanel.add(threadInput, BorderLayout.CENTER);
threadPropsPanel.add(threadPanel);
new FocusRequester(threadInput);
// RAMP-UP
JPanel rampPanel = new JPanel(new BorderLayout(5, 0));
JLabel rampLabel = new JLabel(JMeterUtils.getResString("ramp_up"));
rampPanel.add(rampLabel, BorderLayout.WEST);
rampInput = new JTextField("1", 5);
rampInput.setName(RAMP_NAME);
rampLabel.setLabelFor(rampInput);
rampPanel.add(rampInput, BorderLayout.CENTER);
threadPropsPanel.add(rampPanel);
// LOOP COUNT
threadPropsPanel.add(createControllerPanel());
// mainPanel.add(threadPropsPanel, BorderLayout.NORTH);
//add(mainPanel, BorderLayout.CENTER);
scheduler = new JCheckBox( JMeterUtils.getResString("scheduler"));
scheduler.addItemListener(this);
threadPropsPanel.add(scheduler);
mainPanel = new VerticalPanel();
mainPanel.setBorder(
BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("scheduler_configuration")));
mainPanel.add(createStartTimePanel());
mainPanel.add(createEndTimePanel());
mainPanel.add(createDurationPanel());
mainPanel.add(createDelayPanel());
mainPanel.setVisible(false);
VerticalPanel intgrationPanel = new VerticalPanel();
intgrationPanel.add(threadPropsPanel);
intgrationPanel.add(mainPanel);
add(intgrationPanel, BorderLayout.CENTER);
}