I'm trying to make a child class from `JFrame`. I think im doing it correctly but when I run this it opens a blank window without a name or background color (my `JPanel` class does the background. However, I know the error is not there because I commented out the add(`Jpanel`) and the window still didn't have a name) Also eclipse doesn't show any syntax errors. Why doesn't this code work?: 

**Main Class:**
---------------

```
package ashwin.engine;
import javax.swing.*;
import java.awt.*; 
public class Execute {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable(){

            @Override
            public void run() {
                int[] bcolor = new int[3];
                bcolor[0] = 254;
                bcolor[1] = 0;
                bcolor[2] = 0;
                Window  wndw = new Window("Test", 1000, 1000, bcolor, true);

            } });

    }

}

```

JFrame Child Class:
-------------------

```
package ashwin.engine;
import javax.swing.*;
import java.awt.*; 
public class Window extends JFrame {
    Window(String name, int width, int length, int[] backgroundColor, boolean visible) {

        System.out.println("made it to frame class");

        setName(name);
        setVisible(visible);
        setSize(width, length);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
        Display display = new Display(backgroundColor);

    }
}

```

edit:
Forgot to mention, it does print out my debug statement "made it to frame class", dont know if that helps but I thought I should point it out.