setWidgetVisible

fun Window.setWidgetVisible(visible: Boolean, vararg substanceWidgets: SubstanceSlices.SubstanceWidgetType)

Sets the visibility of the specified widget type(s). This method should not be called from inside the initialization sequence of this window. If the specific widget needs to be visible when the window is shown, wrap the call with SwingUtilities.invokeLater or GlobalScope.launch(Dispatchers.Swing)

Parameters

visible

Visibility indication.

substanceWidgets

Widget types.