Skip to content
Haixing Hu edited this page Sep 18, 2014 · 1 revision

This is the Header widget comes from the OPAL project, with some refactoring of the implementaion.

Usage

Screen Shot of the Header Widget

final Image icon = SWTResourceManager.getImage(HeaderExample.class,
	    "/images/configure.png");
final PanelHeader header = new PanelHeader(shell, SWT.NONE);
header.setTitle("Header Title");
header.setImage(icon);
header.setDescription("Description area for the header. You can put all "
    + "<b>additional</b>, <i>relevant information</i> to the "
    + "description panel (or <u>jokes</u>, citations, "
    + "... <color=red>what you want!</color>)");

Example

An example is located in the source repository:

src/test/java/com/github/haixing_hu/swt/window/PanelHeaderExample.java
Clone this wiki locally