This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Angles on components? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Angles on components?" Watch "Angles on components?" New topic
Author

Angles on components?

Hans vogn
Ranch Hand

Joined: Feb 04, 2009
Posts: 46
Hi

I was wondering if its possible to put different agles on my components in the paintComponent method?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Check out Graphics2D#rotate()
This article contains a code which uses the same concept to get adobe style tabs


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36465
    
  15
Beware: if using transforms on Graphics objects, make sure to get a duplicate with the create() method to apply the transforms to.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Angles on components?
 
Similar Threads
Regarding J2EE
Exam Topics
Which part of Java is sexy for you?
LightWightComponents
Swing Components