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

Scrollbar goes catatonic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.4
    • client-libs
    • x86
    • windows_95



      Name: diC59631 Date: 11/03/97


      In jdk 1.1.4, a simple scrollbar totally flakes
      out and locks up if used. This was reported many
      times in the past, but someone has closed all the
      bug reports with a comment of "I don't know what
      the fix was, but it is no longer visible...."

      He doesn't know what the fix was because there was
      no fix. By closing the bug report, and a half
      dozen others he claims are duplicates, he makes it
      impossible for us to vote to have this thing
      fixed once and for all.

      The only thing I can think of is just to report
      it as a "new bug", though it's really a request
      to reopen one that should never have been closed:

      Bug Id 4063785 and all of its "duplicates".

      This is *not* fixed as of JDK 1.1.4! You can claim
      it is a "known Windows bug" if you like, [cf. your
      notes accompanying Bug Id 4028490], but if so,
      then find the "known Windows workaround" that apparently
      everyone else in the Win32 world is using, because this
      behavior is not observable in any other Windows app
      I have ever used.

      The scrollbar used to take off and scroll itself wildly
      if you clicked on it several times in rapid succession.
      As of Java 1.1.3, it appears as though the scrollbar
      simply goes catatonic and virtually ceases to function
      at all after the first click. If a scrollbar that locks up
      and won't move at all qualifies as a fix for a scrollbar
      that takes off and wildly scrolls itself, then I apologize.
      Consider it closed. I don't think I would have closed a
      bug in my own code with a fix like that, though.

      It is completely repeatable in JDK 1.1.4 on Win95
      and in the new Visual Cafe Pro 2.0 which uses Java 1.1.3.

      Once again, here's a complete standalone
      app that makes the problem 100% reproducible on
      my Win95 machine. It's about as simple as a GUI app can be,
      just a scrollbar and a textfield showing the value.

      Run it on a Win95 machine, play with the scrollbar,
      and see for yourself what we are all talking about. I'm
      not surprised that your licensees are pestering you
      to get it fixed. [cf. your notes on bug 4063785].
      Standalone scrollbars (AWT.Scrollbar) have been
      seriously broken since alpha 3, and never seem to
      get any better. Please, do a search on your bug
      database for the word "scrollbar" and notice just how *many*
      bugs a simple scrollbar manages to have in Java.

      A scrollbar with a range of 0-100 should go from
      0-100. All the controls on the scrollbar should work.
      The page size setting adjustment should work. The
      slider size adjustment should work. Just like any Win32 app.

      Your voting system (which I applaud) ends up spreading
      out all the scrollbar votes over a *lot* of bug
      reports, and prevents us from voting for the
      ones that you've accidentally closed, so it's
      hard to get scrollbars to stay on your radar
      long enough to get fixed.

      Please, give us a simple, working scrollbar.

      Thank you.


      Here's the code:

      import java.awt.*;
      import java.awt.event.*;

      public class Scroller extends Frame implements AdjustmentListener
      {
          TextField tf;
          Scrollbar sb;
          
          public Scroller()
          {
              setTitle("Scrollbar Bug");
              
              tf = new TextField("");
              add("Center",tf);
              
              sb = new Scrollbar(Scrollbar.HORIZONTAL, 0, 10, 0, 100);
              add("South",sb);
              
              sb.addAdjustmentListener(this);
              
              WindowListener wl = new WindowAdapter()
              {
                  public void windowClosing(WindowEvent e)
                  {
                      System.exit(0);
                  }
              };
              addWindowListener(wl);
          }
          
          public void adjustmentValueChanged(AdjustmentEvent evt)
          {
              tf.setText(String.valueOf(evt.getValue()));
          }

          public static void main(String[] args)
          {
             Scroller test = new Scroller();
             test.resize(320, 200);
             test.setVisible(true);
          }
      }

      Some additional Info...

      win95 4.00.950a with the Microsoft plus pack

      Also have microsofts kernel update installed.
      (Review ID: 18889)
      ======================================================================

            uwesunw Uwe Uwe (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: