I'm writing a program and I'm currently using this code to have two windows:
import javax.swing.JFrame;
PFrame f;
secondApplet s;
void setup() {
size(320, 240);
PFrame f = new PFrame();
}
void draw() {
background(255,0,0);
fill(255);
rect(10,10,frameCount%100,10);
s.background(0, 0, 255);
s.fill(100);
s.rect(10,20,frameCount%120,10);
s.redraw();
}
public class PFrame extends JFrame {
public PFrame() {
setBounds(100,100,400,300);
s = new secondApplet();
add(s);
s.init();
show();
}
}
public class secondApplet extends PApplet {
public void setup() {
// size(400, 300);
// noLoop();
}
public void draw() {
}
}
Unfortunately, I want both windows to run in full-screen mode, on two separate monitors. I can run it in Presentation mode, and move the other window to the other screen and maximise it, but it still has the border. How can I get this to work?