• Post Reply Bookmark Topic Watch Topic
  • New Topic

Angles on components?  RSS feed

 
Hans vogn
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I was wondering if its possible to put different agles on my components in the paintComponent method?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Graphics2D#rotate()
This article contains a code which uses the same concept to get adobe style tabs
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Beware: if using transforms on Graphics objects, make sure to get a duplicate with the create() method to apply the transforms to.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!