File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Display alert message when nothing is selected in jspinner in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display alert message when nothing is selected in jspinner in java?" Watch "Display alert message when nothing is selected in jspinner in java?" New topic
Author

Display alert message when nothing is selected in jspinner in java?

Teddy Smith
Greenhorn

Joined: Dec 02, 2012
Posts: 1
Hello,


I have a jspinner in java program and
i want to display a message when nothing is selected. before going to the next window.
so My initial value is 0 min value = 0 max value = 200 (configured in Netbeans).

so when the application is running it displays the jspinner with the initial value = 0
what i want is if the user did not select the jspinner an alert message should appears.
This is what i tried:



could someone help me please, i'm new here and beginner in java.
Thank you
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Welcome to the Ranch.

Wouldn't setting the spinner's min to 1 solve your requirement?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display alert message when nothing is selected in jspinner in java?
 
Similar Threads
How to use a JSpinner to gather input
How to display a message when nothing is selected in a jspinner
Which Swing component to use ?
Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>
Finding and using the Jspinner SpinnerNumberModel value