Example usage for java.awt Frame setTitle

List of usage examples for java.awt Frame setTitle

Introduction

In this page you can find the example usage for java.awt Frame setTitle.

Prototype

public void setTitle(String title) 

Source Link

Document

Sets the title for this frame to the specified string.

Usage

From source file:org.sleuthkit.autopsy.casemodule.Case.java

private static void updateMainWindowTitle(String newCaseName) {
    // update case name
    if (!newCaseName.equals("")) {
        Frame f = WindowManager.getDefault().getMainWindow();
        f.setTitle(newCaseName + " - " + Case.getAppName()); // set the window name to the new value
    }// www . j a  v  a 2  s .c om
}