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

[macosx] Clicking on a scrollbar causes crashes on the Mac El Capitan OS

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.8.0_45"
      Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac El Capitan OS

      A DESCRIPTION OF THE PROBLEM :
      Clicking on a scrollbar causes a crash on El Capitan.
      A small example is attached.


      REPRODUCIBILITY :
      This bug can be reproduced often.

      ---------- BEGIN SOURCE ----------
      import java.awt.*;
      import javax.swing.*;

      class ScrolledPane
      extends JFrame
      {
      private JScrollPane scrollPane;

      public ScrolledPane()
      {
      setTitle( "Scrolling Pane Application" );
      setSize( 200, 200 );
      setBackground( Color.gray );
      setDefaultCloseOperation(EXIT_ON_CLOSE);

      JPanel topPanel = new JPanel();
      topPanel.setLayout( new BorderLayout() );
      getContentPane().add( topPanel );

      //Icon image = new ImageIcon( "chanceBlue.gif" );
      JLabel label = new JLabel( "Hello World" );

      // Create a tabbed pane
      scrollPane = new JScrollPane();
      scrollPane.getViewport().add( label );
      topPanel.add( scrollPane, BorderLayout.CENTER );
      }


      public static void main( String args[] )
      {

      // Create an instance of the test application
      ScrolledPane mainFrame = new ScrolledPane();
      mainFrame.setVisible( true );
      }
      }
      ---------- END SOURCE ----------

            alexsch Alexandr Scherbatiy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: