File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes AWT Rectangle(URGENT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "AWT Rectangle(URGENT)" Watch "AWT Rectangle(URGENT)" New topic

AWT Rectangle(URGENT)

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
How to add string and display string in rectangle?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

I don't really understand what you are asking... could you post more details...

Do you need it on a GUI? Make a modified Label...

Do you need to draw it in a Graphics context? Draw the string after you draw the Rectangle...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: AWT Rectangle(URGENT)
It's not a secret anymore!