hi programmers out there! :d
i want create jframe
without borders , size buttons. example frame of steam-program pc. searched , found jwindow
, setundecorated
method jframe
.
when use 1 of these options window without borders, can't resize it. there easy way keep feature, "snap-feature"? mean valve managed solve problem somehow :)
this question describes want, there 1 answer , it's not helpful...
check out resizing components. general purpose class allows resize component. provide appropriate cursor mouse around edge of frame.
basic usage frame be:
jframe frame = new jframe("sscce"); frame.setundecorated( true ); componentresizer cr = new componentresizer(); cr.registercomponent(frame);
of course need make sure frame has blank border around edges mouseevents passed frame , not component added frame.
Comments
Post a Comment