{"id":25805997,"url":"https://github.com/alipsa/guiinteraction","last_synced_at":"2026-05-09T20:50:05.111Z","repository":{"id":200787570,"uuid":"705818081","full_name":"Alipsa/GuiInteraction","owner":"Alipsa","description":"Allows Gade Gui Interactive capabilities from a standalone app","archived":false,"fork":false,"pushed_at":"2025-02-25T18:00:28.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T19:19:16.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alipsa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-16T18:44:48.000Z","updated_at":"2025-02-25T18:00:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d9d6f90-0115-46dd-9bb6-4c114c4a5892","html_url":"https://github.com/Alipsa/GuiInteraction","commit_stats":null,"previous_names":["alipsa/guiinteraction"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alipsa%2FGuiInteraction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alipsa%2FGuiInteraction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alipsa%2FGuiInteraction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alipsa%2FGuiInteraction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alipsa","download_url":"https://codeload.github.com/Alipsa/GuiInteraction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241052529,"owners_count":19901043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-27T19:52:34.411Z","updated_at":"2026-05-09T20:50:05.103Z","avatar_url":"https://github.com/Alipsa.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GuiInteraction\n\nA library providing GUI interaction capabilities for Groovy applications, compatible with [Gade](https://github.com/Alipsa/gade).\n\n## Overview\n\nGuiInteraction enables standalone Groovy applications to have the same user interaction capabilities as when running in Gade. Choose the implementation that fits your environment:\n\n| Module                    | UI Technology | JDK Requirements                               | Best For                              |\n|---------------------------|---------------|------------------------------------------------|---------------------------------------|\n| [gi-fx](gi-fx/)           | JavaFX        | JDK with JavaFX (e.g., BellSoft Liberica Full) | Rich desktop apps                     |\n| [gi-swing](gi-swing/)     | Swing         | Any JDK 21+                                    | Cross-platform desktop apps           |\n| [gi-console](gi-console/) | Console/Text  | Any JDK 21+                                    | Terminal and Headless/CI environments |\n\n## Features\n\n- File and directory choosers\n- User prompts (text, password, selections)\n- Date and year-month pickers\n- HTML and Markdown content viewing\n- Table/Matrix display\n- Clipboard operations\n- Content type detection (via Apache Tika)\n- Resource loading utilities\n\n## Quick Start\n\n### Gradle\n\n```groovy\ndependencies {\n    implementation 'se.alipsa.gi:gi-swing:0.3.0'  // or gi-fx, gi-console\n}\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ese.alipsa.gi\u003c/groupId\u003e\n    \u003cartifactId\u003egi-swing\u003c/artifactId\u003e\n    \u003cversion\u003e0.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Groovy Script with Grape\n\n```groovy\n@Grab(group:'se.alipsa.gi', module:'gi-swing', version:'0.3.0')\nimport se.alipsa.gi.swing.InOut\n\ndef io = new InOut()\ndef file = io.chooseFile(\"Choose a file\", \".\", \"Pick a file please!\")\nprintln(\"File chosen was $file\")\n```\n\n## Gade Compatibility\n\nScripts can run both in Gade and standalone by checking for the `io` variable:\n\n```groovy\n// This makes the code run equally in Gade and in a standalone Groovy script\nif (!binding.hasVariable('io')) {\n    @Grab(group:'se.alipsa.gi', module:'gi-swing', version:'0.3.0')\n    import se.alipsa.gi.swing.InOut\n    binding.setVariable('io', new InOut())\n}\n\ndef file = io.chooseFile(\"Choose a file\", \".\", \"Pick a file please!\")\nprintln(\"File chosen was $file\")\n```\n\n## Documentation\n\n- [API Guide](docs/API-Guide.md) - Detailed usage examples\n- [gi-common](gi-common/) - Core interfaces and utilities\n- [gi-fx](gi-fx/) - JavaFX implementation\n- [gi-swing](gi-swing/) - Swing implementation\n- [gi-console](gi-console/) - Console implementation\n\n## Building from Source\n\n```bash\n./gradlew build\n```\n\nWhen `org.gradle.configuration-cache=true` is enabled, `build` skips applying Spotless and SpotBugs because their current Gradle tasks are not configuration-cache compatible on Gradle 9. Run the full verification lifecycle explicitly with:\n\n```bash\n./gradlew check --no-configuration-cache\n```\n\n## Requirements\n\n- JDK 21 or later\n- For gi-fx: JDK with JavaFX support (e.g., BellSoft Liberica Full JDK)\n\n## License\n\nMIT License - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falipsa%2Fguiinteraction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falipsa%2Fguiinteraction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falipsa%2Fguiinteraction/lists"}