this is the code I have so far
public class WindowHelpGui extends JFrame{
JScrollPane scroll;
//constructor
public WindowHelpGui(){
//add window title
super("Help");
//set window layout
setLayout(null);
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setBounds(10, 10, 750, 550);
JPanel panel1 = new JPanel();
JPanel panel2 = new JPanel();
JPanel panel3 = new JPanel();
panel1.add(new JTextArea("\nDRAFT TEXT 101
\ncodnvfdinofndovndofinvinfdivnifdnvidfnviofnivnidfnviofdnvindfinv
ivondfviondfiovndfionvifdnvionivfdninfdinfivnidfovniofnviofnvifdnv
fndiovnf\nh\ne\nl\nl\no\n\nf\nr\no\nm\n\nt\nh\ne\n\no\nt\nh"+
"e\nr\n\ns\ni\nd\ne\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
nHello"));
panel2.add(new JTextArea("panel2 working"));
panel3.add(new JTextArea("panel3 working"));
JScrollPane scroll = new JScrollPane(panel1, JScrollPane.
HORIZONTAL_SCROLLBAR_NEVER, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDE
add(scroll, panel1);
tabbedPane.add("How to play", panel1);
tabbedPane.add("Seeds", panel2);
tabbedPane.add("Tools", panel3);
//scroll = new Jscro
this.add(tabbedPane);
//set size of window
setSize(800,600);
//set visibility
setVisible(true);
//set resizable
setResizable(false);
//set default close
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
when I run this I dont see any window popping up. Can someone help me please?
I have tried also tried using add(scroll, tabbedPane) but it just adds a new tab on my window.