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

AWT components are not drawn after removal and addition to a container

    Details

    • Subcomponent:
    • Resolved In Build:
      b107
    • CPU:
      generic
    • OS:
      linux
    • Verification:
      Not verified

      Backports

        Description

        FULL PRODUCT VERSION :
        JDK 9 b102, JDK 8u51 b16

        ADDITIONAL OS VERSION INFORMATION :
        Linux OS

        A DESCRIPTION OF THE PROBLEM :
        When AWT panel with AWT components, for example "java.awt.Button", is removed from AWT frame and added again to the same frame, then sporadically some AWT components contained in the panel are not drawn, however, clicking in the area of not drawn button leads to drawing of the button.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. Compile and run the test case attached as the file "ComponentIsNotDrawnAfterRemoveAddTest.java".
        2. The bug is reproduced, if the test case throws the exception with the message "'paint' method of N components was not called.".

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alitvinov Anton Litvinov
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: