File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JFrame window not refreshing while record added

ahmedali mohd

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

Joined: Oct 27, 2005
Posts: 19653

Are you aware of concurrency in Swing?

How To Ask Questions How To Answer Questions
I agree. Here's the link:
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