Question

I want button in vertically, for that i can extend the height and shrink the width of that button. But the text of the lable of buttons are in the form of horizontal only. For that can i rotate the whole button vertically and is it possible?

Was it helpful?

Solution

Rotated Icon shows how the text and icon can be rotated on the button (or any component that uses icons.

OTHER TIPS

The easiest way to do this would be to pre-rotate the labels and just have it as an image on the button.

You might also want to take a look at this solution given in sun's forum for rotating a JButton.

You should be able to do this with scene graph: https://scenegraph.dev.java.net/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top