swing

I'm trying to create an applet using Swing. My problem is when you use a layout manager it places components in a certain place. I have always been able to use setLocation in paint using AWT to achieve the exact position that I need. This does not seem to work using Swing, is there another way?

[303 byte] By [jkohtz] at [2007-9-27 18:25:01]
# 1
You don't need to use a layout manager, itcan be null. The drawback is that your componentswill not resize as desired, but we all know howresizings (don't) work in various browsers...
vesely99 at 2007-7-6 19:01:23 > top of Java-index,Archived Forums,Swing...
# 2
At what point do you set it to null?
jkohtz at 2007-7-6 19:01:23 > top of Java-index,Archived Forums,Swing...
# 3

What you want is Absolute Positioning. See the Swing tutorial on "Using Layout Managers" for information on this and other Layout Managers:

http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html

By the way, using Layout Managers is much easier to use then using Absolute Position, but you do have to spend a little time understanding how Layout Managers work.

camickr at 2007-7-6 19:01:23 > top of Java-index,Archived Forums,Swing...
# 4
You should listen to camickr and invest the time in getting to know the layout managers.
RiGe at 2007-7-6 19:01:23 > top of Java-index,Archived Forums,Swing...