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

JSplitPane divider too small on Windows L&F

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • x86
    • windows_nt, windows_2000



      Name: rmT116609 Date: 10/30/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      When using Windows look and feel, JSplitPane divider size is too small - you
      can't make out the arrows. Here is a test program:

      package javatests;

      import javax.swing.JFrame;

      /**
       * Title:
       * Description:
       * Copyright: Copyright (c)
       * Company:
       * @author
       * @version 1.0
       */

      import javax.swing.*;
      import javax.swing.table.*;

      public class SimpleSplitPane extends JFrame {

        public SimpleSplitPane() {
          super("SimpleSplitPane");
          setSize(450,400);

          JPanel panel = new JPanel();
          panel.add(new JButton("test"));
          JTable table = new JTable(new DefaultTableModel());

          JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
            false, panel, table);
          split.setOneTouchExpandable(true);
          //split.setDividerSize(10);
          getContentPane().add(split);
        }


        public static void main(String[] args) {
          try {
          UIManager.setLookAndFeel ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
          //UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
          }
          catch (Exception ex) { ex.printStackTrace(); };

          SimpleSplitPane split = new SimpleSplitPane();
          split.setVisible(true);
        }
      }
      (Review ID: 111580)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: