argouml-tigris-org / argouml

Main project of argouml. Some information in the wiki. Some old releases in releases. (depends on parentpom, testmodels)
250 stars 93 forks source link

[Question] jToolBar utils buttons behavior #12

Closed vincenzopalazzo closed 4 years ago

vincenzopalazzo commented 4 years ago

Hi @linustolke,

I'm opening this issue because I want to make some questions about the behaviors on Jtoolbar utils.

I'm making the last tests with ArgoUML before starting to write the code to integrate material-ui-swing and I noted this behavior in the video below.

Before making the questions, I want say that the mouse hover in the L&F library has a timer to implement the mouse hover effect, this timer changes the background during life, but before finishing, it reset the original color to the component.

Question

I noted this behavior only on this Jtoolbar, I want ask a question about what happened inside the code when I clicked on the button in this JToolBar? Can you explane me or link the code? Maybe I have an bug inside the mousehover effect.

Thanks for your time.

linustolke commented 4 years ago

I am not the right person to answer this. I don't know any details on swing, jtoolbar, and the other involved libraries. Hopefully somebody else can help you.

vincenzopalazzo commented 4 years ago

Hi @linustolke,

I found the "problem", the button in the Jtool bars is a personal button and with some L&F the button doesn't change the status alone but the client in this case should be writing the code to set the status of the button to unselect. This work in Material-UI-Swing was done by the mouse hover event and for this reason, I see the strange effect on the Toolbar, I will try to support this change inside the library. The reference of the code is here

I'm closing the issue because I discovered the answer