I am using this code on a button to load my dialog box with another form;

Dialog d = new Dialog(this,true);
d.setVisible(true);
txtName.setText(d.getName());

But all it is loading is a blank dialog, any ideas why??


Cheers,
Steve