Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 GXT 中有一个包含三个数字字段的表格:体重、身高和 BMI。我想要做的是在用户填写体重和身高字段后自动计算BMI。有什么想法可以实现吗?
在两个字段上添加一个 keyListener 并在侦听器中覆盖 keyPress() 方法并在其中进行计算。