2019.5.1

2019.5.1

class ClassLoaderFrame extends JFrame{
    private JTextField keyField = new JTextField("3", 4);
    private JTextField nameField = new JTextField("Calculator", 30);
    private static final int DEFAULT_WIDTH = 300;
    private static final int DEFAULT_HEIGHT = 200;

    public ClassLoaderFrame(){
        setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
        setLayout(new GridBagLayout());
        add(new JLabel("Class"),new GBC(0,0).setAnchor(GBC.EAST));
        
    }
}

你可能感兴趣的:(琉璃神社)