This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 10270
    
    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!]
 
Don't get me started about those stupid light bulbs.
 
subject: Display alert message when nothing is selected in jspinner in java?