(Uh, one the the touted benifits of Java is that the developer can only suggest how the application will be displayed. The implied corallary is that explicit control over your creation is somehow bad or evil. Give me a break.)
The "Null" Layout Manager
setLayout(null);Then, using the component methods setSize(), setLocation(), and setBounds(), you MUST either
setLayout(null); MyLabel = new java.awt.Label(); MyLabel.setName("Label1"); MyLabel.setText("test data"); MyLabel.setBounds(x, y, width, height); add(MyLabel);The Sun references are pretty good, but the tutorials don't actually say to set the layout manager to null.
It is my opinion that using a combination of several Layout Managers will give you the best presentation.
Author: Robert Clemenzi - clemenzi@cpcug.org