Code covered by the BSD License  

Highlights from
SpinnerDemo

5.0

5.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 3.2 KB File ID: #26970
image thumbnail

SpinnerDemo

by Yair Altman

 

16 Mar 2010

A utility that demonstrates usage of Java Spinner controls in Matlab

| Watch this File

File Information
Description

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)

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
UICOMPONENT - expands uicontrol to all Java classes

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
17 Mar 2010 Jim Crozier

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

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui Yair Altman 16 Mar 2010 10:17:58
java Yair Altman 16 Mar 2010 10:17:58
gui Lanir Maximuk 19 Aug 2011 08:47:08
java Jessica Mustard 06 Sep 2011 12:24:56

Contact us at files@mathworks.com