aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to display a message when nothing is selected in a jspinner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

How to display a message when nothing is selected in a jspinner

protected system
Greenhorn

Joined: Nov 30, 2012
Posts: 3
Hi,

how can i display a message when nothing is selected in a jspinner using java?

i tried to restrict min and max because i didn't know to do for displaying message when nothing is selected in jspinner.
even here there is nothing.

public int getAlerte() {


thank you

Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

OP, please read Official policy on registered names and change your registered name accordingly.


The quieter you are, the more you are able to hear.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

Your question is not clear. Is your code not working as you expected? if so, what is your expectation?
And, what is the model you have set for your JSpinner?


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

This is a duplicate of this post. Locking this down.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to display a message when nothing is selected in a jspinner