How to Display a JTable
Hey
I am writing a data base application with NetBeans. I have been trying to display data from my SQL DB. I know that the data was retrievd correctly (by debuging the program...) and still I can't display the data in a JTable component. This is the last thing that i was trying to do, please tell me what is wrong.
Thanks Natalie
void displayPatientHistory (Object[][] TableData1, Object[] ColumnsNames1, String s1)
{
jPanel3.setVisible (false);
JTable t=new JTable (TableData1, ColumnsNames1);
JScrollPane s=new JScrollPane (t);
this.jPanel4.add (s);
jPanel4.setVisible(true);
}

