Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Angles on components?

 
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
Saloon Keeper
Posts: 11027
12
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
Pie
Posts: 48940
60
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic