I have a Java app and a JDateChooser
. The problem comes when I start my app.
The JDateChooser
remains invisible and appears only after I iconify my app.
What I should do?
dateChooser = new JDateChooser();
dateChooser.setDateFormatString("d/MM/yyyy");
dateChooser.setBounds(48, 68, 102, 20);
JTextFieldDateEditor editor = (JTextFieldDateEditor) dateChooser.getDateEditor();
editor.setEditable(false);
frmCodfiscextractor.getContentPane().add(dateChooser);
Also, I put this at the end of the class :
frmCodfiscextractor.repaint();