aspose 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 JavaScript Promises Essentials this week in the JavaScript 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: 10515
    
    9

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?