Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

own JDialog - works with java5, doesn't work with java6

843806Feb 5 2008 — edited Feb 6 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2008
Added on Feb 5 2008
10 comments
155 views