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の3つの数値フィールドを持つフォームがあります。私がやりたいのは、ユーザーが体重と身長のフィールドに入力した後、BMIを自動的に計算することです。どうすればそれを達成できるかアイデアはありますか?
2つのフィールドにkeyListenerを追加し、リスナーでkeyPress()メソッドをオーバーライドして、その中で計算を行います。