Created
July 4, 2014 16:05
-
-
Save anonymous/662976ce8f6a942a3b9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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