java - How to fix a JFrame to a specific position? -



java - How to fix a JFrame to a specific position? -

how can set jframe specific psotion on screen? i've managed prepare size. want @ standard location on screen , not moved user.

you can fixate follows:

frame.setresizable(false); frame.setundecorated(true);

or better: adding component listener:

frame.addcomponentlistener( new componentlistener() { public void componentresized( componentevent e ) {} public void componentmoved( componentevent e ) { setlocation( fix_x, fix_y ); } public void componentshown( componentevent e ) {} public void componenthidden( componentevent e ) {} } );

java user-interface jframe

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -