File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Text in java.awt.Rectangle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Text in java.awt.Rectangle" Watch "Text in java.awt.Rectangle" New topic
Author

Text in java.awt.Rectangle

Dalibor Toth
Ranch Hand

Joined: Jul 16, 2001
Posts: 38
Is there a way I can put text in java.awt.Rectangle object?
Thanks!
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Not without overriding it to do that. Besides isn't that just a label?

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Dalibor Toth
Ranch Hand

Joined: Jul 16, 2001
Posts: 38
Could you, please, post some example?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Okay, here's the extended Rectangle -



And here's some test code -



-Nate
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text in java.awt.Rectangle