i get no GUI when i run!
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Calculator
{
private JTextField resultTF;
private JButton calculateB, numbersB[] = new JButton[11];
public void driver()
{
//Create Window
JFrame calc = new JFrame("Calculator version 1.0");
calc.setSize(500, 500);
calc.setDefaultCloseOperation(calc.EXIT_ON_CLOSE);
//Get the content pane (object of type Container)
Container cp = calc.getContentPane();
cp.setLayout(new GridLayout(4, 3));
resultTF = new JTextField(10);
resultTF.setEditable(false);
numbersB[0] = new JButton("clear");
String num;
for(int i = 1; i<11; i++)
{
numbersB = new JButton();
numbersB.setText(Integer.toString(i-1));
}
calc.setVisible(true);
Calculator c = new Calculator();
c.driver();
}
public static void main(String[]args){
new Calculator();
}
}