ICM_Faking multi-window display mode! (update)
Category: Blog, ICM_ProcessingTags: dumb. final. nerd. ohyay.
(Update_11/25)
Find the way to move menu-hidden sketch window!
import java.awt.MouseInfo; // do whatever you want int mX; int mY; void mousePressed() { mX = mouseX; mY = mouseY; } void mouseDragged() { frame.setLocation( MouseInfo.getPointerInfo().getLocation().x-mX, MouseInfo.getPointerInfo().getLocation().y-mY); }
reference from here.
————————————————————————————-
Found the Plan-Z to present my Glitchtchtchitch final– make my desktop all black and hide the title bar of all my sketches!!! It’s a dumb way I know… but at least it works!
codes for Processing
public void init(){ frame.removeNotify(); frame.setUndecorated(true); frame.addNotify(); super.init(); }
The only drawback is… I can’t move the sketch window after doing this! Which means I should run my sketches twice for each one, first time comment the magic codes out and adjust the location, then close it and bring the magic codes back, and then run it again…
Viva la vie.
Leave a Reply