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

Document what to use instead of deprecated java.awt.Toolkit getFontMetrics()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic, x86
    • generic, windows_95



      Name: krT82822 Date: 04/17/99


      orig synopsis: "Missing documentation for depreciated method"

      Not exactly a bug per se, but certainly needs to be addressed.
        Missing info in Documentation.
      | H:\Java_source\Date_Time\DisplayDateTime.java:55: Note: The method
      | java.awt.FontMetrics getFontMetrics(java.awt.Font) in class java.awt.Toolkit
      | has been deprecated.
      | FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(new
      | Font("Courier",Font.BOLD|Font.ITALIC,18));

      I can't find anything in the doc's as to what method I should be
      using.

      Would you be so kind as to e-mail the missing info to me as well as adding for others.
      ###@###.###
      Thank you,
        B. Keith
      PS
      I have also noted that the Java Plug-In that a converted applet directs one to ie ver. 1.1.1 and not the same as what is packaged with the Platform 2 JRE. I have installed this Plug-In and found that the applets I'm using will not run with it, but will run with the Plug-In supplied with the Platform 2 JRE.
      (Review ID: 57111)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: