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

Swing Application unusable in portrait display

XMLWordPrintable

    • 2d
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      (1)java version "1.6.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59)
      Java HotSpot(TM) Client VM (build 1.6.0-beta-b59, mixed mode, sharing)
      (2) java version "1.5.0_05"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)




      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Dell Optiplex GX280
      Dell 1905FP LCD Monitor (1024 by 1280)

      RADEON X300 SE (0x5B60) 64MB DDR (SGRAM/SDRAM)
      BIOS 113-A26005-100 version 008.015.113..000 2004/05/12 PCI Express
      Graphics card by ATI Technologies




      A DESCRIPTION OF THE PROBLEM :
      After changing the orientation of my Dell LCD (1024 by 1280) monitor from "landscape" to "portrait," my large Swing applications are rendered unusable.

      It looks like I'm seeing the double buffering image.

      The small Swing application, using similar technology appears normally, probably because it is small enough to fit the screen in either orientation.

       The two large ones appear with an unusable main window and a "ghost" image, though not quite the same. One of my toolbar buttones is in the middle of the other screen, and some buttones only appear when the mouse cursor passes over them.

      The same occurs in either Tiger or Mustang release noted.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I would suggest starting a large wide Swing Application that uses JToolbar (North) JTables on tab panes in landscape orientation, then close it. Change the monitor to portrait, set the desktop properties to rotate 90 and then start it up again.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      In landscape mode tha application looks completely normal.

      After turning the monitor, you see the empty XP desktop sideways, use the mouse to set the orientaion, so the hight is now longer than the width.

      There should be no difference in the functionality of the application. The width should be automatically adjusted
      ACTUAL -
      Start the application: the main window appears, clipped on the right, with a button in the middle of nowhere, mouse hover will reveal more..., the ghost image is below and to the right, but NEITHER is remotely functional.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      N/A I think any large Swing application will do; I will try it again with SwingSet2 to see if there's any change
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I am only guessing, but I would try opening and resizing the applications in landscape mode, and closing them, before changing the orientation.


      The proble would be severe, except that users are not using this orientation for the most part. They may be forced two when we start using forms web applications after migration, in about five months. It may also be due to a device driver bug.

            campbell Christopher Campbell (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: