弹出消息以进行验证 [英] Popup messages for validation

查看:76
本文介绍了弹出消息以进行验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在文本字段下显示一些小的弹出消息,以指示输入的信息是否不正确,例如在Spring/Eclipse RCP上.如何实现?

I'd like to have some small popup messages appear under text fields to indicate if inputted information is incorrect like on Spring/Eclipse RCP. How can this be achieved?

推荐答案

IMO,至少有两种方法可以实现.您可以使用 JGlassPane

IMO there are at least two ways to achieve that. You can use JGlassPane or JXLayer framework. The basic idea to draw your popup messages on the transparent layer "above" your text fields.

我使用了JXLayer框架,因为我认为它为我提供了更大的灵活性.

I used the JXLayer framework because I felt it gave me a greater flexibility in what I could do.

这篇关于弹出消息以进行验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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