@@ -0,0 +1,1154 @@
+package com.haxademic.core.app;%0A%0Aimport java.awt.image.BufferedImage;%0A%0Aimport processing.core.PApplet;%0Aimport processing.core.PImage;%0A%0Aimport com.apple.eawt.Application;%0A%0Apublic class AppUtil %7B%0A%09%0A%09public static void setFrameBackground(PApplet p, float r, float g, float b) %7B%0A%09%09if(p.frame != null) %7B%0A%09%09%09p.frame.setBackground(new java.awt.Color(r,g,b));%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void removeChrome(PApplet p) %7B%0A%09%09if(p.frame != null) %7B%0A%09%09%09p.frame.removeNotify();%0A%09%09%09p.frame.setUndecorated(true);%0A%09%09%09p.frame.addNotify();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void setTitle(PApplet p, String title) %7B%0A%09%09if(p.frame != null) %7B%0A%09%09%09p.frame.setTitle(title);%0A%09%09%7D%0A%09%7D%0A%0A%09public static void setAppToDockIcon(PApplet p) %7B%0A%09%09Application application = Application.getApplication();%0A%09%09application.setDockIconImage((BufferedImage)p.get().getNative());%0A%09%7D%0A%09%0A%09public static void setPImageToDockIcon(PImage img) %7B%0A%09%09Application application = Application.getApplication();%0A%09%09application.setDockIconImage((BufferedImage)img.get().getNative());%0A%09%7D%0A%09%0A%09public static void requestForeground() %7B%0A%09%09Application application = Application.getApplication();%0A%09%09application.requestForeground(true);%0A%09%7D%0A%09%0A%7D%0A

Add Application frame-related utilities