Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (672)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  paint  (Read 2274 times)
0 Members and 1 Guest are viewing this topic.
Offline amith

Junior Newbie

« Posted 2008-07-01 12:38:44 »

i have some three images iam loading it i just want to apply threads for two new images when iam using repaint it is loading the whole screen and only  two new images are visible to me but i want the five images and new two images should be visible to me what can i do
Offline zammbi

JGO Coder

Medals: 4

« Reply #1 - Posted 2008-07-01 14:22:36 »

You might want to post some code. I'm not totally understanding atm...

Current project - Rename and Sort
Offline Bonbon-Chan

JGO Coder

Medals: 12

« Reply #2 - Posted 2008-07-03 07:09:47 »

I didn't get it at all too  Huh
Try to put some punctuations and to do simple sentences.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Pyrodragoon

Junior Devvie

Exp: 14 years

Art calculated with java...

« Reply #3 - Posted 2008-07-24 14:37:16 »

I guess you draw 3 images to the screen and with the repaint the other 2?!
A normal repaint() clears the screen first so your old ones disappear.
You can draw your images to an offscreen BufferedImage
and draw this image to the screen.
Then all 5 images should appear  Wink

But I´m also not sure if that´s what you wanted  ?  Undecided
Offline DragonsRage

Senior Newbie

« Reply #4 - Posted 2008-07-24 20:53:10 »

Like pyrodragon said, reapint() clears the screen so you can draw to an off screen image, or redraw your other three images again when you draw the next two. I am not sure what you meant when you said "apply threads for two new images," are you drawing your images from a separate thread?

Secrets and lies

     () ()
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (50 views)
2016-04-18 14:18:53

KaiHH (48 views)
2016-04-18 08:35:41

KaiHH (78 views)
2016-04-15 12:43:58

theagentd (82 views)
2016-04-14 02:16:17

theagentd (96 views)
2016-04-14 02:15:43

IanParcs (111 views)
2016-04-12 03:51:16

IanParcs (50 views)
2016-04-12 03:50:03

IanParcs (47 views)
2016-04-12 03:49:54

IanParcs (43 views)
2016-04-12 03:49:52

IanParcs (51 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!