Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Container constraints question

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

like image 615
llm Avatar asked Apr 26 '10 17:04

llm


1 Answers

Look at the tutorials for LayoutManagers! The examples will show you which constraints are used with which layouts, and how.

like image 156
Carl Smotricz Avatar answered Sep 22 '22 18:09

Carl Smotricz