Example usage for javax.swing JRadioButton isShowing

List of usage examples for javax.swing JRadioButton isShowing

Introduction

In this page you can find the example usage for javax.swing JRadioButton isShowing.

Prototype

public boolean isShowing() 

Source Link

Document

Determines whether this component is showing on screen.

Usage

From source file:com.mirth.connect.client.ui.browsers.message.MessageBrowser.java

public void updateMessageRadioGroup() {
    JRadioButton button = getRadioButtonForMessagePane(lastUserSelectedMessageType);

    if (!button.isShowing()) {
        button = RawMessageRadioButton;/*  w  w w  .  j ava2 s . c  o m*/
    }

    button.setSelected(true);
    showMessagePane(button.getText());
}