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);

}

[650 byte] By [natalie_Ito_Ahfotaa] at [2007-11-27 2:14:00]
# 1
you could try revalidate()
MaxxDmga at 2007-7-12 2:09:51 > top of Java-index,Desktop,Core GUI APIs...