scala/scala-swing
47.6
Weak · 7 November 2026
10.2k
lines of production code
Scala
primary language
4
measurements over time
What this system is
Features
Add component tutorial demos to Scala Swing examples
Added a suite of new Scala Swing tutorial examples in the \examples/src/main/scala/scala/swing/examples/tutorials/components\ directory, including BorderDemo, ButtonDemo, CheckboxDemo, ColorChooserDemo, ComboBoxDemo, ComboBoxDemo2, CustomComboBoxDemo, FrameDemo, FrameDemo2, and HtmlDemo. These demos demonstrate standard Swing components such as borders, buttons, checkboxes, color choosers, combo boxes, frames, and HTML rendering, providing users with reference implementations for common UI patterns.
examples/src/main/scala/scala/swing/examples/tutorials/components · high confidence
Added Beeper event listener example
The tutorial now includes a Beeper example demonstrating how to handle button click events to trigger a system beep. This new Scala Swing tutorial component allows users to learn about basic event listeners by clicking a button that produces an audible alert.
examples/src/main/scala/scala/swing/examples/tutorials/events · high confidence
Added FocusConceptsDemo tutorial example
A new tutorial example, FocusConceptsDemo, has been added to the Scala Swing tutorials. This demo illustrates how to use the focus system, allowing users to navigate between buttons, text fields, and a text area using Tab, Shift-Tab, and Control-Tab keys. The implementation follows the standard Scala Swing tutorial structure, extending SimpleSwingApplication and utilizing a BorderPanel layout.
examples/src/main/scala/scala/swing/examples/tutorials/misc · high confidence
Added Scala Swing example applications
The \examples/src/main/scala/scala/swing/examples\ directory now contains a suite of Scala Swing demo applications, including ButtonApp, CelsiusConverter, ColorChooserDemo, ComboBoxes, Dialogs, GridBagDemo, HelloWorld, LinePainting, ListViewDemo, PopupDemo, TableSelection, and UIDemo. These examples demonstrate various Swing components and interaction patterns, such as event handling, layout management, and custom rendering, providing users with reference implementations for building GUI applications.
examples/src/main/scala/scala/swing/examples · high confidence
Added demonstration applications for table sorting and dialog parent handling
The uitest module now includes two new example applications: Issue47, which demonstrates table row sorting and column reordering with selection tracking, and SI7597, which tests the ability to pass various container types (Component, Frame, Dialog) as parents to dialog-showing methods like showOpenDialog and showConfirmation.
uitest · high confidence
Added help documentation for the Styled Text Sample demo
A new HTML help page (TextSamplerDemoHelp.html) has been added to the Scala Swing tutorials. This page provides an explanation of the Styled Text Sample demo, describing how the uneditable EditorPane is initialized with HTML text from a URL and noting the availability of specialized editor kits for various text formats. The page also includes embedded Oracle SiteCatalyst tracking scripts.
examples/src/main/resources · high confidence
Added new Scala Swing layout tutorial demos
New tutorial examples have been added to the Scala Swing layout package, providing interactive demonstrations for BorderLayout, BoxLayout (including alignment handling), FlowLayout (including component orientation), and GridBagLayout. The set also includes a custom DiagonalLayout implementation and a helper component (BLDComponent) used to visualize alignment changes in the BoxLayout examples.
examples/src/main/scala/scala/swing/examples/tutorials/layout · high confidence
Initial release of scala-swing UI components
This change introduces the core scala-swing library, providing a Scala wrapper for Java Swing components. It adds foundational UI elements such as buttons, panels, text fields, and file choosers, along with layout managers like BorderPanel and GridBagPanel, enabling developers to build desktop applications using idiomatic Scala syntax.
src/main/scala · high confidence
Behavioural changes
13 commits (2 fixes) modifying repository
A change to existing behaviour in repository — 13 commits (2 fixs), 11 files: “restore cross-build versions”; “\[SI7597\] FileChooser parent to be Frame/Dialog”; “fixes \#31”; and 10 more (refs \#31, \#90).
repository · medium confidence · unverified
Added Scala 2.13+ specific collection wrapper implementations
The library now includes source files for Scala 2.13+ (\BufferWrapper\, \MapWrapper\, \SetWrapper\) that adapt to the new \IterableOnce\ API, running alongside the existing Scala 2.12 implementations which use \TraversableOnce\. This change ensures the \scala.swing\ collection wrappers compile and function correctly on Scala 2.13.0-RC1 and later by providing version-specific adapters for mutable buffers, maps, and sets.
src/main/scala-2.13+ · high confidence
Project governance and licensing updates
The repository has adopted the Apache 2.0 license (replacing the previous license) and updated the NOTICE file to reflect current copyright holders (EPFL, Lightbend/Akka, and contributors). A Code of Conduct document was added, explicitly linking to the Scala Code of Conduct for repositories in the scala, scalacenter, and lampepfl organizations. Additionally, a .gitignore file was introduced to exclude build artifacts, IDE files, and OS-specific temporary files.
(repo-wide) · high confidence
Test coverage
Added tests for enumeration uniqueness and UI element event firing
Added test coverage for specific library behaviors: Issue73.scala verifies that enumeration values do not contain duplicate IDs, and Issue97.scala ensures that UI components fire exactly one event each when moved, removed, or changed in visibility.
src/test · high confidence
Dependencies
81 commits updating dependencies (1 manifest)
A dependency / build maintenance change in (dependencies) — 81 commits (5 fixs), 1 file.
(dependencies) · medium confidence · unverified
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 44 → 48 (+3.4)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 58 → 58 (+0.0)
- Architecture 88 → 87 (-1.3)
- Maturity 38 → 50 (+12.2)
- Readiness 36 → 36 (+0.0)
- Security 69 → 72 (+3.0)
Resolved (2)
- Medium: security finding (details withheld)
- Medium: security finding (details withheld)
Changes since last survey
- 2 commits — 2 feature/other, 0 fixes
By area
- (root) — 1 commit
- project/build.properties — 1 commit
Notable commits
- change: Update sbt, scripted-plugin to 1.13.1
- change: Update scala3-library to 3.3.9
Architecture
- Unchanged — 0 containers · 1 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
scala/scala-swing was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 2e383dfe558b86ccf42feefd5f2bab982a93c1a4 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-c34be012586e.