Package javax.swing

Examples of javax.swing.JSplitPane.addHierarchyListener()


      getDetectorTextPanel().setPreferredSize(preferredSize);
      scrollPane.setBorder(null);
      //mainPanel.add(getDetectorTextPanel(), "1, 9, 1, 9");

      final JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, detectorPanel, getDetectorTextPanel());
      splitPane.addHierarchyListener(new HierarchyListener() {
        public void hierarchyChanged(final HierarchyEvent e) {
          if (e.getChangeFlags() == HierarchyEvent.SHOWING_CHANGED) {
            if (splitPane.isShowing()) {
              splitPane.setDividerLocation(0.75);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.