public FormattedEditor(Format format) { editor = new JFormattedTextField(format); // workaround for mac jdk bug if (isMacOSX() && UIManager.getLookAndFeel().isNativeLookAndFeel()) { editor.setUI(new BasicFormattedTextFieldUI()); } editor.setBorder(null); }