Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabbedPane: support rotated/vertical tabs #758

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

DevCharly
Copy link
Collaborator

This PR brings rotated/vertical tabs to TabbedPane.

image image

image

There is a new UI property that controls rotation for all tabbed panes in application:

# allowed values: none, auto, left or right
TabbedPane.tabRotation = none
  • none does not rotate (the default)
  • auto rotates left if tab placement is left, rotates right if tab placement is right, does not rotate if tab placement is top or bottom
  • left always rotates to the left for all tab placements
  • right always rotates to the right for all tab placements

To rotate a single tabbed pane, use client property JTabbedPane.tabRotation:

tabbedPane.putClientProperty( "JTabbedPane.tabRotation", "left" );

@DevCharly DevCharly force-pushed the tabbedpane-rotation branch from 180df92 to 2ef5270 Compare November 4, 2023 18:55
@DevCharly DevCharly mentioned this pull request Nov 5, 2023
@DevCharly DevCharly merged commit 0386aaa into main Dec 21, 2023
6 checks passed
@DevCharly DevCharly added this to the 3.3 milestone Dec 21, 2023
@DevCharly DevCharly deleted the tabbedpane-rotation branch December 21, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant