* In the former case, the process will be marked as 'modified'.
*/
public boolean displayActivityConfigurationDialog(ModelObject mo)
{
JFrame activeFrame = ApplicationUtil.getActiveWindow();
JStandardDialog dialog = new JStandardDialog(activeFrame, true);
dialog.setTitle("Activity Configurator Test");
JPanel p1 = new JPanel(new BorderLayout());
JLabel l1 = new JLabel("Param 1");
JTextField t1 = new JTextField();
t1.setText((String) mo.getDesignTimeAttribute(TEST_PARAM1));
p1.add(l1, BorderLayout.WEST);
p1.add(t1, BorderLayout.CENTER);
JPanel p2 = new JPanel(new BorderLayout());
JLabel l2 = new JLabel("Param 2");
JTextField t2 = new JTextField();
t2.setText((String) mo.getDesignTimeAttribute(TEST_PARAM2));
p2.add(l2, BorderLayout.WEST);
p2.add(t2, BorderLayout.CENTER);
JPanel pMain = new JPanel(new VerticalFlowLayout());
pMain.add(p1);
pMain.add(p2);
dialog.getMainPane().add(pMain);
dialog.pack();
dialog.setVisible(true);
if (! dialog.isCancelled())
{
mo.setDesignTimeAttribute(TEST_PARAM1, t1.getText());
mo.setDesignTimeAttribute(TEST_PARAM2, t2.getText());
return true;
}