Code example for JList

Methods: ensureIndexIsVisiblegetSelectedIndexsetSelectedValue