Hi! I'm learning how to make a GUI in Java.
I'm wondering how to add a JThingy (JLabel, etc) without the use of the add(NameOfJThingy);
Because add(); isn't static, you can't use it in a static function (like main, which must be static).
I've seen that the constructor can help, but I don't want to make a new class so often. Is there another way to add something to GUIs?