
Open any app on your phone and count the pieces nobody thinks about. The gray shimmer while a list loads. The onboarding pager with dots. The friendly “nothing here yet” screen with a retry button. The price filter with two thumbs. The tag field that turns words into chips. Every team builds these, every team builds them a little wrong, and an agent will happily build them a little wrong again in every project you start.
So they’re in core now. Sixteen of them, plus a chart package rewritten from scratch.
Loading and onboarding
Skeleton replaces the spinner with placeholders shaped like the content that’s coming, which makes an app feel faster even when it isn’t.
form.add(Skeleton.card()); // image, title and two lines
form.add(Skeleton.rows(3)); // three shimmering rows
Skeleton.show(bio, Skeleton.text(3)); // mask a real component until data arrivesCarousel is the swipeable pager everyone calls something different (image slider, view pager, banner rotator), with PageIndicator dots and optional autoplay. CoachMarks runs a feature tour: the screen dims, the component you’re explaining shows through a cut-out, and a bubble says what it does.
new CoachMarks(form)
.add(search, "Search", "Find any order by number or name.")
.add(filter, "Filters", "Narrow the list to what is still open.")
.show();EmptyState is the screen you show when there’s nothing to show, with an icon, a title, a message and an action:
new EmptyState(FontImage.MATERIAL_CLOUD_OFF, "Can't load orders",
"Check your connection and try again.")
.setAction("Retry", e -> reload());



Input
RangeSlider has two thumbs that can’t cross, with snapping:
RangeSlider price = new RangeSlider(0, 500, 100, 350);
price.setStep(10);
price.addActionListener(e -> summary.setText(
"$" + price.getLowerValue() + " to $" + price.getUpperValue()));Chip is a filter or choice token, and ChipInput turns typed words into chips as you hit a separator. ColorPicker gives you presets, a full picker and a one-line dialog. EmojiPicker is the grid you expect. MentionField suggests names after an @, or tags after a # if you call setTrigger('#'), and you can override suggest to search a directory of a million users.
MentionField comment = new MentionField();
comment.setCandidates("Ada Lovelace", "Alan Turing", "Grace Hopper");
comment.addActionListener(e -> notify(comment.getMentions()));



Progress, media and content
CircularProgress draws a ring for uploads, goals, and timers. AudioWaveform draws a voice message or a recording as bars you can scrub. ExpandableText shows the first lines of a long review with a “more” link. ActivityTimeline lays out order history, a support ticket or a delivery as a vertical timeline. MasonryLayout places tiles of different heights in equal columns, each in the shortest one, the way Pinterest does, with a column count that adapts to the width.




All sixteen are ordinary components with UIIDs, so your theme styles them like anything else, and they behave the same on every platform.
Charts, rewritten
Our old chart package came from a port of a charting library more than a decade ago. It worked, but it looked its age, it didn’t animate, and touching a chart did nothing. com.codename1.ui.chart replaces it. It’s a normal component drawn with the Codename One graphics pipeline, with no web view and no third-party library.
Chart chart = new Chart().setTitle("Revenue")
.setXAxis(new CategoryAxis(Axis.BOTTOM, "Q1", "Q2", "Q3", "Q4"));
chart.addSeries(new BarSeries("2025").setData(null, new double[]{120, 180, 150, 210}));
chart.addSeries(new LineSeries("Target").setDashed(true)
.setData(null, new double[]{140, 160, 170, 190}));
form.add(BorderLayout.CENTER, chart);
There are 19 series types:
| Kind | Series |
|---|---|
| Basic | Bar, Line (straight, spline, stacked or filled), Scatter, Pie and doughnut, Radar, Histogram |
| Statistical | Box plot, Error bar, Range bar, Heatmap |
| Financial | Candlestick, Volume, Waterfall, plus indicators |
| Hierarchy | Treemap, Sunburst, Flame graph |
| Flow and gauges | Sankey, Funnel, Gauge |




What matters more than the list is how they behave:
- Labels never overlap, and axis ticks land on round numbers, without margins you tune by hand.
- Data changes animate. Add a point and the line grows to it.
- Touch works. Drag pans, pinch or the wheel zooms, double tap zooms in, tap shows a tooltip, tapping a legend entry hides its series, and
setBrushEnabled(true)selects a range. - Accessibility is built in. Arrow keys step through points and a screen reader announces each one.
toTable()gives you the same data as a table. - The palette is color-blind safe, follows dark mode, and handles right to left layouts.
Axes come as category, number, log, time and session time (which skips weekends, holidays and overnight hours the way trading charts do), with secondary axes when two series don’t share a scale. Sparklines fit in a table cell. The old com.codename1.charts package still works, but it’s deprecated and won’t get new features.
You can see the new charts across every dashboard in Bazaar: the conversion funnel, the sales over time, the goal rings on the merchant home screen.

The Components chapter has every component and every chart type. Tomorrow: the defenses a banking app needs.