setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
Box box = Box.createHorizontalBox();
box.add(new JLabel(param1Name()));
box.add(Box.createHorizontalGlue());
box.add(nfParam1 = new NumberField(0.0));
add(box);
box = Box.createHorizontalBox();
box.add(new JLabel(param2Name()));
box.add(Box.createHorizontalGlue());
box.add(nfParam2 = new NumberField(1.0));
add(box);
box = Box.createHorizontalBox();
box.add(rbStatic = new JRadioButton(resources.getString("static"),true));
box.add(Box.createHorizontalGlue());
add(box);
box = Box.createHorizontalBox();
box.add(rbDynamic = new JRadioButton(resources.getString("dynamic"),false));
box.add(Box.createHorizontalGlue());
add(box);
ButtonGroup bg = new ButtonGroup();
bg.add(rbStatic);
bg.add(rbDynamic);
final JPanel cardPane = new JPanel(new CardLayout());
box = Box.createHorizontalBox();
box.add(bufferLabel = new JLabel(resources.getString("staticBufferLabel")));
box.add(Box.createHorizontalGlue());
box.add(nfSize = new NumberField(100,5));
cardPane.add(box,"s");
Box vbox = Box.createVerticalBox();
box = Box.createHorizontalBox();
box.add(bufferLabel = new JLabel(resources.getString("dynamicBufferLabel")));
box.add(Box.createHorizontalGlue());
box.add(nfDynamicSize = new NumberField(100,5));
vbox.add(box);
box = Box.createHorizontalBox();
box.add(bufferLabel = new JLabel(resources.getString("period")));
box.add(Box.createHorizontalGlue());
box.add(tfPeriod = new JTextField("1000"));