M
Mack Attack
The Netbeans form editor uses parameterless constructors for all components.
I don't think there is any way around this.
I want to use a JFormattedTextField and have it set to use a specific format.
If I wasn't using the form editor I would do something like this:
NumberFormat percentFormat = NumberFormat.getNumberInstance();
percentFormat.setMinimumFractionDigits(3);
myFormattedTextField = new JFormattedTextField( percentFormat );
How can I do the same thing with the JFormattedTextField created by the form?
I've looked at setFormatter and setFormatterFactory but they have me completely
confused.
Thanks
I don't think there is any way around this.
I want to use a JFormattedTextField and have it set to use a specific format.
If I wasn't using the form editor I would do something like this:
NumberFormat percentFormat = NumberFormat.getNumberInstance();
percentFormat.setMinimumFractionDigits(3);
myFormattedTextField = new JFormattedTextField( percentFormat );
How can I do the same thing with the JFormattedTextField created by the form?
I've looked at setFormatter and setFormatterFactory but they have me completely
confused.
Thanks