This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JFrame window not refreshing while record added Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame window not refreshing while record added " Watch "JFrame window not refreshing while record added " New topic
Author

JFrame window not refreshing while record added

ahmedali mohd
Greenhorn

Joined: Apr 14, 2010
Posts: 15
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

Joined: Oct 27, 2005
Posts: 19649
    
  18

Are you aware of concurrency in Swing?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFrame window not refreshing while record added
 
Similar Threads
I can't seem to get the hang of JFrame
repaint frame
problem in displaying 2 different icons in jtree
Server Socket window hanging while calling from JFrame window
problem in GridBagLayout