[2786] in java-interest

home help back first fref pref prev next nref lref last post

Re: Moving Components

daemon@ATHENA.MIT.EDU (Sami Shaio)
Fri Oct 13 15:05:18 1995

Date: Fri, 13 Oct 1995 09:38:26 -0700
From: Sami.Shaio@Eng.Sun.COM (Sami Shaio)
To: java-interest@java.Eng.Sun.COM, sybille@egd.igd.fhg.de

The Panel has a default layout manager of FlowLayout so it's moving
the textfield so it's centered in the panel. If you don't want the
layout manager to do this then do:

	Panel.setLayout(null);

However, I should caution you that doing absolute layout in a cross-platform
environment is problematic. That textfield is going to be different sizes
possibly on different platforms.

--sami

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post