Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7022041

TitleBorder Null Pointer Exception

XMLWordPrintable

    • 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.

            alexsch Alexandr Scherbatiy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: