Possible Duplicate:
Java Swing revalidate() vs repaint()
I am working on a database application ( Java + oracle 11g ) and I need to know what and why I need to revalidate/repaint in order to get proper display. I have following components :
JFrame {
JCardPanel{
//card1:
JPanel {
JScrollPane1 {
{ JTable1 }
}
JScrollPane2 {
{ JTable2 }
}
}
//card2:
JDialog{
( login window )
}
}
"nested" in this order. The content of JTables changes very often and I don't know how to display them correctly - I am not a swing expert so could someone give me a hint what I need to refresh, how to do it and explain what is happening.