List of usage examples for javax.swing JList getNextMatch
public int getNextMatch(String prefix, int startIndex, Position.Bias bias)
From source file:Main.java
public static void main(String[] argv) throws Exception { String[] items = { "A", "B", "C", "D" }; JList list = new JList(items); String prefix = "b"; int start = 0; int itemIx = list.getNextMatch(prefix, start, javax.swing.text.Position.Bias.Forward); }
From source file:Main.java
public static void main(String[] args) { String[] items = { "A", "B", "C", "D" }; JList list = new JList(items); String prefix = "b"; int start = 0; int itemIx = list.getNextMatch(prefix, start, javax.swing.text.Position.Bias.Forward); System.out.println(itemIx);/* w ww . ja va 2 s .c o m*/ }