problems refreshing GUI
From: t12be (t12be_at_hotmail.com)
Date: 03/28/04
- Next message: Christophe Vanfleteren: "Re: problems refreshing GUI"
- Previous message: Andrew Thompson: "Re: JTree with checkboxes in it : Newbie"
- Next in thread: Christophe Vanfleteren: "Re: problems refreshing GUI"
- Reply: Christophe Vanfleteren: "Re: problems refreshing GUI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Mar 2004 09:31:15 -0800
What I have is a Container with on it a JScrollPane to hold a JTable with
data provided by a database.
The problem is that when I get the result of a query and want my new
'JTable' to replace the old one, the old one is still behind the new one.
I tried several methods like:
repaint()
validate()
upate()
or removing all with 'removeAll()' and then placing the new JTable.
The only thing that almost worked is by placing it all on a JPanel and using
the methods 'removeAll()' 'add(JTable table)' and 'updateUI()' in that
order. It didn't show the old ones anymore but my JScrollPane isn't working
either and I had to give it a size myself.
Anyone who can work this out?
- Next message: Christophe Vanfleteren: "Re: problems refreshing GUI"
- Previous message: Andrew Thompson: "Re: JTree with checkboxes in it : Newbie"
- Next in thread: Christophe Vanfleteren: "Re: problems refreshing GUI"
- Reply: Christophe Vanfleteren: "Re: problems refreshing GUI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|