I am using the following:
java.awt.Container.add(Component comp, Object constraints)
How do I specificy the constraints object? I need to be able to place a component within the container.
Oh and my class extends JInternalFrame
if this helps...
I need to specify coordinates to place the component within the container
Look at the tutorials for LayoutManagers! The examples will show you which constraints are used with which layouts, and how.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With