What happens when you resize your container? What happens if you want to add or remove a component? What happens if you want to switch the orientation of your container? The layout managers are there...
Type: Posts; User: KevinWorkman
What happens when you resize your container? What happens if you want to add or remove a component? What happens if you want to switch the orientation of your container? The layout managers are there...
Using a null layout is a bad programming practice.
Please, for the love of Gosling, use a layout: Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing)