コード例 #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;
 }
コード例 #2
0
 public void testSplitPane() throws Exception {
   JSplitPane splitPane =
       (JSplitPane) getInstrumentedRootComponent("TestSplitPane.form", "BindingTest");
   assertTrue(splitPane.getLeftComponent() instanceof JLabel);
   assertTrue(splitPane.getRightComponent() instanceof JCheckBox);
 }