Can I rotate a button or shortcut vertically in java?

I want a button vertically, as I can increase the height and decrease the width of this button. But the button text can only be horizontal. To do this, I can rotate the entire button vertically and is it possible?

+4
source share
3 answers

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

+3
source

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

You can also take a look at this solution given in the sun forum for rotating JButton .

+1
source

You can do this using the scene graph: https://scenegraph.dev.java.net/

0
source

Source: https://habr.com/ru/post/1303999/


All Articles