SpinnerDemo
SpinnerDemo demonstrates the usage of Java spinner controls (javax.swing.JSpinner) in a Matlab application. The demo includes three spinners with different data models: List (cell array of strings), Number and Date. The spinners are interconnected using their StateChangedCallback so that modifying one spinner automatically affects the others.
In addition, this utility demonstrates how to assign keyboard mnemonics (hot-keys) to a label and attach it to the spinner control. HTML tooltips are also demonstrated (on the labels).
This utility also demonstrates how to set-up the useful feature of closing a figure window with the <ESC> key.
This utility was inspired by the official Java demonstration of JSpinner: http://java.sun.com/docs/books/tutorial/uiswing/components/spinner.html
Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)
Cita come
Yair Altman (2024). SpinnerDemo (https://www.mathworks.com/matlabcentral/fileexchange/26970-spinnerdemo), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato da: UICOMPONENT - expands uicontrol to all Java classes
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |