-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
JButton - no visual indicator when button is in focus #21
Comments
Hi @zanderson9, |
Hi @zanderson9, |
Vincent, yes thank you, the effect you are suggesting is great. |
Hi @srcarter3, Yes the effect should be this. when you effect tab the border button change color, the color default is black but in next official relaise I will add a constant into UIDefault. I understand your problem? if I not understand your problem your use an example with jar into my project, her position is libs/file.jar |
Hi Vincent, Yes, that would be nice. |
In material-ui-swing, in default is disabled, or you enable in all button whit button.setFocusable(true) or you change a value into UIDefaulti, whit this code For the border into text, is the effect don't like me, but I would like to add an effect like that of gmail, because the outline of the text knows to me of ancient, but if you want I can try to add this effect too |
Okay, setting UIManager.put("Button.focusable", true); worked and now it recognizes the tabs. One thing though, related to the "Default Button" look. The "focus" look and "default button" look is the same in your package, and they were distinctly different in the old package. I agree with you that the outline on the text looks ancient. |
Yes the color font, or the changing border color whit color equal button background, I will see examples.
The problem is when the button is focused and the button default not have a border, right? and before this effect there was |
@zanderson9 I apported the more change, this is the bug, I will work on it calmly |
I'd suggest we follow the guidelines from Material Design on buttons States |
Yes,Swing focus is ugly,not need to create swing focus state. follow the flat and material skin. |
Hello guys, thanks for your help.
sorry if I do not resolved your problem |
Hi @zanderson9 , @srcarter3, @lilili87222 Hi @ zanderson9, @ srcarter3, @ lilili87222 My previous solution worked, yes but I hadn't calculated the click, in the click all the colors are strange, unfortunately there are too many events, like the hover that makes me jump something, but I thought of adding a line under the text to highlight a main mouse button, unfortunately the limits of my junior programmer allow me to find this solution for the moment, if you want to give me some guidelines or ideas to solve these problems I'm happy. My problem is that I have no method to interfere with the button's life cycle, in fact I have nothing to interfere with the effect I want to give the button after the end of the action associated with the click, I only have one but it is not called as a last resort and therefore these changes are not successful Since I never needed to highlight a button with the card, I ask you, is it also the result of another aspect and feeling that after pressing the button this remains in FOCUS? also Metal uses this type of approach and therefore for the moment I stop at this solution if it is good for you. the constant is used to set the color of the line
I hope I have been helpful |
Vincent thank you, we will give it a try. We appreciate you working toward finding the solution! |
@zanderson9 I'm waiting your feedback, if the method not have a bugs, I will try Improve the graphics |
@vincenzopalazzo Yes, we will test the new jar you built today and will share the feedback asap. |
verified with new test jar - looks good with the Underline effect |
@zanderson9, Good, if the issue is fixed, I closing issue :) |
This effect is very cool I do not think you need to add a line under text,That was ugly really |
@lilili87222 , could you check the link you posted in your recent Comment, please? It returns "Non-Image content-type returned" error... |
Hi @srcarter3, This is the only solution for the moment, exist more event into jbutton, an example MouseHover but I want to have a better effect, maybe I'll keep working on it and try to maintain backwards compatibility with this version. I'm glad you like my job |
when using material-ui-swing, it was noticed that there is no visual indicator to a user when a button is in focus. For example if user tabs through buttons in a window, there is no visual effect that a button received focus. Can this feature be implemented under material-ui-swing?
The text was updated successfully, but these errors were encountered: