I am making a game in java, but when I run the Frames I get a small window and I hit maximize and it maximizes me, but the idea is that it comes out at once of the size it is, I edit the Frame properties and I maximize the size and it doesn't give me, is there any other way?
I use the Frames with Layout null to put the images and from there it gives the error... Thanks if someone knows how to maximize the frame I would appreciate it very much
If you want to give it a fixed size and not be able to maximize or minimize the frame, you must define it like this in the constructor of your frame:
If you want to put your frame so that it occupies the entire screen and not be able to redefine the size, put this in the constructor:
In order for the frame to be shown maximized when viewed, you have to define it in the following way: