// Get the size of the screen
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
// Determine the new location of the window
int w = window.getSize().width;
int h = window.getSize().height;
int x = (dim.width-w)/2;
int y = (dim.height-h)/2;
// Move the window
window.setLocation(x, y);
Tuesday, April 19, 2011
start jFrame in the center of the screen
Monday, April 18, 2011
Integrating power of Java & Processing :-)
In the following link you can find how to import processing libraries to a Java class where you can combine the power of Java with the flexibility of Processing and make miracles ;-)
http://processing.org/learning/eclipse/
Source : Processing.org
http://processing.org/learning/eclipse/
Source : Processing.org
Subscribe to:
Comments (Atom)