Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 3016 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

« 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  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (27 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (210 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (779 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!