Repository navigation
Remove the deprecated API together with component defaults and duplicate composable overloads - #45
Merged
Ivan Matkov (MatkovIvan) merged 6 commits intoNov 17, 2026
Conversation
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.
Ivan Matkov (MatkovIvan)
force-pushed
the
ivan.matkov/remove-deprecations
branch
2 times, most recently
from
November 17, 2026 20:10
fd9bea4 to
a0e8bbb
Compare
Ivan Matkov (MatkovIvan)
temporarily deployed
to
github-pages
November 17, 2026 21:30 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SwingModifierproperty functions (font,background,foreground,icon,enabled,size,border,toolTipand the rest) andSwingModifier.paintOutsetsare removed. Set each in the component's style with the setter of the same name.ProvideComponentDefaults,ComponentDefaultKey,componentDefaultKeyOf, theDefaultkeys andDefaultPaintOutsetsare removed, with theinheritableparameter of property declarations. A style on the component or a nested style on a container sets its starting look.InternalFrameincluded. Use the correspondingSwingModifierlistener where available, such asSwingModifier.internalFrameListener. ForTable, observe selection, sort keys, and column layout throughTableState.PasswordField(state)and bothTextPanevalue forms are removed.ListBox,TableandTreekeep one form per data source with a nullable state:nullleaves selection, expansion, sort keys and column layout to Swing.Layeroverload that takes aLayerUIis removed.Sliderkeeps its value when its model is replaced.swing-ui-animation(breaking)updateTransition(MutableTransitionState)(userememberTransition),KeyframeEntity.with(useusing), and the hidden overloads ofAnimatable,animate*AsState,repeatable,infiniteRepeatableandInfiniteTransition.