Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 213212 - Component Properties: Entering Invalid Font Size Throws Exception
Component Properties: Entering Invalid Font Size Throws Exception
Status: NEW
Product: platform
Classification: Unclassified
Component: Property Editors
PC Windows Vista
: P3 with 1 vote (vote)
Assigned To: Stanislav Aubrecht
Depends on:
  Show dependency treegraph
Reported: 2012-05-30 06:00 UTC by MackSix
Modified: 2012-09-27 09:28 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-05-30 06:00:20 UTC
Changing Font size in a JComponent Properties with an invalid value throws exception and causes focus to jump down to a random property on property sheet. The Exception is recorded in messages.log. I saw some dialog box flash on the screen a few times when it happened.
Comment 1 MackSix 2012-05-30 06:36:12 UTC
Invalid value such as "XX".

Product Version: NetBeans IDE Dev (Build 201205280002)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 2 Tomas Pavek 2012-09-04 15:46:25 UTC
The exception is just printed to console, the entered size is ignored. Perhaps would be nice if the font editor tells the user in UI, OTOH this case is quite trivial.

Happens in all font chooser dialogs in the IDE.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo