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

OGL+XAWT: Items in the drop-down are offset after setting the Choice's font at run time

XMLWordPrintable

    • sparc
    • solaris_10

      I am running an application on OpenGL pipeline on SolSparc10. This application shows a Frame having a Choice and a button. I am selecting an item from the drop-down. When I click the button adjacent to it, I am changing the font size to 30 from the default size. After this, When I click the choice, none of the items in the drop-down are shown properly and the drop-down is completely messed up. This is reproducible on XToolkit with Tiger-FCS as well as Mustang. This is not reproducible with the default pipeline. This is not reproducible with win32.

      With the default pipeline, all the items are displayed properly with the new font size. I reproduced it on a SunBlade-2500 - SolSparc10 machine having a XVR-600 frame buffer.

      Run the attached test with OpenGL flag on the above solaris system and select an item from the drop-down. Click the button. Click on choice again. If the drop-down is messed up, the bug is reproduced. I have attached the platform information also to this bug report.
      This is reproducible even when resizing a choice component on OpenGL. Add a choice to a frame and resize the frame in such a way that the choice also gets resized. Now click on the choice and check the drop-down. You would notice that the contents of the drop-down are painted properly only within the old bounds and the resized portion of the choice will appear blank. Say when you select an item, the 'selection' will be painted only till the old bounds and not in the resized area. This is not seen in non-OpenGL mode and not seen with Motif.

            dav Andrei Dmitriev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: