public Component getComponentBefore(Container cont, Component comp) {
   if (comp == tabbedPane) {
     String tabTitle = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());
     Component prev = tabBefore.get(tabTitle);
     if (prev != null) return prev;
   }
   Component prev = before.get(comp);
   if (prev != null) return prev;
   return defaultPolicy.getComponentBefore(cont, comp);
 }
 public Component getFirstComponent(Container root) {
   return defaultPolicy.getFirstComponent(root);
 }
 public Component getComponentAfter(Container cont, Component comp) {
   Component next = after.get(comp);
   if (next != null) return next;
   return defaultPolicy.getComponentAfter(cont, comp);
 }