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);
}
Aggregations