This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213212 - Component Properties: Entering Invalid Font Size Throws Exception
Summary: Component Properties: Entering Invalid Font Size Throws Exception
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
Depends on:
Reported: 2012-05-30 06:00 UTC by MackSix
Modified: 2012-09-27 09:28 UTC (History)
0 users

See Also:
Exception Reporter:


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.