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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -