Folgenden Code benutze ich:
Code (Text):
textfield_abfahrtszeit = new JFormattedTextField(createFormatter("####"));
textfield_abfahrtszeit.setToolTipText("Abfahrtszeit");
textfield_abfahrtszeit.setFont(new Font("SansSerif", Font.PLAIN, 15));
// UND //...
textfield_abfahrtszeit.setToolTipText("Abfahrtszeit");
textfield_abfahrtszeit.setFont(new Font("SansSerif", Font.PLAIN, 15));
// UND //...
Java JFormattedTextfield MaskFormatter ohne Leerzeichen
0 commentaires:
Enregistrer un commentaire