File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 19653
    
  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
problem in GridBagLayout
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