IllegalStateException caused when entering non-numeric symbol for label size.

Issue #241 closed
Christopher Keil repo owner created an issue

This is still code from TreeView 2 label size setting (NatField). Looks like input isn't verified to be numeric nor is there any exception handling so that should be done.

Comments (6)

  1. Christopher Keil reporter

    This turns out to be a DocumentListener + Swing problem in Java... Using key listeners in Java appears to be a terrible idea so I will implement key bindings instead. Edit: nvm I implemented JSpinners which is far more sensible than a textfield. A font size is not considered to be anything but a number here so a JTextField is overkill and we can also get rid of the DocumentListener problems.

  2. Log in to comment