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

Win2K: GraphicsEnvironment.getDefaultScreenDevice always returns first screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.1_04, 1.4.0
    • Fix Version/s: 1.3.1_07
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      07
    • CPU:
      x86
    • OS:
      windows_2000

      Backports

        Description

        Win2K allows user to select primary screen in multiscreen
        configuration.
        However, GraphicsEnvironment.getDefaultScreenDevice always returns
        the first screen no matter which screen is set primary.
        Run the following application on Win2K or WinME with the second
        screen set as primary:

        import java.awt.*;
        public class Test {
            public static void main(String argv[]) {
        GraphicsConfiguration gc =
        GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();
        System.err.println("gc=" + gc);
            }
        }

        You'll always get:
        gc=Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=1]

        The bug has been there for a while (since multiscreen support
        was introduced in 1.3).

        dmitri.trembovetski@eng 2001-06-22

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                tdv Dmitri Trembovetski (Inactive)
                Reporter:
                tdv Dmitri Trembovetski (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: