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

Re: [TCLUG-DEVEL:175] Absolute positioning in Java AWT?



Quoting Perry Hoekstra (dutchman@uswest.net):
> the code would look like this:
> 
> g.drawImage(t_textField, 0, 600, Color.WHITE, this)
> 
> where t_textField is an instance of the TextField, 
> 0, 600 is the absolute position, 
> Color.WHITE is the background
> this refers to the Panel, Applet, whatever that implements ImageObserver

Oooh! This is key I was missing! I did not know you could use drawImage() and
pass it a component.

Thanks!
-- 
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