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

JTableHeader: must not resize on mouse gesture in resize region

    XMLWordPrintable

Details

    Description

      FULL PRODUCT VERSION :
      java version "1.6.0_14"
      Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
      Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)


      A DESCRIPTION OF THE PROBLEM :

      Typically, some mouse event over a column header sorts the table column (if sorting enabled). This must not happen if the event's location is in the resize region, that is if the cursor is changed to the resize cursor. Reasons:

      - inconsistent with native OS behaviour (at least in windows, don't know about others)
      - additionally confusing the user because she expects nothing else but resizing (seeing the visual clue for that action)
      - hinders custom actions (like f.i. adjusting column widths to maximal entry width on mouse double, that's standard native behaviour - windows again



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      take your favourite sort-enable JTable example and click into the resize region


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :

      there are some very dirty tricks. In SwingX we are swaying if we want to apply one or other. Without this fixed, we have the option to either drop some enhanced features or apply those dirty tricks. Both nasty ..

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: