TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Absolute positioning in Java AWT?



Does AWT allow for absolute positioning?

I have a basic graphic and I want to put a TextField in the upper-right corner
of the graphic.

No matter what I do I cannot force the TextField into the upper-right corner. 

I am using g.drawImage() to paint the graphic onto the component. I then try
to add the TextField, but it always centers it no matter what Layout I use.

This took me 5 minutes to do in X. I see why people complained about Java's
GUI.
-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9