|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
edu.wisc.ssec.mcidasv.util.WelcomeWindow
public class WelcomeWindow
WelcomeWindow
is really just intended to try to detect known
hardware problems and inform the user about any problems.
The current implementation does not perform any detection, but expect this to change.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private JPanel |
buttonPanel
|
private URL |
contents
Java-friendly location of the path to the welcome message. |
private static String |
ERROR_MESSAGE
Message to display if there was a problem loading WELCOME_HTML . |
private static String |
LOGO_PATH
Path to "header" image. |
private JLabel |
logoLabel
|
private JPanel |
logoPanel
|
private JPanel |
mainPanel
|
private JButton |
quitButton
|
private JScrollPane |
scrollPane
|
private JButton |
startButton
|
private JTextPane |
textPane
|
private static String |
WELCOME_HTML
Path to the HTML to display within textPane . |
private static Dimension |
WINDOW_SIZE
Dimensions of the welcome window frame. |
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WelcomeWindow()
Creates new form WelcomeWindow |
Method Summary | |
---|---|
private void |
formWindowClosing(WindowEvent evt)
Handles the user opting to close the welcome window JFrame . |
private void |
initComponents()
This method is called from within the constructor to initialize the form. |
static void |
main(String[] args)
|
private void |
quitButtonActionPerformed(ActionEvent evt)
Handles the user clicking on quitButton . |
private void |
startButtonActionPerformed(ActionEvent evt)
Handles the user clicking on startButton . |
private void |
textPaneHyperlinkUpdate(HyperlinkEvent evt)
Listens to textPane in order to handle the user clicking on
HTML links. |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
private static final String LOGO_PATH
private static final String WELCOME_HTML
textPane
.
private static final String ERROR_MESSAGE
WELCOME_HTML
.
private static final Dimension WINDOW_SIZE
private final URL contents
private final JPanel buttonPanel
private final JLabel logoLabel
private final JPanel logoPanel
private final JPanel mainPanel
private final JButton quitButton
private final JScrollPane scrollPane
private final JButton startButton
private final JTextPane textPane
Constructor Detail |
---|
public WelcomeWindow()
Method Detail |
---|
private void initComponents()
private void startButtonActionPerformed(ActionEvent evt)
startButton
.
Executes System.exit(0)
in an effort to signal to the startup
scripts that the window terminated "normally".
evt
- Event to handle. Currently ignored.private void quitButtonActionPerformed(ActionEvent evt)
quitButton
. Doesn't do anything
aside from handing off things to
formWindowClosing(java.awt.event.WindowEvent)
evt
- Event to handle. Currently ignored.formWindowClosing(java.awt.event.WindowEvent)
private void formWindowClosing(WindowEvent evt)
JFrame
. Executes System.exit(1)
in an
effort to signal to the startup scripts that window terminated
"abnormally".
An abnormal termination will result in the startup script terminating the launch of McIDAS-V.
evt
- Note that this parameter is currently ignored.private void textPaneHyperlinkUpdate(HyperlinkEvent evt)
textPane
in order to handle the user clicking on
HTML links.
evt
- Event to handle. Anything other than
HyperlinkEvent.EventType.ACTIVATED
is ignored.WebBrowser.browse(String)
public static void main(String[] args)
args
- the command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |