-
MethodDescriptionuse
JSplitButton.isAlwaysPopup()
instead.useJSplitButton.setAlwaysPopup(boolean)
instead.UseUIForAnySwing.withBackground(Color)
instead, by passing it theUI.Color.TRANSPARENT
constant.
Alternatively, you may use theUIForAnything.peek(Peeker)
method to peek into the builder's component and set the flag directly.SwingTree considers the opaqueness a property which emerges from the style configuration of the component. Therefore, it is not recommended to set the opaqueness directly. Instead, use theUIForAnySwing.withBackground(Color)
method to set the style of the component so that it becomes opaque.
JSplitButton.addButtonClickedActionListener(swingtree.components.action.ButtonClickedActionListener)
orJSplitButton.addSplitButtonClickedActionListener(swingtree.components.action.SplitButtonClickedActionListener)
instead.