org.das2.util.WindowManager

Keep track of window positions. Windows should be passed by this class before they are realized, and the name property of the dialog will be used to look up the last size and position. When the window has a parent, the position is stored relative to the parent. Finally when a window is dismissed, this class should be called again so that the position is kept.


recallWindowSizePosition

recallWindowSizePosition( java.awt.Window window ) → void

call this before the window.

Parameters

window - the window.

Returns:

void (returns nothing)

search for examples view on GitHub view source


recordWindowSizePosition

recordWindowSizePosition( java.awt.Window window ) → void

record the final position of the dialog. This will store the position in the Java prefs manager for this class.

Parameters

window - the window

Returns:

void (returns nothing)

search for examples view on GitHub view source


showConfirmDialog

showConfirmDialog( java.awt.Component parent, javax.swing.JPanel omessage, String title, int optionType, int messageType, javax.swing.Icon icon ) → int

TODO: this will show the icon.

Parameters

parent -
omessage -
title -
optionType -
messageType -
icon -

Returns:

int

search for examples view on GitHub view source