List of usage examples for javax.swing JTabbedPane getComponentCount
public int getComponentCount()
From source file:Main.java
public static int getIndexOf(JTabbedPane tabbedPane, Component component) { int result = -1; for (int i = 0; i < tabbedPane.getComponentCount(); i++) { Component comp = tabbedPane.getComponentAt(i); if (comp == component) { result = i;/*ww w. ja va2s . c o m*/ break; } } return result; }