import javax.swing.*;
import java.awt.*;
import java.lang.reflect.InvocationTargetException;

public class Main {

    public static void main(String[] argv) throws InterruptedException, InvocationTargetException {
        SwingUtilities.invokeAndWait(new Runnable() {
            @Override
            public void run() {

                // Own class only so we can use a debugger with breakpoint....
                class JFR extends JFrame {
                    public JFR(String title) {
                        super(title);
                    }

                    public final void processEvent(AWTEvent evt) {
                        int id = evt.getID();
                        super.processEvent(evt);
                    }
                }

                JFrame f = new JFR("TextFieldBug");
                JPanel p = new JPanel();
                JTextField tf1 = new JTextField("TF11111111");
                p.add(tf1);
                f.add(p);
                f.pack();
                f.setSize(new Dimension(400, 60));
                f.setLocationRelativeTo(null);
                f.setVisible(true);
            }
        });
    }

} 