Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Teddy Smith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Wouldn't setting the spinner's min to 1 solve your requirement?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!