-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b49
-
x86
-
linux, windows_xp, windows_7
FULL PRODUCT VERSION :
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b130)
Java HotSpot(TM) Client VM (build 21.0-b02, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Proffesional 2002 Service pack 3
A DESCRIPTION OF THE PROBLEM :
The following code snipped compiles and run perfectly under JDK 1.6.24
Under JDK 1.7.0-ea it issues a Null Pointer Exception at setTitleFont line
TitledBorder title;
BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), "test");
title.setTitleJustification(TitledBorder.LEFT);
title.setTitleFont(title.getTitleFont().deriveFont(Font.BOLD));
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
By the moment, not found any.
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b130)
Java HotSpot(TM) Client VM (build 21.0-b02, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Proffesional 2002 Service pack 3
A DESCRIPTION OF THE PROBLEM :
The following code snipped compiles and run perfectly under JDK 1.6.24
Under JDK 1.7.0-ea it issues a Null Pointer Exception at setTitleFont line
TitledBorder title;
BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), "test");
title.setTitleJustification(TitledBorder.LEFT);
title.setTitleFont(title.getTitleFont().deriveFont(Font.BOLD));
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
By the moment, not found any.
- duplicates
-
JDK-7148436 SE7 swing TitledBorder.getFont() now returns null
-
- Closed
-
-
JDK-8013570 Null pointer exception is now returned from TitledBorder::getTitleFont()
-
- Closed
-
-
JDK-7117283 NullpointerException when using TitleBorder.getTitleFont
-
- Closed
-
- relates to
-
JDK-4129681 Cannot get a title border to display its label as disabled
-
- Closed
-
-
JDK-8024777 TitledBorder.getTitleFont() return null
-
- Closed
-