Hi.
This is my code:
The problem is that the two lables replace each other.How to position them where we want?JDialog dialog = new JDialog(); dialog.setSize(400, 150); dialog.setTitle("Input dialog"); dialog.add( new JLabel("simtime(min)") ); dialog.add( new JLabel("interval(sec)") ); dialog.setVisible(true);
?Thanks in advance