Code example for JList

Methods: getCellBounds

0
 */ 
final class JListCellBoundsQuery { 
  @RunsInCurrentThread 
  static @Nullable Rectangle cellBounds(@Nonnull JList list, int index) {
    checkIndexInBounds(list, index);
    return list.getCellBounds(index, index);
  } 
 
  private JListCellBoundsQuery() {} 
} 
Experience pair programming with AI  Get Codota for Java