The software enables users to replace Swing listeners with annotations.
Swirrel is incredibly efficient, making things much easier, but users should exercise caution since there can be pitfalls to this approach. This software represents a double-edged sword, it can help or hurt, depending on the user's skill, so careful consideration is advised before using it for your project.
Furthermore, complex or nested GUIs that are time-critical should not rely on Swirrel. It is also worth noting that using Swirrel requires more testing. Compile time errors that were present before may now show up as runtime errors.
When the GUI is ready, you can attach the listeners by calling Swirrel.process (myTopLevelFrame) or using a subclass of JFrame called SwFrame. The Swirrel listeners are standard listeners. You can remove them or add your own. At present, the following listeners are supported:
- ActionListener (actionPerformed)
- FocusListener (focusGained, focusLost)
- KeyListener (keyTyped, keyPressed, keyReleased)
- MouseListener (mouseClicked, mousePressed, mouseReleased, mouseEntered, mouseExited)
- MouseMotionListener (mouseMoved, mouseDragged)
- MouseWheelListener (mouseWheelMoved)
- PropertyChangeListener (propertyChange).
In conclusion, using Swirrel can be great for straightforward GUIs, but users should be aware of potential issues and consider the type of project they are working on; complex applications may not be suited to this approach.
Version 0.2: N/A