Page 1 of 2 12 LastLast
Results 1 to 20 of 21
Like Tree1Likes

Thread: Processing will draw something for a second then disappear

  1. #1
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Red face Processing will draw something for a second then disappear

    SNOWMAN=
    Java Code:
    package christmasGame;
    
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    
    import christmasGame.SceneControl;
    import processing.core.*;
    import processing.core.PApplet;
    
    public class SNOWMAN extends Scene {
    	public SNOWMAN() {
    		super(g);
    	}
    
    	public Random random = new Random();
    	public boolean aPressed = false;
    	public boolean dPressed = false;
    	public boolean wPressed = false;
    	public boolean sPressed = false;
    	public boolean mPressed = false;
    	public int snowmanX = 200;
    	public int snowmanY = 110;
    	public int money = 1000;
    	public float sunX = 0;
    	public List<Point.Float> snow = new ArrayList<Point.Float>();
    
    	public void setup() {
    		g.size(500, 600);
    		for (int i = 0; i < 100; i++) {
    			snow.add(new Point.Float(random.nextFloat(), random.nextFloat()));
    
    		}
    	}
    
    	public void draw() {
    		g.background(135, 206, 250);
    		g.fill(243);
    		g.rect(-40, 675, 1650, 200);
    		g.noFill();
    		sunX += 1;
    		snow();
    		sun();
    		g.text(money, 1525, 20);
    		if (g.key == '1') {
    			if (money >= 100) {
    				g.currentScene = 0;
    				//money = money - 100;
    				g.fill(165, 42, 42);
    				g.rect(325, 275, 20, 400);
    				g.noFill();
    			}
    		}
    		snowman();
    
    	}
    
    	public void snowman() {
    		// creating
    		if (aPressed && snowmanX > 128) {
    			snowmanX -= 4.112;
    		}
    		if (dPressed && snowmanX < 1472) {
    			snowmanX += 5.112;
    		}
    
    		if (wPressed && snowmanY > 80) {
    			snowmanY -= 5.112;
    		}
    
    		if (sPressed && snowmanY < 490) {
    			snowmanY += 5.112;
    		}
    
    		// body
    		g.fill(255);
    		g.strokeWeight(1);
    		g.stroke(1);
    		g.ellipse(snowmanX, snowmanY + 224, 150, 150);
    		g.ellipse(snowmanX, snowmanY + 100, 100, 100);
    		g.ellipse(snowmanX, snowmanY + 12, 75, 75);
    		// mouth
    		g.ellipse(snowmanX, snowmanY + 32, 30, 20);
    		g.noFill();
    		g.noStroke();
    		g.fill(255);
    		g.rect(snowmanX - 15, snowmanY + 22, 32, 14);
    		g.stroke(1);
    		// outer eye
    		g.ellipse(snowmanX - 15, snowmanY, 10, 10);
    		g.ellipse(snowmanX + 15, snowmanY, 10, 10);
    		g.fill(255, 119, 0);
    		// nose
    		g.triangle(snowmanX - 5, snowmanY + 8, snowmanX + 5, snowmanY + 8,
    				snowmanX, snowmanY + 22);
    		// inner eye
    		g.ellipse(snowmanX - 15, snowmanY, 1, 1);
    		g.ellipse(snowmanX + 15, snowmanY, 1, 1);
    		// arms
    		g.line(snowmanX - 50, snowmanY + 100, snowmanX - 125, snowmanY + 15);
    		g.line(snowmanX + 50, snowmanY + 100, snowmanX + 125, snowmanY + 15);
    		// left
    		g.line(snowmanX - 110, snowmanY + 30, snowmanX - 110, snowmanY + 10);
    		g.line(snowmanX - 110, snowmanY + 30, snowmanX - 125, snowmanY + 40);
    		// right
    		g.line(snowmanX + 110, snowmanY + 30, snowmanX + 110, snowmanY + 10);
    		g.line(snowmanX + 110, snowmanY + 30, snowmanX + 125, snowmanY + 40);
    		// buttons
    		g.fill(0);
    		g.ellipse(snowmanX, snowmanY + 130, 10, 10);
    		g.ellipse(snowmanX, snowmanY + 100, 10, 10);
    		g.ellipse(snowmanX, snowmanY + 70, 10, 10);
    		// hat
    		g.rect(snowmanX - 20, snowmanY - 75, 40, 60);
    		g.strokeWeight(8);
    		g.line(snowmanX - 40, snowmanY - 18, snowmanX + 40, snowmanY - 18);
    		g.strokeWeight(1);
    	}
    
    	public void keyPressed() {
    		if (g.key == 'a') {
    			aPressed = true;
    			if (aPressed && snowmanX > 128) {
    				snowmanX--;
    			}
    		}
    		if (g.key == 'd') {
    			dPressed = true;
    			if (aPressed && snowmanX < 1473) {
    				snowmanX++;
    			}
    		}
    
    		if (g.key == 'w') {
    			wPressed = true;
    			if (wPressed && snowmanY > 80) {
    				snowmanY++;
    			}
    		}
    		if (g.key == 's') {
    			sPressed = true;
    			if (sPressed && snowmanY < 490) {
    				snowmanY--;
    			}
    		}
    		if (g.key == 'm') {
    			mPressed = true;
    			g.currentScene = 1;
    		}
    
    	}
    
    	public void keyReleased() {
    		if (g.key == 'a') {
    			aPressed = false;
    		}
    
    		if (g.key == 'd') {
    			dPressed = false;
    		}
    		if (g.key == 'w') {
    			wPressed = false;
    		}
    
    		if (g.key == 's') {
    			sPressed = false;
    		}
    		if (g.key == 'm') {
    			mPressed = false;
    			g.currentScene = 0;
    		}
    	}
    
    	public void sun() {
    		g.fill(255, 255, 51);
    		g.ellipse(0, 0, 300, 300);
    		g.fill(255, 255, 255);
    
    		g.stroke(255, 255, 51);
    		g.strokeWeight(8);
    
    		g.pushMatrix();
    		g.rotate((float) (g.millis() / 2500.0));
    		for (int i = 0; i < 20; i++) {
    			g.line(175, 0, 250, 0);
    			g.rotate((float) (Math.PI / 10));
    		}
    		g.popMatrix();
    		g.stroke(0, 0, 0);
    		g.strokeWeight(1);
    	}
    
    	public void snow() {
    		g.fill(255, 255, 255);
    		g.noStroke();
    		// Loops the clouds randomly
    		for (Point.Float p : snow) {
    			g.ellipse(p.x * g.getWidth(), p.y * g.getHeight(), 10, 10);
    
    			p.y += 0.003;
    
    			if (p.y > 1) {
    				p.y = 0;
    			}
    		}
    	}
    }
    Scene=
    Java Code:
    package christmasGame;
    
    public class Scene {
    
    	static SceneControl g;
    
    	public Scene(SceneControl g) {
    		this.g = g;
    	}
    
    	public void setup() {
    
    	}
    
    	public void draw() {
    
    	}
    
    	public void keyPressed() {
    
    	}
    
    	public void keyReleased() {
    
    	}
    }
    SceneControl=
    Java Code:
    package christmasGame;
    
    import processing.core.PApplet;
    
    public class SceneControl extends PApplet {
    	Scene sNOWMAN = new SNOWMAN(); // 0
    	Scene store = new Store(this); // 1
    
    	int currentScene = 0;
    
    	public void setup() {
    		sNOWMAN.setup();
    		store.setup();
    
    		frame.setResizable(true);
    	}
    
    	public void draw() {
    		switch (currentScene) {
    		case 0:
    			sNOWMAN.draw();
    			break;
    		case 1:
    			store.draw();
    			break;
    		}
    	}
    
    	public void keyPressed() {
    		switch (currentScene) {
    		case 0:
    			sNOWMAN.keyPressed();
    			break;
    		case 1:
    			store.keyPressed();
    			break;
    		}
    	}
    
    	public void keyReleased() {
    		switch (currentScene) {
    		case 0:
    			sNOWMAN.keyReleased();
    			break;
    		case 1:
    			store.keyReleased();
    			break;
    		}
    	}
    
    	public static void main(String _args[]) {
    		PApplet.main(new String[] { christmasGame.SceneControl.class.getName() });
    	}
    
    }
    Store=
    Java Code:
    package christmasGame;
    
    import processing.core.PApplet;
    
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import java.util.List;
    
    public class Store extends Scene {
    
    	public Store(SceneControl g) {
    		super(g);
    	}
    
    	public void setup() {
    
    	}
    
    	public void draw() {
    		g.background(23,36,255);
    		g.textSize(64);
    		g.textAlign(g.CENTER);
    		g.text("Welcome To The Shop", g.getWidth() / 2, 100);
    		g.textSize(36);
    		g.text("Build A Sniper Tower."
    				+ "\n$100.  Press 1.",250,250);
    		g.textSize(1);
    	}
    
    	public void keyPressed() {
    		if (g.key == 'm') {
    			g.currentScene = 1;
    		}
    		
    	}
    
    	public void keyReleased() {
    		if (g.key == 'm') {
    			g.currentScene = 0;
    		}
    	}
    
    }
    everytime i draw the rect it disappears.
    Last edited by Andrew6110; 12-24-2015 at 01:13 AM.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by Andrew6110 View Post
    Everytime i press 1 (to draw the rect), it will appear and then be gone in a second
    Please post a short compilable example that demonstrates the problem. You didn't give us much to go on with your code snippet.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by jim829 View Post
    Please post a short compilable example that demonstrates the problem. You didn't give us much to go on with your code snippet.

    Regards,
    Jim
    NOTE: Scene=0 is game, Scene=1 is shop
    in my program, i want it be if you go to the store (holding "m") you can buy things there like a sniper tower for $100. you will acquire currency over time. at the start of the game, i gave myself $1000 to work with and when i go to the shop to buy it, it will draw it on scene 0 for a second and then disappear. also all of my money will go to 0. i dont know why this happens. please help. thanks a lot

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Processing will draw something for a second then disappear

    i dont know why this happens.
    Are there statements in the code that will cause that to happen? See line 14.
    Are those statements being executed? Add a print statement next to line 14 to show when it is executed.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    6

    Default Re: Processing will draw something for a second then disappear

    since the code snippet is rather small and does not compile, it is all guess work: What is the noFill() method doing line 20?

  6. #6
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Red face Re: Processing will draw something for a second then disappear

    Quote Originally Posted by Norm View Post
    Are there statements in the code that will cause that to happen? See line 14.
    Are those statements being executed? Add a print statement next to line 14 to show when it is executed.
    i took that statement out for a minute and the pole stayed there, but when i moved the snowman, it disappears again. i can keep pressing 1 and it will show but when i move the snowman it is then gone. I would like it to be if you pressed 1, you would lose $100 (that's how much it would cost) and the pole would stay there forever

  7. #7
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by benji2505 View Post
    since the code snippet is rather small and does not compile, it is all guess work: What is the noFill() method doing line 20?
    that is because when i put fill to the rgb, it made a couple things brown that i did not want :)

  8. #8
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by Andrew6110 View Post
    that is because when i put fill to the rgb, it made a couple things brown that i did not want :)
    Did you see my first post yesterday? Please provide a short complete compilable program that demonstrates the problem.
    At this point, all we can do is guess.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  9. #9
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by jim829 View Post
    Did you see my first post yesterday? Please provide a short complete compilable program that demonstrates the problem.
    At this point, all we can do is guess.

    Regards,
    Jim
    how would you like me to do that?

  10. #10
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Processing will draw something for a second then disappear

    You have already described the problem which you are having. So remove any non-essential baggage from your program and paste in the code.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  11. #11
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by jim829 View Post
    You have already described the problem which you are having. So remove any non-essential baggage from your program and paste in the code.

    Regards,
    Jim
    i just did that :]

  12. #12
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by Andrew6110 View Post
    i just did that :]
    Where? The only code I see was edited a few minutes ago. Where is the class statement? Where is the static main method? Where is your graphics context? I should be able to copy the program, compile it error free and run it to see the problem.

    Regards,
    Jim
    Last edited by jim829; 12-24-2015 at 12:05 AM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  13. #13
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by jim829 View Post
    Where? The only code I see was edited a few minutes ago. Where is the class statement? Where is the static main method? Where is your graphics context? I should be able to copy the program, compile it error free and run it to see the problem.

    Regards,
    Jim
    I just did it;]

  14. #14
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Processing will draw something for a second then disappear

    The code needs the PApplet class's definition to compile.
    What was posted is definitely not a:a short complete compilable program that demonstrates the problem.

    There are also other problems with the code that will keep it from compiling so it can be tested.

    Please try to make a short complete compilable program that demonstrates the problem.
    Last edited by Norm; 12-24-2015 at 01:47 AM.
    If you don't understand my response, don't ignore it, ask a question.

  15. #15
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Processing will draw something for a second then disappear

    Unfortunately you left out a significant piece of information in your original post. You are using Processing which is supposed to be a learning environment for programming in Java (where a lot of stuff is done behind the scenes). I do not have any experience in that software so I can't help you. Others on this forum may have a working knowledge of it but you will have to wait until one of them sees your post.

    Note, mentioning Processing in the title didn't help because it wasn't clear you were talking about a programming environment. Also, don't keep going back and editing your old posts with code. Some folks may miss that because they simply read the new posts.

    Regards,
    Jim
    Norm likes this.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  16. #16
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Red face Re: Processing will draw something for a second then disappear

    Quote Originally Posted by Norm View Post
    The code needs the PApplet class's definition to compile.
    What was posted is definitely not a:a short complete compilable program that demonstrates the problem.

    There are also other problems with the code that will keep it from compiling so it can be tested.

    Please try to make a short complete compilable program that demonstrates the problem.
    Java Code:
    package christmasGame;
    
    
    	import java.awt.Point;
    	import java.awt.Rectangle;
    	import java.util.ArrayList;
    	import java.util.List;
    	import java.util.Random;
    
    	import processing.core.*;
    
    	public class TEST extends Scene{
    		public TEST() {
    			super(g);
    		}
    
    		public Random random = new Random();
    		public boolean aPressed = false;
    		public boolean dPressed = false;
    		public boolean wPressed = false;
    		public boolean sPressed = false;
    		public boolean mPressed = false;
    		public int snowmanX = 200;
    		public int snowmanY = 110;
    		public int money = 1000;
    
    		public void setup() {
    			g.size(500, 600);
    			}
    		
    
    		public void draw() {
    			g.background(135, 206, 250);
    			g.fill(243);
    			g.rect(-40, 675, 1650, 200);
    			g.noFill();
    			g.text(money, 1525, 20);
    			if (g.key == '1') {
    				if (money >= 100) {
    					g.currentScene = 0;
    					//money = money - 100;
    					g.fill(165, 42, 42);
    					g.rect(325, 275, 20, 400);
    					g.noFill();
    				}
    			}
    			snowman();
    
    		}
    
    		public void snowman() {
    			// creating
    			if (aPressed && snowmanX > 128) {
    				snowmanX -= 4.112;
    			}
    			if (dPressed && snowmanX < 1472) {
    				snowmanX += 5.112;
    			}
    
    			if (wPressed && snowmanY > 80) {
    				snowmanY -= 5.112;
    			}
    
    			if (sPressed && snowmanY < 490) {
    				snowmanY += 5.112;
    			}
    
    			// body
    			g.fill(255);
    			g.strokeWeight(1);
    			g.stroke(1);
    			g.ellipse(snowmanX, snowmanY + 224, 150, 150);
    			g.ellipse(snowmanX, snowmanY + 100, 100, 100);
    			g.ellipse(snowmanX, snowmanY + 12, 75, 75);
    			// mouth
    			g.ellipse(snowmanX, snowmanY + 32, 30, 20);
    			g.noFill();
    			g.noStroke();
    			g.fill(255);
    			g.rect(snowmanX - 15, snowmanY + 22, 32, 14);
    			g.stroke(1);
    			// outer eye
    			g.ellipse(snowmanX - 15, snowmanY, 10, 10);
    			g.ellipse(snowmanX + 15, snowmanY, 10, 10);
    			g.fill(255, 119, 0);
    			// nose
    			g.triangle(snowmanX - 5, snowmanY + 8, snowmanX + 5, snowmanY + 8,
    					snowmanX, snowmanY + 22);
    			// inner eye
    			g.ellipse(snowmanX - 15, snowmanY, 1, 1);
    			g.ellipse(snowmanX + 15, snowmanY, 1, 1);
    			// arms
    			g.line(snowmanX - 50, snowmanY + 100, snowmanX - 125, snowmanY + 15);
    			g.line(snowmanX + 50, snowmanY + 100, snowmanX + 125, snowmanY + 15);
    			// left
    			g.line(snowmanX - 110, snowmanY + 30, snowmanX - 110, snowmanY + 10);
    			g.line(snowmanX - 110, snowmanY + 30, snowmanX - 125, snowmanY + 40);
    			// right
    			g.line(snowmanX + 110, snowmanY + 30, snowmanX + 110, snowmanY + 10);
    			g.line(snowmanX + 110, snowmanY + 30, snowmanX + 125, snowmanY + 40);
    			// buttons
    			g.fill(0);
    			g.ellipse(snowmanX, snowmanY + 130, 10, 10);
    			g.ellipse(snowmanX, snowmanY + 100, 10, 10);
    			g.ellipse(snowmanX, snowmanY + 70, 10, 10);
    			// hat
    			g.rect(snowmanX - 20, snowmanY - 75, 40, 60);
    			g.strokeWeight(8);
    			g.line(snowmanX - 40, snowmanY - 18, snowmanX + 40, snowmanY - 18);
    			g.strokeWeight(1);
    		}
    
    		public void keyPressed() {
    			if (g.key == 'a') {
    				aPressed = true;
    				if (aPressed && snowmanX > 128) {
    					snowmanX--;
    				}
    			}
    			if (g.key == 'd') {
    				dPressed = true;
    				if (aPressed && snowmanX < 1473) {
    					snowmanX++;
    				}
    			}
    
    			if (g.key == 'w') {
    				wPressed = true;
    				if (wPressed && snowmanY > 80) {
    					snowmanY++;
    				}
    			}
    			if (g.key == 's') {
    				sPressed = true;
    				if (sPressed && snowmanY < 490) {
    					snowmanY--;
    				}
    			}
    
    		}
    
    		public void keyReleased() {
    			if (g.key == 'a') {
    				aPressed = false;
    			}
    
    			if (g.key == 'd') {
    				dPressed = false;
    			}
    			if (g.key == 'w') {
    				wPressed = false;
    			}
    
    			if (g.key == 's') {
    				sPressed = false;
    			}
    		}
    	}

    Scene=
    Java Code:
    package christmasGame;
    
    public class Scene {
    
    	static SceneControl g;
    
    	public Scene(SceneControl g) {
    		this.g = g;
    	}
    
    	public void setup() {
    
    	}
    
    	public void draw() {
    
    	}
    
    	public void keyPressed() {
    
    	}
    
    	public void keyReleased() {
    
    	}
    }


    SceneControl=
    Java Code:
    package christmasGame;
    
    import processing.core.PApplet;
    
    public class SceneControl extends PApplet {
    	Scene sNOWMAN = new SNOWMAN(); // 0
    	Scene store = new Store(this); // 1
    
    	int currentScene = 0;
    
    	public void setup() {
    		sNOWMAN.setup();
    		store.setup();
    
    		frame.setResizable(true);
    	}
    
    	public void draw() {
    		switch (currentScene) {
    		case 0:
    			sNOWMAN.draw();
    			break;
    		case 1:
    			store.draw();
    			break;
    		}
    	}
    
    	public void keyPressed() {
    		switch (currentScene) {
    		case 0:
    			sNOWMAN.keyPressed();
    			break;
    		case 1:
    			store.keyPressed();
    			break;
    		}
    	}
    
    	public void keyReleased() {
    		switch (currentScene) {
    		case 0:
    			sNOWMAN.keyReleased();
    			break;
    		case 1:
    			store.keyReleased();
    			break;
    		}
    	}
    
    	public static void main(String _args[]) {
    		PApplet.main(new String[] { christmasGame.SceneControl.class.getName() });
    	}
    }
    is this ok? because i need the snowman in there so that when he moves the rect does not disappear. if this is not okay please tell me what i should remove for you. thanks so much ;)
    sorry for the hastle btw
    Last edited by Andrew6110; 12-24-2015 at 06:16 AM.

  17. #17
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Processing will draw something for a second then disappear

    You need to ask your questions on a site for Processing. As Jim said, It is not standard Java.
    Last edited by Norm; 12-24-2015 at 01:38 PM.
    If you don't understand my response, don't ignore it, ask a question.

  18. #18
    Andrew6110 is offline Member
    Join Date
    Dec 2015
    Posts
    10
    Rep Power
    0

    Default Re: Processing will draw something for a second then disappear

    Quote Originally Posted by Norm View Post
    You need to ask your questions on a site for Processing. As Jim said, It is not standard Java.
    ok thank you very much for trying. do you know any websites that i could go to.

  19. #19
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Processing will draw something for a second then disappear

    If you were to convert the program to use Swing classes, you'd be able to get help on this site.
    If you don't understand my response, don't ignore it, ask a question.

  20. #20
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Processing will draw something for a second then disappear

    Check out https://processing.org/. I believe there is a forum link there plus other resources which may be of use.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Page 1 of 2 12 LastLast

Similar Threads

  1. Classes disappear from packages
    By McKracken in forum Eclipse
    Replies: 1
    Last Post: 08-26-2014, 11:22 AM
  2. Replies: 4
    Last Post: 03-18-2013, 04:51 PM
  3. JButton doesn't disappear when it is supposed to?
    By ecliptical in forum New To Java
    Replies: 4
    Last Post: 01-25-2010, 12:41 AM
  4. Drawing disappear!!!!
    By gan5016 in forum Java 2D
    Replies: 7
    Last Post: 09-26-2009, 02:58 AM
  5. How to make a JButton disappear?
    By diab01ical in forum New To Java
    Replies: 2
    Last Post: 06-04-2008, 02:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •