lb = ((BasicArrowButton) c1); rb = ((BasicArrowButton) c2);
lb = (BasicArrowButton) c1; rb = (BasicArrowButton) c2;
    public void layoutContainer(Container c)    {      // The only components we care about setting up are the      // one touch buttons.      if (splitPane.isOneTouchExpandable())        {          if (c.getComponentCount() == 2)            {              Component c1 = c.getComponent(0);              Component c2 = c.getComponent(1);              if ((c1 instanceof BasicArrowButton)                  && (c2 instanceof BasicArrowButton))                {                  lb = ((BasicArrowButton) c1);                  rb = ((BasicArrowButton) c2);                }            }          if (rb != null && lb != null)            {              Point p = getLocation();              lb.setSize(lb.getPreferredSize());              rb.setSize(rb.getPreferredSize());              lb.setLocation(p.x, p.y);                            if (orientation == JSplitPane.HORIZONTAL_SPLIT)                {                  rb.setDirection(SwingConstants.EAST);                  lb.setDirection(SwingConstants.WEST);                  rb.setLocation(p.x, p.y + lb.getHeight());                }              else                {                  rb.setDirection(SwingConstants.SOUTH);                  lb.setDirection(SwingConstants.NORTH);                  rb.setLocation(p.x + lb.getWidth(), p.y);                }            }        }    }