//
pl.add(pvi.getComponent());
pl.add(conditionBox);
//
valueInput = new ObjectInput();
Inputter dtInput_;
try {
dtInput_ = ObjectType.getDefaultInputter(Class.class);
} catch (Exception e1) {
dtInput_ = new DataTypeInput();
}
final Inputter dtInput = dtInput_;
cards = new JPanel(new CardLayout());
cards.add(pvi2.getComponent(), "byVariable");
cards.add(dtInput.getComponent(), "byUser");
final JPanel dynamicPanel = new JPanel(new BorderLayout());
dynamicPanel.add(CreateRadioPanel(), BorderLayout.NORTH);
dynamicPanel.add(cards, BorderLayout.CENTER);
//pl2.add(valueInput.getComponent(), BorderLayout.WEST);
pl.add(dynamicPanel);
dtInput.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
try{
Class type = (Class)dtInput.getValue();
if(type!=null){
if(valueInput==null)
valueInput = new ObjectInput();
cards.getParent().add(valueInput.getComponent(), BorderLayout.SOUTH);
valueInput.setType(type);
dlg.pack();