JAL-845 handling eXpand/Gather split frame views
[jalview.git] / src / jalview / jbgui / GAlignFrame.java
index 1cfc73c..2d23e6b 100755 (executable)
@@ -3253,4 +3253,15 @@ public class GAlignFrame extends JInternalFrame
   {
     return this.accelerators;
   }
+
+  /**
+   * Returns the selected index of the tabbed pane, or -1 if none selected
+   * (including the case where the tabbed pane has not been made visible).
+   * 
+   * @return
+   */
+  public int getTabIndex()
+  {
+    return tabbedPane.getSelectedIndex();
+  }
 }