Skip to content

Remove the deprecated API together with component defaults and duplicate composable overloads - #45

Merged
Ivan Matkov (MatkovIvan) merged 6 commits into
masterfrom
ivan.matkov/remove-deprecations
Nov 17, 2026
Merged

Ivan Matkov (MatkovIvan) merged 6 commits into
masterfrom
ivan.matkov/remove-deprecations

Conversation

@MatkovIvan

@MatkovIvan Ivan Matkov (MatkovIvan) commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator
  • Property modifiers (breaking)
    • The deprecated SwingModifier property functions (font, background, foreground, icon, enabled, size, border, toolTip and the rest) and SwingModifier.paintOutsets are removed. Set each in the component's style with the setter of the same name.
  • Component defaults (breaking)
    • ProvideComponentDefaults, ComponentDefaultKey, componentDefaultKeyOf, the Default keys and DefaultPaintOutsets are removed, with the inheritable parameter of property declarations. A style on the component or a nested style on a container sets its starting look.
  • Composable overloads (breaking)
    • Overloads that take a Swing listener beside a lambda or state form are removed, InternalFrame included. Use the corresponding SwingModifier listener where available, such as SwingModifier.internalFrameListener. For Table, observe selection, sort keys, and column layout through TableState.
    • PasswordField(state) and both TextPane value forms are removed.
    • ListBox, Table and Tree keep one form per data source with a nullable state: null leaves selection, expansion, sort keys and column layout to Swing.
    • The Layer overload that takes a LayerUI is removed.
    • A Slider keeps its value when its model is replaced.
  • swing-ui-animation (breaking)
    • The deprecated declarations are removed: updateTransition(MutableTransitionState) (use rememberTransition), KeyframeEntity.with (use using), and the hidden overloads of Animatable, animate*AsState, repeatable, infiniteRepeatable and InfiniteTransition.

Breaking: the SwingModifier property functions that alpha07 deprecated (font, background, foreground, icon, enabled, accessibleName, size, location, visible, border, margin, caret, toolTip and the rest) are removed. Set each in the component's style with the setter of the same name.
Breaking: the component defaults API is removed. ProvideComponentDefaults, ComponentDefaultKey, componentDefaultKeyOf, the Default keys and DefaultPaintOutsets no longer exist. A style on the component or a nested style on a container gives a component its starting look.

SwingModifier.paintOutsets is removed too; set paint outsets with the paintOutsets setter of the component's style.

The property declaration loses its inheritable parameter, and node elements lose the inheritable flag that let them cascade as defaults.
Breaking: every composable overload that takes a Swing listener beside a lambda or state form is removed (buttons, menu items, TabbedPane, SplitPane, InternalFrame, the text fields, EditorPane, Slider, ComboBox, ListBox, Table and Tree); attach the listener with the SwingModifier function of its type. Spinner(model) takes its listener through SwingModifier.changeListener. PasswordField(state) and both TextPane value forms are removed.

The lambda Slider form takes over the model-swap handling the raw form had, so a slider keeps its value when its model is replaced.
Breaking: the value overloads of ListBox, Table and Tree are removed. Each widget keeps one form per data source (items, rows or root, and model) with a nullable state: null leaves the selection, expansion, sort keys and column layout to Swing, and a given state holds them as two-way state.
@MatkovIvan
Ivan Matkov (MatkovIvan) force-pushed the ivan.matkov/remove-deprecations branch 2 times, most recently from fd9bea4 to a0e8bbb Compare November 17, 2026 20:10
@MatkovIvan
Ivan Matkov (MatkovIvan) merged commit a0e8bbb into master Nov 17, 2026
4 checks passed
@MatkovIvan
Ivan Matkov (MatkovIvan) deleted the ivan.matkov/remove-deprecations branch November 17, 2026 20:32

This branch was previously deployed

1 inactive deployment
github-pages — a0e8bbb3 Deployed Nov 17, 2026 by MatkovIvan via Publish API Reference #55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant