I have this code

```
package com.net.Forms;
import javax.swing.JButton;
import javax.swing.JFrame;

public class MainForm {

    protected static JFrame window = new JFrame("Test Form");
    protected static JButton btnOK = new JButton("OK!");

    public static void Main() {
        load();
        return;
    }
        public static void load() {
        window.setSize(500, 500);
        window.setVisible(true);
        //btnOK.setSize(50, 50); //here
        window.add(btnOK);
        btnOK.setEnabled(true);
        btnOK.setVisible(true);

        }

}

```

Why is the button still filling the frame instead of being 50 X 50 like i stated above

Any help would be appreciated