Example usage for javax.swing JTabbedPane getSelectedComponent

List of usage examples for javax.swing JTabbedPane getSelectedComponent

Introduction

In this page you can find the example usage for javax.swing JTabbedPane getSelectedComponent.

Prototype

@Transient
public Component getSelectedComponent() 

Source Link

Document

Returns the currently selected component for this tabbedpane.

Usage

From source file:plugin.notes.NotesPlugin.java

public boolean isActive() {
    JTabbedPane tp = Utility.getTabbedPaneFor(theView);
    return tp != null && JOptionPane.getFrameForComponent(tp).isFocused()
            && tp.getSelectedComponent().equals(theView);
}