Im going to be brief, I dont know why when I display a JDialog, the tipical java icon in the top left of the window does not appear. I have this:
And it has to be like this:
The code of that window is the following:
The relevant parts are this ones:
JFrame f = new JFrame();
JDialog d = new JDialog(f,"Nuevo Municipio",true);
JPanel formularios = new JPanel();
JLabel codigo, nombre, provincia, altitud, latitud, longitud;
JTextField fcod,fnom,fal,flat,flong;
JButton ok,cancelar;
JPanel botones = new JPanel();
GridBagConstraints gbc = new GridBagConstraints();
//Container contenedor = d.getContentPane();
formularios.setLayout(new GridBagLayout());
//antes:formularios.setLayout(new GridLayout(6,2));
d.setLayout(new BorderLayout());
botones.setLayout(new FlowLayout(FlowLayout.CENTER));
d.add(formularios, BorderLayout.CENTER);
d.add(botones, BorderLayout.SOUTH);
d.setSize(new Dimension(450, 300));
d.setLocationRelativeTo(f);
d.setResizable(false);
d.setVisible(true);