Im Starting to move from text-based programs to graphics using GUI's, I've been watching some course to familiarize myself with the basics. Tutorial:
. So on any GUI I would see buttons, menus, progress bars, etc placed at specific locations. My Question is, is it best to set bounds for each component or to use several panels as containers for different parts. If bounds is the best way to go, are there any simple online softwares to help get the size/location of components(EX: Telling whatever software the screen size, drawing different boxes onto it and receiving bounds of each part as drawn). If Panels are better, should i be using several panels to organize each components/group of components or is there a better Layout Manager to assist with that?
Setting the bounds for everything is a bit brittle. Think about how you'd expect the GUI to behave if the window is resized. Layout managers are more resilient in this regard. And then there's GridBagLayout which is in a class by itself (see how I made a pun there?). It is very powerful but difficult to get your head around. Many people use a utility library called GBC (Grid Bag Constraint) to make the coding more manageable.