hey guys whats going on, im working on my 4th project now, and im having a bit of trouble with something, and i dont know why its doing it and hwo to fix it. ok heres the problem. i have a JFrame open to a size, and i add a JPanel with objects inside, in this case for a test i just used a JLabel with the text "hello". it opens fine, but i have to extend the frame in order to view the content which it contains, so it opens the frame fine, just doesnt show the content right. heres the small piece of code im using, u can run it yourself, tell me if you get the smae problem. thanks

1st class:

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;

public class VideoStore extends JFrame {

public static void main(String args[]){

MainFrame s = new MainFrame();
s.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
s.show();
s.setSize(1280, 600);
s.setTitle("wesFlicks");


}

public VideoStore(){


}

}
///////////////////////////////////////////////////////////////////////////////////////////////

2nd class

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;



public class MainFrame extends VideoStore{



public MainFrame() {


JPanel p1 = new JPanel();
p1.setLayout(new FlowLayout());
p1.add(new JLabel("hello"));

getContentPane().setLayout(new FlowLayout());
getContentPane().add(p1);

}
}