I have a Java program with JFrame
I use absolute positioning
here is my main function
public static void main(String[] args) { ape Ape = new ape(); Ape.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Ape.setSize(1000,1000); Ape.setMinimumSize(new Dimension(1000,1000)); Ape.setMaximumSize(new Dimension(1000,1000)); Ape.setVisible(true); }
When I run the program, I try to resize it and make the window smaller, but I canβt
when I try to make the window bigger it works fine. I practically miss the setMaximumSize() function
I read, and most likely it happened earlier
Is this a known mistake?
if so, I heard that I can make the Window Listener when I tried it, I implemented the functions needed by the WindowListener, but could not find anything to solve my problem.
try it yourself and see what happens ...
early
PS ... please do not laugh at the names that I give my classes ... :)
user451498
source share