com.explodingpixels.macwidgets
public class HudWindow extends Object
An implementation of an OS X Transparent Panel, also known as a Heads Up Display (HUD). For a full descrption of what a Transparent Panel is, see the Transparent Panels section of Apple's Human Interface Guidelines.
HUD's are designed to offer a lightweight way to unobtrusivley offer controls to the user. The window
looks like this:
As Apple points out, this component is not appropriate for all situations and should be used judiciously.
Constructor and Description |
---|
HudWindow()
Creates a Heads Up Display style window.
|
HudWindow(String title)
Creates a Heads Up Display style window.
|
HudWindow(String title,
Frame owner)
Creates a Heads Up Display style window.
|
Modifier and Type | Method and Description |
---|---|
JComponent |
getContentPane()
Gets the
JComponent to add content to. |
JDialog |
getJDialog()
Gets the
JDialog backing this HudWindow . |
void |
hideCloseButton()
Hides the close button on this HUD's title bar.
|
void |
makeResizeable()
Makes this HUD resizeable.
|
void |
setContentPane(JComponent contentPane)
Sets the
JComponent to use as the container for this HudWindow 's content. |
public HudWindow()
public HudWindow(String title)
title
- the title to use for this window.public JDialog getJDialog()
JDialog
backing this HudWindow
.JDialog
backing this HudWindow
.public void hideCloseButton()
public void makeResizeable()
public JComponent getContentPane()
JComponent
to add content to.public void setContentPane(JComponent contentPane)
JComponent
to use as the container for this HudWindow
's content.contentPane
- the container for this HudWindow
's content.