Hello,
I'm working on map editor for a bigger project and I'm stuck with displaying my own JDialog (grrr...). I found out that problem occurs only with java6. See the screenshots below:
java5
http://student.agh.edu.pl/~kdzwinel/Projects/TrafficSim/MapEditor/good.jpg
java6
http://student.agh.edu.pl/~kdzwinel/Projects/TrafficSim/MapEditor/wrong.jpg
And some implementation details:
how do I create new dialog:
NewMapDialog dialog = new NewMapDialog(this);
dialog.setVisible(true);
how dialog class looks like:
public class NewMapDialog extends JDialog implements ActionListener, ChangeListener
{
//(...)
NewMapDialog(Main owner)
{
super(owner,"New map",true);
this.setAlwaysOnTop(true);
this.setSize(200, 280);
this.setResizable(false);
this.setLocationRelativeTo(owner);
makeLayout();
}
//(...)
private void makeLayout()
{
Container content = getContentPane();
content.setLayout(new FlowLayout());
//(...) <- add stuff
}
}
That is so simple that I'm really confused. I will appreciate some help.
Regards,
Konrad
Edited by: kdzwinel on Feb 5, 2008 6:23 PM