Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame window not refreshing while record added  RSS feed

 
ahmedali mohd
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I m using JFrame and added JLabel by fetching user name from database. When i m adding a new record through this application then i m recalling a method to add JLabel once to update my frame as per no of user in the table. I m using repaint to do that as well

But when i m sigout, then signout screen showing the background user added in front of main screen. Its means still is visible behind the screen. Actually it should be invisible on my main screen. I m doing repaint(), setVisible(false) and remove() ( all the components ) still , i m able to see those users...

Please let me know what to do next to update the screen and when i signout, it shouldn't show the behind users.

It is very urgent, help me out....

 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you aware of concurrency in Swing?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!