Absolute positioning
It is also possible to set the absolute position of the graphical components in this way:
- Set a null layout manager for your
Container: setLayout(null).
- Call setBounds( ) or reshape( ) (depending on the
language version) for each component, passing a bounding rectangle in pixel
coordinates. You can do this in the constructor or in paint( ),
depending on what you want to achieve.