swing - Java - Get difference between old and new size of JFrame -


after resizing @ jframe, there method returns difference between old , new size, i.e (dx,dy) ?

if not, there way info?

(dx,dy) - image

you need know size before frame resized, use componentlistener detect when frame's size changed. trick here knowning when "size" has changed fixed point taking measure worthwhile. once frame has "settled" need calculate difference "last resize" now

start having @ how write component listener

conceptually, want something this or this


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Java JSoup error fetching URL -

webstorm - PhpStorm file cache conflict with TypeScript compiler -