Originally posted by Kevin Cary:
For some reason my JFrame won't show my JTable until I mouseClick where each component should be.
Hi , Kevin i used JTable just now in my GUI design and i had no problems adding it to the JFrame , i had it done something like this
public class Gui extends JFrame {
public Gui() {
super("GUI");
Container c = getContentPane();
c.add(new JScrollPane(new JTable(getRows(),getCols()));
setSize(200,200);
setVisible(true);
}
public static void main(
String[] args) {
new Gui();
}
}