Supossing that a JFormattedTextField is enabled and contains a formatter, is there a way to make it readonly? With a JTextField, we just need to suply a custom
You can simply use:
JFormattedTextField field = new JFormattedTextField(); // ... field.setEditable(false);
just like for the JTextField since JFormattedTextField extends JTextField
JTextField
JFormattedTextField
Check out the javadoc as well.