Bill Babbitt wrote:The text shows in the box until I change focus (either "enter", tab, or mouse reposition).
Paul Clapham wrote:You have added jCost to the GUI twice. I don't know why you did that but you should only put a component into the GUI tree once. You can see the kind of problems that result.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
value [meaning the property returned by getValue()] is the most recent valid content of the field, which may not be the current content of the field if an edit is in progress. Because of this, it is usually wise to call the field's commitEdit() method before calling getValue().*
*Especially if the focusLostBehavior property is set to PERSIST. In other cases it is likely that the field lost focus (causing its value to be committed or reverted) when the user clicked on the button or other GUI element that resulted in this call to getValue(). Calling commitEdit() is easy enough that it makes sense to do it unless you're sure that it isn't required.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |