Ejemplo n.º 1
0
 public int getHorizontalDivider() {
   int location =
       horizontalSplitPane.getSize().width
           - horizontalSplitPane.getInsets().left
           - horizontalSplitPane.getDividerSize()
           - horizontalSplitPane.getRightComponent().getWidth();
   double width = indexingFrame.getWidth();
   double proportionalLocation = location / width;
   // horizontalSplitPane.setDividerLocation(proportionalLocation);
   return location;
 }
 public void testSplitPane() throws Exception {
   JSplitPane splitPane =
       (JSplitPane) getInstrumentedRootComponent("TestSplitPane.form", "BindingTest");
   assertTrue(splitPane.getLeftComponent() instanceof JLabel);
   assertTrue(splitPane.getRightComponent() instanceof JCheckBox);
 }