Problems with spark appearance

Spark originally used the appearance of Synthetica, and the SyntheticaFileChooserUI related to the file dialog would throw a null pointer exception, and it was shared, so it was inconvenient to upgrade to solve the problem.

 

You can use the appearance of Substance instead . Since the 4.1 version is used first, it can provide dozens of beautiful looks, but the main menu of the framework contains many Substance menus. It turns out that it can be configured. Use UIManager to set properties Set substancelaf.noExtraElements to true to remove these menus. Later, it was found that the auto-completion function of its combo box JComboBox is easy for ordinary users to misunderstand, that is, the illusion that cannot be deleted when pressing Backspace affects the user experience. At this time, you can set the property lafwidgets.comboboxNoAutoCompletion through UIManager to true, you can remove the auto-completion function .

 

Spark's solution is to use Substance version 6.0 directly, which is incompatible with version 4.1 (without the above problems and without the above properties), but requires all Swing GUI code to be executed on the Event Dispatch Thread ( Otherwise it will throw an exception and fail), so spark wraps these codes in EventQueue or SwingUtilities' invokeLater to run. Substance's project homepage is: https://substance.dev.java.net/ .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326346038&siteId=291194637