Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphics Question

Status
Not open for further replies.

heather473

Technical User
Dec 2, 2000
8
0
0
US
I'm trying to make a class that will be imported by a program. In this class, I am drawing ovals to put peoples names in them around a rectangle(like a dinner table) but I can't figure out how to be able to write the names in the ovals. Could some one please tell me the formal for writing the names. Thanks
 
Hope this helps



public void paint(Graphics g) {
g.drawString("theName",100, 40);
}

where 100 is the x location and 40 is the y location
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top