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

Left click while resizing is sorting the jtable

    Details

    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5.1, windows_xp

      Description

      OPERATING SYSTEM(S):
      --------------------
      Windows XP

      FULL JDK VERSION(S):
      -------------------
      java version "1.6.0_02"
      Java(TM) SE Runtime Environment (build 1.6.0_02-b04)
      Java HotSpot(TM) Client VM (build 1.6.0_02-b04, mixed mode)


      DESCRIPTION:
      ------------
      PROBLEM DESCRIPTION
           Left click on the mouse while resizing the table headers is performing sort operation.

      STEPS TO REPRODUCE

      1. Install the above mentioned JDK6 build.Set PATH to java.
      2. Run the following command to execute the SwingSet2 application.
      >>java -jar %JAVA_HOME%\demo\jfc\SwingSet2\SwingSet2.jar

      3. Go to "JTable demo" tab i.e 3rd from last.

      4. Move the mouse over horizontal line in between any two column
         headers to get "horizontal resize" mouse icon which is used to
         resize table columns. (eg: place the mouse in between "First Name"
         and "Last Name" column headers.)

      5. Now, left click on the mouse.

      Observed result:
      It sorts the table columns.
      Expected result:
      It should not sort the table columns.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peterz Peter Zhelezniakov
                Reporter:
                elarsen Erik Larsen (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: