I cannot find anything on setBounds, what it is for, or what its function actually is. Could someone clear me up on this? Thanks so much!
You can use setBounds(x, y, width, height)
to specify the position and size of a GUI component if you set the layout
to null
. Then (x, y)
is the coordinate of the upper-left corner of that component.