Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 3D / adding thread on: 2008-07-04 02:30:50
just see the above image one icon is fixed and other icon using a new thread sliding from top to bottom i am not getting the idea how to place the thread could u help me


import java.util.*;
import java.awt.*;
import javax.swing.*;
class load extends JFrame
Image r;
Image b;
 int y=329;
int floor=329;               
           int x=3;

super("some name");
r=new ImageIcon("red.png").getImage();
ye=new ImageIcon("yellow.png").getImage();

getContentPane().add(new display());

class display extends JPanel implements Runnable
Thread t=new Thread(this);

 public void paintComponent(Graphics q)
Graphics2D n=(Graphics2D)q;
i just want to place the red image fixed at the bottom
and start new yellow image thread i,e
catch(Exception e)
class f
public static void main(String args[])
new load();
2  Java Game APIs & Engines / Java 2D / paint on: 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
Pages: [1]
numerical (363 views)
2017-02-21 07:32:16

numerical (365 views)
2017-02-21 07:31:46

theagentd (475 views)
2017-02-18 13:42:33

theagentd (473 views)
2017-02-18 13:35:16

h.pernpeintner (1639 views)
2017-01-24 22:39:11

h.pernpeintner (1627 views)
2017-01-24 22:38:32

Galdo (2195 views)
2017-01-12 13:44:09

Archive (2154 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2694 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2355 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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!