/** * Initialize the GUI components and layout. */ private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new BorderLayout(5, 0)); commentField = new JTextArea(); JLabel commentLabel = new JLabel(JMeterUtils.getResString("testplan_comments")); //$NON-NLS-1$ commentLabel.setLabelFor(commentField); JPanel commentPanel = new JPanel(); commentPanel.setLayout(new BorderLayout(0, 5)); commentPanel.add(commentLabel,BorderLayout.WEST); commentPanel.add(commentField,BorderLayout.CENTER); add(commentPanel); }