Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public Component getFirstComponent(Container root) {
   return defaultPolicy.getFirstComponent(root);
 }
Ejemplo n.º 3
0
 public Component getComponentAfter(Container cont, Component comp) {
   Component next = after.get(comp);
   if (next != null) return next;
   return defaultPolicy.getComponentAfter(cont, comp);
 }