File Exchange

image thumbnail

SpinnerDemo

version 1.0.0.0 (3.2 KB) by Yair Altman
A utility that demonstrates usage of Java Spinner controls in Matlab

3 Downloads

Updated 16 Mar 2010

View License

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)

Comments and Ratings (1)

Jim Crozier

Per usual, excellent code. Well documented. Runs fine in 2009b.

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags