{"id":422,"date":"2013-11-23T12:15:57","date_gmt":"2013-11-23T16:15:57","guid":{"rendered":"http:\/\/www.jhclaura.com\/?p=422"},"modified":"2015-11-20T17:16:49","modified_gmt":"2015-11-20T22:16:49","slug":"icm_faking-multi-window-display-mode","status":"publish","type":"post","link":"http:\/\/www.jhclaura.com\/icm_faking-multi-window-display-mode\/","title":{"rendered":"ICM_Faking multi-window display mode! (update)"},"content":{"rendered":"
\"black<\/a><\/p>\n

black desktop!<\/p>\n<\/div>\n

(Update_11\/25)<\/p>\n

Find the way to move menu-hidden sketch window!<\/p>\n

import java.awt.MouseInfo;\r\n\r\n\/\/ do whatever you want\r\n\r\nint mX;\r\nint mY;\r\n\r\nvoid mousePressed() {\r\n  mX = mouseX;\r\n  mY = mouseY;\r\n}\r\n\r\nvoid mouseDragged() {\r\n  frame.setLocation(\r\n  MouseInfo.getPointerInfo().getLocation().x-mX,\r\n  MouseInfo.getPointerInfo().getLocation().y-mY);\r\n}<\/pre>\n

reference from here<\/a>.<\/p>\n

————————————————————————————-<\/p>\n

Found the Plan-Z to present my Glitchtchtchitch final– make my desktop all black and \u00a0hide the title bar of all my sketches!!! It’s a dumb way I know… but at least it works!<\/p>\n

codes for Processing<\/p>\n

public void init(){\r\n  frame.removeNotify();\r\n  frame.setUndecorated(true);\r\n  frame.addNotify();\r\n  super.init();\r\n}<\/pre>\n

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…<\/p>\n

Viva la vie.<\/em><\/p>\n

resources: 1<\/span><\/a>, 2<\/span><\/a>, 3<\/span><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

(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; }… Read The Rest →<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[127,2],"tags":[86,79,85,30],"_links":{"self":[{"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/posts\/422"}],"collection":[{"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":5,"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":436,"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/posts\/422\/revisions\/436"}],"wp:attachment":[{"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jhclaura.com\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}