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

Tabbed Pane - Tabs Shift and Order Issues #50

Open
zanderson9 opened this issue May 23, 2019 · 4 comments
Open

Tabbed Pane - Tabs Shift and Order Issues #50

zanderson9 opened this issue May 23, 2019 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on

Comments

@zanderson9
Copy link
Collaborator

zanderson9 commented May 23, 2019

Hello @vincenzopalazzo,

With the newest release of the library which implements "material" tabs, we started to notice 2 major issues, shifting and reordering, as follows:

1. Shifting: shift-left of the tabs is noticeable when we add, or "Dock", tabs to a TabbedPane.
I am attaching the document "Tabs-Issue.pdf" where I show various scenarios of adding tabs dynamically to a tabbed pane and how they shift. The document also shows, for comparison, how docking same tabs worked in pure swing version of JMARS.

TABS-Issue.pdf

2. Reordering: we are running into a problem with tabs when there are too many tabs to display and not enough window width. In such a case, the tabs are displayed in multiple rows, and the behavior of the ordering of the tabs is changing when any tab is clicked.

Attached document, "TABS-WrongOrder.pdf" shows the scenarios we ran into.

According to the Material Design Tabs guidelines, tabs, when not fitting in a window, should be implemented as scrollable. There is even a specific mention in the Design for the Desktop, where it is recommended to have a visual indicator ">" to let the user know there are more tabs, as seen in this image:
tabs

TABS-WrongOrder.pdf

This was referenced May 23, 2019
@zanderson9 zanderson9 changed the title Tabbed Pane - Tabs Shift Issue Tabbed Pane - Tabs Shift and Order Issues May 23, 2019
@vincenzopalazzo vincenzopalazzo added help wanted Extra attention is needed enhancement New feature or request labels May 23, 2019
@vincenzopalazzo vincenzopalazzo added the wontfix This will not be worked on label Aug 3, 2020
@Vodes
Copy link

Vodes commented Jan 22, 2021

So. Is this considered dead?

@vincenzopalazzo
Copy link
Owner

Hello @Vodes,

So. Is this considered dead?

Do you mean the project it the issue? if you mean the issue, well at the moment yes there is no idea how to implement this effect because the main idea of this issue is to have the JTabbled pane in the middle of the pane.

However, there a partial implementation of the scroll view of the tables that you can enable with this simple option on the JTabblePane. The implementation is not perfect under the style in my opinion, but work well also in production

I give a good answer to your question?

@Vodes
Copy link

Vodes commented Jan 25, 2021

I meant the issue. Thanks for your answer.
I would love to help but i don't know much about the back-end of swing so i don't even know if i could help without doing some major reading ^^

@vincenzopalazzo
Copy link
Owner

@Vodes Thanks for your support.

I would love to help but i don't know much about the back-end of swing

All are based on a JLabel :-P

I meant the issue. Thanks for your answer.

Unfortunately, the JTabbedPane in Swing was not projected as a modern JTablePane in my opinion, I think it is more easily start a new side component that customizes the behavior of this component.

a couple of side component that implements some material style can be found here maybe you want start to use/contribute here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants