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

doc should have bindings for JScrollBar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.4.0
    • docs
    • x86
    • windows_95

      Key-index.html does not have any key entries for JScrollbars. setFocusEnabled(true) allows focus on the keyboard, but there is no spec as to what key bindings should do on this component. They seem to act the same as JSlider.

      Sample below allows the slider to accept focus and keyboard to be used.

      import java.awt.*;
      import javax.swing.*;
      public class JFrame1 extends javax.swing.JFrame
      {
      public JFrame1(){
      getContentPane().setLayout(null);
      setSize(405,305);
      setVisible(false);
      JScrollBar1.setRequestFocusEnabled(true);
      getContentPane().add(JScrollBar1);
      JScrollBar1.setBounds(162,24,39,236);
      }

      static public void main(String args[]){
      (new JFrame1()).setVisible(true);
      }

      javax.swing.JScrollBar JScrollBar1 = new javax.swing.JScrollBar();


      }

            sharonz Sharon Zakhour (Inactive)
            jdixonsunw John Dixon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: