Is it possible to create a JFrame and setResizeable(true) , but the values โโof x and y will scale by the same amount, that is, you cannot increase only x or y, but both at the same time, so that it remains proportional
JFrame
setResizeable(true)
Although not ideal, you can add a ComponentListener to a JFrame by overriding specifically ComponentListener.componentResized - (since all you need is to simply extend the ComponentAdapter ).
ComponentListener.componentResized
Basic meaning:
Hope this helps
Source: https://habr.com/ru/post/1336237/More articles:When does a class of a dynamically loadable class that references non-existent classes / methods not work in Java? - javaStrength and Buffering FileChannel # - javaIs the power of FileChannel # equal to the equivalent of OutputStream # flush? Should I always call it? - javaThreads .NET threads whenever an object is located - multithreadingIs iPhone cellular data limit enforcement in third-party apps? - iphoneChanging the position of the UIView / UIControl screen when you click on it - iosPGError: ERROR: statement does not exist: boolean ~~ * unknown - postgresqlHow to center text in FPDF? - phpUsing the python logging package, how do I insert additional formatting into multiple log handlers that have their own formatting? - pythonAbout file processing in Javascript on Linux - javascriptAll Articles