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

Frame icon image is black&white when using 8-bit color

XMLWordPrintable

    • b01
    • x86
    • windows_95



      Name: sgC58550 Date: 03/25/97


      1. Use the Control Panel/Display/Settings/Color Palette to set
         the system's color depth to 256 colors.

      2. Run a java program (I used a stand-alone app) which brings up
         a frame with a frame icon set using method Frame.setIconImage.

      The frame icon is displayed in black and white only. All colors,
      other than white, are rendered as black. This is true of both
      gif and jpg images.

      The problem does not occur if the systems's color depth is set
      16-bit or 32-bit color.

      A RELATED PROBLEM:
      If the color depth is reduced to 16 colors, running the same
      java program will call cause the program to crash with the
      following dump:

      JAVA caused an invalid page fault in
      module WINAWT.DLL at 0137:01f5d514.
      Registers:
      EAX=00000000 CS=0137 EIP=01f5d514 EFLGS=00010246
      EBX=00e66a80 SS=013f ESP=022df8c8 EBP=00780970
      ECX=00000020 DS=013f ESI=00780970 FS=2d97
      EDX=00000000 ES=013f EDI=00e66b38 GS=0000
      Bytes at CS:EIP:
      89 48 04 8b 46 30 8b 0d f8 57 f7 01 f7 d8 89 41
      Stack dump:
      01f75800 00000000 00000000 00000000 00780970 00e66b38 00000001
      00e66a80 01f5fc52 00000000 00000000 00000000 00000000 006e6eb4
      006f3048 006f304c
      company - Gray Matter Software, Inc. , email - ###@###.###
      ======================================================================

            rkarsunw Ralph Kar (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: