• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text in java.awt.Rectangle

 
Dalibor Toth
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way I can put text in java.awt.Rectangle object?
Thanks!
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not without overriding it to do that. Besides isn't that just a label?

-Nate
 
Dalibor Toth
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you, please, post some example?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, here's the extended Rectangle -



And here's some test code -



-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic