Mac Version
Glimmer Timer is a sample desktop GUI application built with Glimmer (JRuby Desktop Development GUI Library).
It supports a countdown timer.
Download and install the right installer for your platform:
- Mac DMG File (Big Sur and Older)
- Windows MSI File (Windows 10)
- Linux GEM File (All Linux Versions compatible with SWT's use of GTK)
Run by simply opening up the Timer application installed on your system.
The timer
command can be obtained from the glimmer-cs-timer JRuby gem and works on Mac, Windows and Linux:
- Ensure Glimmer pre-requisites
gem install glimmer-cs-timer
(if you don't have RVM, then prefix withjruby -S
or runjgem
instead)timer
How To Write a Glimmer Timer Desktop App in One Hour
If you would like to reuse as a library instead of a standalone application, here are the pre-requisites needed:
- Glimmer DSL for SWT application, Glimmer custom shell, or another Glimmer custom widget
- JRuby version required by Glimmer
- Java version required by Glimmer
To setup for use in another Glimmer application, Glimmer custom shell, or another Glimmer custom widget, follow the instructions below.
Add the following to a Glimmer application Gemfile
:
gem 'glimmer-cs-timer', '1.2.0'
Run:
jruby -S bundle
(or just bundle
if using RVM)
When reusing in a Glimmer custom shell or custom widget, you can follow the same steps for Glimmer application, and then add a require statement to your library file:
require 'glimmer-cs-timer'
# ... more require statements follow
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
- Fork the project.
- Start a feature/bugfix branch.
- Ensure Glimmer pre-requisites
gem install bundler
(if you don't have RVM, then prefix withjruby -S
or runjgem
instead)bundle
- Run app via
bin/timer
orglimmer bin/glimmer-cs-timer
to ensure it works. - Commit and push until you are happy with your contribution.
- If the changes include highly sophisticated pure model logic, then please cover it with rspec tests.
Copyright (c) 2020-2021 Andy Maleh.
--
Built with Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)
Icon made by Freepik from www.flaticon.com