home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Help - Java repaint() (or other way to refresh)

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2673
Discussions: 200,998, Posts: 2,379,986, Members: 246,368
Old February 22nd, 2005, 10:21 AM   Digg it!   #1 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Help - Java repaint() (or other way to refresh)

I have a content pane, and I have the following code:

Code:
  GUI_Content_Pane.removeAll();			
  GUI_Build();
  repaint();
Everything works, except instead of repainting the screen... it does nothing. If I minimize the screen, the correct new information is shown (from GUI_Build)

How do I get the program to repaint, without me having to move it off the edge of the screen, or move another program in front of it before it does.


-Blaze
Blazer06 is offline   Reply With Quote
Old February 22nd, 2005, 10:55 AM     #2 (permalink)
Junior Member
 
Join Date: Jul 2003
Location: Vulcan, MI
Posts: 22
Send a message via AIM to lnxmatt Send a message via MSN to lnxmatt
GUI_Content_Pane.repaint();
lnxmatt is offline   Reply With Quote
Old February 22nd, 2005, 11:04 AM     #3 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
That easy ehh?

Thank you... I've spent about 7 hours trying to get that to work. (needless to say, I don't really deal with GUI's / Graphics often)


-Blaze
Blazer06 is offline   Reply With Quote
Old February 22nd, 2005, 11:07 AM     #4 (permalink)
Junior Member
 
Join Date: Jul 2003
Location: Vulcan, MI
Posts: 22
Send a message via AIM to lnxmatt Send a message via MSN to lnxmatt
Did it work? I was mearly giving a suggestion. Haven't done java in a while. I usually do a component by component repaint so I'm not repainting components that didn't change.
lnxmatt is offline   Reply With Quote
Old February 22nd, 2005, 11:25 AM     #5 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Yes, it worked perfectly.


-Blaze
Blazer06 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera 7.21 brian0555 Applications and Operating Systems 7 November 2nd, 2003 11:36 AM
JAVA help needed badly!!! Martoch Webmastering and Programming 19 April 29th, 2003 11:00 AM
Opera ... How come everytime ... Brangwen Applications and Operating Systems 25 January 4th, 2003 09:38 AM
programmers wewtupdawg Applications and Operating Systems 4 August 14th, 2002 02:42 AM
Microsoft Java Virtual Machine Shoes General Tech Discussion 2 August 2nd, 2002 08:07 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3104)
‘Rogue’ or ‘Rouge’? (8)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
windows vista security holes (19)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
windows 7 problem (7)
Recent Discussions
Computer shutting down on its own (6)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
add ram to existing (3)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
windows vista security holes (19)


All times are GMT -4. The time now is 01:37 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28