Hi, I'm making a project for school andI work with a lot of sub-panels and buttons, etc, the problem now is that the amount of buttons and subpanels is not a fixed amount, nor is their size. so now i'd like to know if it is possible to have a JFrame (or JPanel) choose it's size on it's own, so that everything fits innit, without 3 pixel emptieness around it or something like that.
I know i could sort of do this with functions, and check each elements size requirements, but these vary from OS to OS and from time to time, and this would thus be a very hard to figure out function.
I know i could sort of do this with functions, and check each elements size requirements, but these vary from OS to OS and from time to time, and this would thus be a very hard to figure out function.