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
7.2
PC Windows Vista
: P3 with 1 vote (vote)
: TBD
Assigned To: Stanislav Aubrecht
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-30 06:00 UTC by MackSix
Modified: 2012-09-27 09:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo