Java Window getWindowTitle(Window window)

Here you can find the source of getWindowTitle(Window window)

Description

get Window Title

License

Open Source License

Declaration

private static String getWindowTitle(Window window) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import java.awt.Window;

import javax.swing.JDialog;
import javax.swing.JFrame;

public class Main {
    private static String getWindowTitle(Window window) {
        String title = null;//  ww  w.j  a  v  a2  s  .  com
        if (window instanceof JDialog) {
            title = ((JDialog) window).getTitle();
        } else if (window instanceof JFrame) {
            title = ((JFrame) window).getTitle();
        }
        return title;
    }
}

Related

  1. getVisibleWindowByName(String name)
  2. getWindow(final Object source)
  3. getWindow(String title)
  4. getWindowNormalBounds(Window window)
  5. getWindowTitle(Window window)
  6. growIfNecessary(Window window)
  7. hideWaitPane(Window win, Timer timer)
  8. installPrefsHandler(final Preferences prefs, final String name, Window window)
  9. isResizable(Window window)