如何限制JSpinner [英] How to limit JSpinner

查看:135
本文介绍了如何限制JSpinner的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此应用程序的有效范围是0到9,但似乎没有NetBeans 7.0.1 JSpinner最小值或最大值设置。是否有另一种方法将此JSpinner的范围限制为0..9?

The valid range for this application is 0 to 9 but there seems to be no NetBeans 7.0.1 JSpinner minimum or maximum value setting. Is there another way to limit the range of this JSpinner to 0..9?

推荐答案

在我的Netbeans 7.3中我遵循了这些步骤:

In my Netbeans 7.3 i followed theese steps:

第1步:

第2步:

第3步:

最后一步4:

这对我有用。

这篇关于如何限制JSpinner的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆