• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFrame window not refreshing while record added

 
ahmedali mohd
Greenhorn
Posts: 15
  • 0
  • 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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you aware of concurrency in Swing?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic