Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2014 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/662976ce8f6a942a3b9b to your computer and use it in GitHub Desktop.
Save anonymous/662976ce8f6a942a3b9b to your computer and use it in GitHub Desktop.
public class FocusRingBugFrame extends javax.swing.JFrame {
private final javax.swing.JTextField textField;
public FocusRingBugFrame() {
textField = new javax.swing.JTextField();
textField.putClientProperty("JTextField.variant", "search");
getContentPane().add(textField, java.awt.BorderLayout.NORTH);
pack();
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new FocusRingBugFrame().setVisible(true);
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment