I’m trying to make a calculator which is basicly like this: user enters about 18-19 values, then he presses a button and the result is equal to his input sum divided by the number of fields.
However, it’s far more complex than that. The user can specify some options which add more input fields (Basicly make an option where he makes a jformattedtextfield editable, when by default it’s non-editable), this can be a huge timewaster since I have to write a huge IF statement, which I’d hate doing. Basicly the user can activate some jSpinners which make more jFormattedTExtFields editable than the default options, significantly. What I’m asking is, how can you check which jformattedtextfields are editable, which aren’t, and then perform operations with the ones which are editable?
I’m trying to make a calculator which is basicly like this: user enters about
Share
add
DocumentListenerto allJFormattedTextFieldsand take value from Number instance, for eample for Float