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

Ctrl-click in Scrollbar moves slider to top/bottom but no event is generated.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.6
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Backports

        Description



        Name: joT67522 Date: 09/02/97


        1. Construct a scrollbar, and add it to your panel; add
           yourself as an AdjustmentListener.
        2. Do ctl-left-mouse in the scrollbar trough.
        3. The adjustmentValueChanged() method isn't called.

        NOTE: in Motif, these are the XmCR_TO_TOP and XmCR_TO_BOTTOM
              events.


        class WGFrameSummaryData extends Panel
                                 implements JCSelectListener,
                                            AdjustmentListener
        {
            ...
            _sb = new Scrollbar();
            _sb.addAdjustmentListener(this);

            setLayout(new BorderLayout());
            ...
            add(_sb, "East");
            }

           ...

          public void adjustmentValueChanged(AdjustmentEvent e)
          {
            // NOTE: to-top and to-bottem events are not supplied!

            System.out.println("adjustmentValueChanged() " + e.getAdjustmentType());
            System.out.println("\t"+e.getValue());
          }

        company - Wandel & Goltermann , email - ###@###.###
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                xdengsunw Xianfa Deng (Inactive)
                Reporter:
                johsunw Joon Oh (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: