02-17-2009 03:02 PM
I was wondering what's the esiest way to display text on a sceen in a certain spot. For example I would like to disaply the word "Go" in the location (150, 200).
Is it possible to set the location of a textfield using coordinates?
Solved! Go to Solution.
02-17-2009 03:59 PM
I don't believe there's an "Absolute" layout manager. Did you consider over-riding paint(Graphics g). Calling super.paint(g) to do the real work. Then g.drawText("go", 150, 20)? Of course you need to g.setFont() and g.setColor() and do some math to get the text where you really want it.
02-18-2009 05:28 AM
04-11-2009 08:46 PM
04-15-2009 01:30 AM
I think you can use drawText() with takes anchor point as its parameter.