Search in sources :

Example 1 with FrameButton

use of org.apache.pivot.wtk.skin.terra.TerraFrameSkin.FrameButton in project pivot by apache.

the class FakeWindowSkin method install.

@Override
public void install(Component component) {
    super.install(component);
    FakeWindow window = (FakeWindow) component;
    window.getWindowListeners().add(this);
    FakeWindow frame = (FakeWindow) getComponent();
    // Attach the drop-shadow decorator
    dropShadowDecorator = new DropShadowDecorator();
    frame.getDecorators().add(dropShadowDecorator);
    frame.add(titleBarTablePane);
    // Create the frame buttons
    minimizeButton = new FrameButton(minimizeImage);
    maximizeButton = new FrameButton(maximizeImage);
    closeButton = new FrameButton(closeImage);
    buttonBoxPane.add(minimizeButton);
    buttonBoxPane.add(maximizeButton);
    buttonBoxPane.add(closeButton);
    iconAdded(frame, null);
    titleChanged(frame, null);
}
Also used : FrameButton(org.apache.pivot.wtk.skin.terra.TerraFrameSkin.FrameButton) DropShadowDecorator(org.apache.pivot.wtk.effects.DropShadowDecorator)

Aggregations

DropShadowDecorator (org.apache.pivot.wtk.effects.DropShadowDecorator)1 FrameButton (org.apache.pivot.wtk.skin.terra.TerraFrameSkin.FrameButton)1