Java >
Guidelines Home Page >  Java Look and Feel Design Guidelines
>
Part III: The Components of the Java Foundation Classes
> 7: Windows and Panes >
Window Titles
  Previous Next Contents/Index/Search


Window Titles

This section discusses conventions for window titles of both primary and secondary windows. Italics indicate text you must replace; window titles themselves do not use the italic font style.

Title Text in Primary Windows

The title text in a primary window should use the format Document or Object Name - Application Name . Figure 105 shows the proper format for the window title, with the document title appearing first. If the title is truncated, the most important part of the title remains visible.

Figure 105   Proper Format for Window Title

 

Primary Window Title Format

  In primary windows, begin the window title text with a name describing the contents of the window, followed by a space, a hyphen, another space, and the application name.

Title Text in Secondary Windows

The title text in secondary windows should use the format Descriptive Name - Application Name . The Application Name is optional but should be included if users might not otherwise recognize the source of the secondary window.

  In secondary windows, begin the window title with a name describing the contents of the window. Follow that text with the application name when users might be unclear which application is associated with the window.

The secondary window in the following figure is often displayed by the MetalButler calendar program while users are focused on some other task. Therefore, its window title includes the application name.

Figure 106   Secondary Window Title With Optional Application Name

 

Secondary Window Title With Application Name

The secondary window shown in Figure 107 is displayed immediately after a user tries to save a new file with an existing name. The source of the alert box is clear. Therefore, the window title does not include the application name.

 Click here to view the corresponding code for Figure 107 (also available on the book's companion CD-ROM).

Figure 107   Secondary Window Title Without Optional Application Name

 

Secondary Window Title Without Application Name

Title Text in Internal Windows

The title text in internal windows should use the format Descriptive Name or Descriptive Name - Tool Name . For an example of the title text in an internal window, see Figure 102.

  In an internal window, provide the window title with a name describing the contents of the window. Since the backing window makes the application name clear, you can omit the application name. If there is a tool within the application, you can use the format Descriptive Name - Tool Name .


Java Look and Feel Design Guidelines, second edition.
Copyright 2001. Sun Microsystems, Inc. All Rights Reserved.
Previous Next Contents/Index/Search
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve
JavaOne Banner Java 8 banner (182)