APIdia Launch Partner
Top Fields Constructors Methods
com.sun.java.swing.ui

public Class SplashScreen

extends Window
Class Inheritance
Imports
java.awt.*, javax.swing.ImageIcon

Field Summary

Modifier and TypeField and Description
private ImageIcon

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
paint(Graphics g)

Overrides java.awt.Window.paint.

Paints the container.

public void
setVisible(boolean val)

Overrides java.awt.Window.setVisible.

Shows or hides this Window depending on the value of parameter b.

Inherited from java.awt.Window:
addNotifyaddPropertyChangeListeneraddPropertyChangeListeneraddWindowFocusListeneraddWindowListeneraddWindowStateListenerapplyResourceBundleapplyResourceBundlecreateBufferStrategycreateBufferStrategydisposegetAccessibleContextgetBackgroundgetBufferStrategygetFocusableWindowStategetFocusCycleRootAncestorgetFocusOwnergetFocusTraversalKeysgetIconImagesgetInputContextgetListenersgetLocalegetModalExclusionTypegetMostRecentFocusOwnergetOpacitygetOwnedWindowsgetOwnergetOwnerlessWindowsgetShapegetToolkitgetTypegetWarningStringgetWindowFocusListenersgetWindowListenersgetWindowsgetWindowStateListenershideisActiveisAlwaysOnTopisAlwaysOnTopSupportedisAutoRequestFocusisFocusableWindowisFocusCycleRootisFocusedisLocationByPlatformisOpaqueisShowingisValidateRootpackpostEventprocessEventprocessWindowEventprocessWindowFocusEventprocessWindowStateEventremoveNotifyremoveWindowFocusListenerremoveWindowListenerremoveWindowStateListenerreshapesetAlwaysOnTopsetAutoRequestFocussetBackgroundsetBoundssetBoundssetCursorsetFocusableWindowStatesetFocusCycleRootsetIconImagesetIconImagessetLocationsetLocationsetLocationByPlatformsetLocationRelativeTosetMinimumSizesetModalExclusionTypesetOpacitysetShapesetSizesetSizesetTypeshowtoBacktoFront

Field Detail

screenback to summary
private ImageIcon screen

Constructor Detail

SplashScreenback to summary
public SplashScreen(Frame f)

Method Detail

paintback to summary
public void paint(Graphics g)

Overrides java.awt.Window.paint.

Doc from java.awt.Window.paint.

Paints the container. This forwards the paint to any lightweight components that are children of this container. If this method is reimplemented, super.paint(g) should be called so that lightweight components are properly rendered. If a child component is entirely clipped by the current clipping setting in g, paint() will not be forwarded to that child.

setVisibleback to summary
public void setVisible(boolean val)

Overrides java.awt.Window.setVisible.

Doc from java.awt.Window.setVisible.

Shows or hides this Window depending on the value of parameter b.

If the method shows the window then the window is also made focused under the following conditions:

  • The Window meets the requirements outlined in the isFocusableWindow method.
  • The Window's autoRequestFocus property is of the true value.
  • Native windowing system allows the Window to get focused.
There is an exception for the second condition (the value of the autoRequestFocus property). The property is not taken into account if the window is a modal dialog, which blocks the currently focused window.

Developers must never assume that the window is the focused or active window until it receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event.