KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > awt > Window

java.awt
Class Window

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
BasicToolBarUI.DragWindow, Dialog, Frame, JWindow
See Also:
Top Examples, Source Code, Window(Window, GraphicsConfiguration), WindowEvent, addWindowListener(java.awt.event.WindowListener), BorderLayout

public void addNotify()
See Also:
Container.removeNotify(), Component.isDisplayable()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addPropertyChangeListener(PropertyChangeListener listener)
See Also:
addPropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener), Component.removePropertyChangeListener(java.beans.PropertyChangeListener), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
See Also:
Component.removePropertyChangeListener(java.beans.PropertyChangeListener), addPropertyChangeListener(java.beans.PropertyChangeListener), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addWindowFocusListener(WindowFocusListener l)
See Also:
getWindowFocusListeners(), removeWindowFocusListener(java.awt.event.WindowFocusListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addWindowListener(WindowListener l)
See Also:
getWindowListeners(), removeWindowListener(java.awt.event.WindowListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addWindowStateListener(WindowStateListener l)
See Also:
getWindowStateListeners(), removeWindowStateListener(java.awt.event.WindowStateListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void applyResourceBundle(String rbName)
See Also:
Component.applyComponentOrientation
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void applyResourceBundle(ResourceBundle rb)
See Also:
Component.applyComponentOrientation
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void createBufferStrategy(int numBuffers)
See Also:
getBufferStrategy(), Component.isDisplayable(), IllegalStateException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void createBufferStrategy(int numBuffers,
                                 BufferCapabilities caps)
                          throws AWTException
See Also:
getBufferStrategy(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void dispose()
See Also:
show(), pack(), Component.isDisplayable()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void finalize()
                 throws Throwable
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
Component, Accessible
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BufferStrategy getBufferStrategy()
See Also:
createBufferStrategy(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getFocusableWindowState()
See Also:
Component.setFocusable(boolean), isShowing(), setFocusableWindowState(boolean), isFocusableWindow()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Container getFocusCycleRootAncestor()
See Also:
Container.isFocusCycleRoot(), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getFocusOwner()
See Also:
isFocused(), getMostRecentFocusOwner()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Set<AWTKeyStroke> getFocusTraversalKeys(int id)
See Also:
KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS, KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS, KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, Container.setFocusTraversalKeys(int, java.util.Set), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public GraphicsConfiguration getGraphicsConfiguration()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public InputContext getInputContext()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public <T extends EventListener> T[] getListeners(Class<T> listenerType)
See Also:
getWindowListeners(), ClassCastException, Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Locale getLocale()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getMostRecentFocusOwner()
See Also:
isFocusableWindow(), isFocused(), getFocusOwner()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Window[] getOwnedWindows()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Window getOwner()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Toolkit getToolkit()
See Also:
Toolkit.getDefaultToolkit(), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final String getWarningString()
See Also:
SecurityManager.checkTopLevelWindow(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public WindowFocusListener[] getWindowFocusListeners()
See Also:
removeWindowFocusListener(java.awt.event.WindowFocusListener), addWindowFocusListener(java.awt.event.WindowFocusListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public WindowListener[] getWindowListeners()
See Also:
removeWindowListener(java.awt.event.WindowListener), addWindowListener(java.awt.event.WindowListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public WindowStateListener[] getWindowStateListeners()
See Also:
removeWindowStateListener(java.awt.event.WindowStateListener), addWindowStateListener(java.awt.event.WindowStateListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void hide()
See Also:
Component, Component.setVisible(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isActive()
See Also:
isFocused()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean isAlwaysOnTop()
See Also:
setAlwaysOnTop(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean isFocusableWindow()
See Also:
Component.isFocusable(), isShowing(), setFocusableWindowState(boolean), getFocusableWindowState()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean isFocusCycleRoot()
See Also:
Container.getFocusTraversalPolicy(), Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy), setFocusCycleRoot(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isFocused()
See Also:
isActive()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isLocationByPlatform()
See Also:
isShowing(), setLocationByPlatform(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isShowing()
See Also:
Component.setVisible(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void pack()
See Also:
Component.isDisplayable()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1233]Read and Display an Image File using JAI
By Anonymous on 2004/12/28 00:16:59  Rate
//Read and Display an Image File using JAI 
 RenderedOp img = JAI.create ( "fileload", "kickjava.jpg ) ; 
  
  
 // Set display name and layout. 
 aAwtWindow.setTitle ( getClass (  ) .getName (  ) +": "+fileName ) ; 
  
  
 // Display the image. 
 aAwtWindow.add ( new ScrollingImagePanel ( img, img.getWidth (  ) , img.getHeight (  )  )  ) ; 
 aAwtWindow.pack (  ) ; 
 aAwtWindow.show (  ) ; 
  
  
 


@Deprecated
public boolean postEvent(Event e)
See Also:
Component, MenuContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processEvent(AWTEvent e)
See Also:
Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent), Component.processHierarchyEvent(java.awt.event.HierarchyEvent), Component.processInputMethodEvent(java.awt.event.InputMethodEvent), Component.processMouseMotionEvent(java.awt.event.MouseEvent), Component.processMouseEvent(java.awt.event.MouseEvent), Component.processKeyEvent(java.awt.event.KeyEvent), Component.processFocusEvent(java.awt.event.FocusEvent), Component.processComponentEvent(java.awt.event.ComponentEvent), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processWindowEvent(WindowEvent e)
See Also:
Component.enableEvents(long)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processWindowFocusEvent(WindowEvent e)
See Also:
Component.enableEvents(long)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processWindowStateEvent(WindowEvent e)
See Also:
Component.enableEvents(long)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeWindowFocusListener(WindowFocusListener l)
See Also:
getWindowFocusListeners(), addWindowFocusListener(java.awt.event.WindowFocusListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeWindowListener(WindowListener l)
See Also:
getWindowListeners(), addWindowListener(java.awt.event.WindowListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeWindowStateListener(WindowStateListener l)
See Also:
getWindowStateListeners(), addWindowStateListener(java.awt.event.WindowStateListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void setAlwaysOnTop(boolean alwaysOnTop)
                          throws SecurityException
See Also:
AWTPermission, toBack(), toFront(), isAlwaysOnTop()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setBounds(int x,
                      int y,
                      int width,
                      int height)
See Also:
isLocationByPlatform(), setLocationByPlatform(boolean), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setCursor(Cursor cursor)
See Also:
Component.getCursor()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFocusableWindowState(boolean focusableWindowState)
See Also:
Component.setFocusable(boolean), isShowing(), getFocusableWindowState(), isFocusableWindow()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void setFocusCycleRoot(boolean focusCycleRoot)
See Also:
Container.getFocusTraversalPolicy(), Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy), isFocusCycleRoot()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLocationByPlatform(boolean locationByPlatform)
See Also:
System.getProperty(String), isLocationByPlatform(), Component.setVisible(boolean), isShowing(), Component.setLocation(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLocationRelativeTo(Component c)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void show()
See Also:
Component, Component.setVisible(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void toBack()
See Also:
toFront()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void toFront()
See Also:
toBack()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Window(Frame owner)
See Also:
isShowing(), SecurityManager.checkTopLevelWindow(java.lang.Object), GraphicsEnvironment.isHeadless(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Window(Window owner)
See Also:
isShowing(), SecurityManager.checkTopLevelWindow(java.lang.Object), GraphicsEnvironment.isHeadless(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Window(Window owner,
              GraphicsConfiguration gc)
See Also:
isShowing(), GraphicsConfiguration.getBounds(), SecurityManager.checkTopLevelWindow(java.lang.Object), GraphicsEnvironment.isHeadless(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags