Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2005

Tip: Looking for answers? Try searching our database.

repainting when logging in

Thread view: 
zaineb@gmail.com - 24 Aug 2005 18:13 GMT
Hi,
I am a newbie to GUI programming and I was hoping someone could help
me.
I have a JFrame app that does not repaint when I log out (and then in)
of my Windows machine until I minimize and restore the GUI. Is there a
way of forcing the GUI to repaint when I log in again or have some sort
of background process that repaints at particular intervals? Please let
me know. Thanks!
Zaineb
Camford - 25 Aug 2005 06:54 GMT
doesn't JFrame (or JPanel) has a repaint() method or something? It should
also have a paintComponent() method.

I've only just started GUI programming recently. Currently having trouble
with a piece of university work. I have no idea how the two methods work, at
least that's a starting point. Hope this helped, if it's only a little bit.
Good luck
Thomas Weidenfeller - 25 Aug 2005 07:38 GMT
> doesn't JFrame (or JPanel) has a repaint() method or something? It should
> also have a paintComponent() method.

Which are not intended for fixing a broken layout. You never have to
call them by yourself for normal windows.

> I've only just started GUI programming recently. Currently having trouble
> with a piece of university work. I have no idea how the two methods work,

So why do you recommend them? See

http://java.sun.com/products/jfc/tsc/articles/painting/index.html

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Thomas Weidenfeller - 25 Aug 2005 07:36 GMT
> I have a JFrame app that does not repaint when I log out (and then in)
> of my Windows machine until I minimize and restore the GUI. Is there a
> way of forcing the GUI to repaint when I log in again or have some sort
> of background process that repaints at particular intervals?

Please check Q3.1, Q3.2, Q3.3, Q3.4, Q4.2, Q4.3, Q5.13, Q8.2, and Q8.10
of the comp.lang.java.gui FAQ. And Q2.4 and Q2.6 for an extra bonus.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

zaineb@gmail.com - 25 Aug 2005 21:24 GMT
That helped. Thanks!
-Z


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.