I'm having trouble creating a fixed date format using JTextField. Is there a way for JTextField to have a fixed date format ?
JTextField
You can use JFormattedTextField with SimpleDateFormat
DateFormat format = new SimpleDateFormat("your_format"); JFormattedTextField dateTextField = new JFormattedTextField(format);
1.4m articles
1.4m replys
5 comments
57.0k users