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
Post a Comment