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

Should update doc for Component.update()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1
    • pbp_1.0, 1.4.1
    • client-libs
    • hopper
    • generic, x86
    • generic, linux_redhat_7.1
    • Fix failed

      The changes below were requested in response to spec discussions for MHP.
      We should put them into Hopper to support this work.

      Also, we should link to the article on painting at
      http://java.sun.com/products/jfc/tsc/articles/painting/index.html
      from Component.repaint and/or Component.update, Component.paint


      >>java.awt.Component
      >>==================
      >>
      >>java.awt.Component.update(Graphics)
      >>-----------------------------------
      >>
      >>Replace the following text:
      >>
      >>The AWT calls the update method in response to a call to repaint.
      >>You can assume that the background is not cleared.
      >>
      >>by
      >>
      >>If this component is not a lightweight component, the AWT calls the update
      >>method in response to a call to repaint. You can assume that the background is
      >>not cleared.
      >>
      >>java.awt.Component.repaint()
      >>----------------------------
      >>
      >>Replace the following text:
      >>
      >>This method causes a call to this component's update method as soon as possible.
      >>
      >>by
      >>
      >>If this component is a lightweight component, this method causes a call to
      >>this component's paint method as soon as possible. Otherwise, this method
      >>causes a call to this component's update method as soon as possible.
      >>
      >>java.awt.Component.repaint(long)
      >>--------------------------------
      >>
      >>Replace the following text:
      >>
      >>Repaints the component. This will result in a call to update within tm
      >>milliseconds.
      >>
      >>by
      >>
      >>Repaints the component. If this component is a lightweight component, this
      >>will result in a call to paint within tm milliseconds.
      >>Otherwise, this will result in a call to update within tm milliseconds.
      >>
      >>java.awt.Component.repaint(int, int, int, int)
      >>----------------------------------------------
      >>
      >>Replace the following text:
      >>
      >>This method causes a call to this component's update method as soon as possible.
      >>
      >>by
      >>
      >>If this component is a lightweight component, this method causes a call to
      >>this component's paint method as soon as possible.
      >>Otherwise, this method causes a call to this component's update method as soon
      >>as possible.
      >>
      >>java.awt.Component.repaint(long, int, int, int, int)
      >>----------------------------------------------------
      >>
      >>Replace the following text:
      >>
      >>This method causes a call to this component's update method.
      >>
      >>by
      >>
      >>If this component is a lightweight component, this method causes a call to
      >>this component's paint method.
      >>Otherwise, this method causes a call to this component's update method.

            Unassigned Unassigned
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: