Shape Window is not working in Processing 2
in
Programming Questions
•
2 months ago
Shape window is not working in " Processing 2"
- import java.awt.*;
- import com.sun.awt.AWTUtilities;
- import java.awt.GraphicsDevice.*; // PC only
- import java.awt.Shape;
- import java.awt.AWTException;
- import java.awt.geom.*;
- int d = 500;
- void setup() {
- size(d,d);
- background(255);
- Shape shape = null;
- frame.removeNotify();
- frame.setUndecorated(true);
- shape = new Ellipse2D.Float(0,0,d,d);
- AWTUtilities.setWindowShape(frame, shape);
- }
- void draw() {}
Error:
No library found for com.sun.awt
java.lang.NullPointerException
at processing.core.PApplet.handleDraw(PApplet.java:2301)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2141)
at java.lang.Thread.run(Thread.java:662)
Any help ?
1