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

Summary: Component Properties: Entering Invalid Font Size Throws Exception
Product: platform Reporter: MackSix
Component: Property EditorsAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

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.