Skip to content

Instantly share code, notes, and snippets.

@vincenzopalazzo
Created April 16, 2020 18:04
Show Gist options
  • Save vincenzopalazzo/4a02a2f28f5c681658badcb88af5ab51 to your computer and use it in GitHub Desktop.
Save vincenzopalazzo/4a02a2f28f5c681658badcb88af5ab51 to your computer and use it in GitHub Desktop.
Contains some information about the debug of material-ui-swing library

Material-UI-Swing debugging

Introductions

TODO

What version of library should be used?

Material-ui-swing implement a debug version with SLF4J that create a file inside you home dir called material-debug.log but if your problem need time to reproduce, this version is not good, because at the moment there isn't a softwer GUI to see the debug log for big file.

So, the big difference with the other L&F there are:

  1. This library is open souce developed to comune people.
  2. Implement a complex mouse hover event, it is an timer and the personal color with a setBackground inside the action, for other information look the class MaterialUITimer

If you think there material-ui-swing is the problem inside your project, you should be disable this mouse event from the componenet and there are two this of listener important to disable, like:

  1. Mouse hover on MaterialButtonUI
  2. Mousehover on TabbedPane, implemented in this class

Now depend to you, if you think material-ui-swing is a problem and you want make a hard test now, you can disable the mouse hover on a both of componenet with this code

UiManager.put("Button.mouseHoverEnable", false);
UiManager.put("TabbedPane[MouseHover].enable", false);

Or if you want can make more test with on of this effect disabled, I suggest

UiManager.put("TabbedPane[MouseHover].enable", false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment