/** In 1.4, panels can and will receive focus; if we define our own * focus policy, we're responsible for all possible subcomponents. * Therfore just proxy requestFocusInWindow for the selected radio * button */ public void requestFocus() { Component[] c = getComponents(); if (c.length > 0) { for (int i = 0; i < c.length; i++) { if (c[i] instanceof InvRadioButton && ((InvRadioButton) c[i]).isSelected()) { c[i].requestFocus(); return; } } c[0].requestFocus(); } else { super.requestFocus(); } }
/** In 1.4, panels can and will receive focus; if we define our own * focus policy, we're responsible for all possible subcomponents. * Therfore just proxy requestFocusInWindow for the selected radio * button */ public void requestFocus() { Component[] c = getComponents(); if (c.length > 0) { for (int i=0; i < c.length; i++) { if (c[i] instanceof InvRadioButton && ((InvRadioButton) c[i]).isSelected()) { c[i].requestFocus(); return; } } c[0].requestFocus(); } else { super.requestFocus(); } }
/** In 1.4, panels can and will receive focus; if we define our own * focus policy, we're responsible for all possible subcomponents. * Therfore just proxy requestFocusInWindow for the selected radio * button */ public void requestFocus() { Component[] c = getComponents(); if (c.length > 0) { for (int i=0; i < c.length; i++) { if (c[i] instanceof InvRadioButton && ((InvRadioButton) c[i]).isSelected()) { c[i].requestFocus(); return; } } c[0].requestFocus(); } else { super.requestFocus(); } }
public boolean requestFocusInWindow() { Component[] c = getComponents(); for (int i=0; i < c.length; i++) { if (c[i] instanceof InvRadioButton && ((InvRadioButton) c[i]).isSelected()) { return c[i].requestFocusInWindow(); } } return super.requestFocusInWindow(); }
public boolean requestFocusInWindow() { Component[] c = getComponents(); for (int i = 0; i < c.length; i++) { if (c[i] instanceof InvRadioButton && ((InvRadioButton) c[i]).isSelected()) { return c[i].requestFocusInWindow(); } } return super.requestFocusInWindow(); }
public boolean requestFocusInWindow() { Component[] c = getComponents(); for (int i=0; i < c.length; i++) { if (c[i] instanceof InvRadioButton && ((InvRadioButton) c[i]).isSelected()) { return c[i].requestFocusInWindow(); } } return super.requestFocusInWindow(); }