sun.awt.qt
Class QtToolkit

java.lang.Object
  extended by java.awt.Toolkit
      extended by sun.awt.SunToolkit
          extended by sun.awt.PeerBasedToolkit
              extended by sun.awt.qt.QtToolkit
All Implemented Interfaces:
Runnable, sun.awt.ComponentFactory, sun.awt.InputMethodSupport, sun.awt.WindowClosingListener, sun.awt.WindowClosingSupport

public class QtToolkit
extends PeerBasedToolkit
implements Runnable


Nested Class Summary
 
Nested classes/interfaces inherited from class sun.awt.SunToolkit
sun.awt.SunToolkit.InfiniteLoop, sun.awt.SunToolkit.OperationTimedOut
 
Field Summary
 
Fields inherited from class sun.awt.PeerBasedToolkit
peerMap
 
Fields inherited from class sun.awt.SunToolkit
DESKTOPFONTHINTS, GRAB_EVENT_MASK, WAIT_TIME
 
Constructor Summary
QtToolkit()
           
 
Method Summary
 void activate(Window window)
          Show the specified window in a multi-vm environment
 void beep()
          Emits an audio beep.
 int checkImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)
          Indicates the construction status of a specified image that is being prepared for display.
 ButtonPeer createButton(Button target)
          Creates this toolkit's implementation of Button using the specified peer interface.
 CanvasPeer createCanvas(Canvas target)
          Creates this toolkit's implementation of Canvas using the specified peer interface.
 CheckboxPeer createCheckbox(Checkbox target)
          Creates this toolkit's implementation of Checkbox using the specified peer interface.
 CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
          Creates this toolkit's implementation of CheckboxMenuItem using the specified peer interface.
 ChoicePeer createChoice(Choice target)
          Creates this toolkit's implementation of Choice using the specified peer interface.
 DialogPeer createDialog(Dialog target)
          Creates this toolkit's implementation of Dialog using the specified peer interface.
 FileDialogPeer createFileDialog(FileDialog target)
          Creates this toolkit's implementation of FileDialog using the specified peer interface.
 FramePeer createFrame(Frame target)
          Creates this toolkit's implementation of Frame using the specified peer interface.
 java.awt.Image createImage(java.awt.image.ImageProducer producer)
          Creates an image with the specified image producer.
 LabelPeer createLabel(Label target)
          Creates this toolkit's implementation of Label using the specified peer interface.
 ListPeer createList(List target)
          Creates this toolkit's implementation of List using the specified peer interface.
 MenuPeer createMenu(Menu target)
          Creates this toolkit's implementation of Menu using the specified peer interface.
 MenuBarPeer createMenuBar(MenuBar target)
          Creates this toolkit's implementation of MenuBar using the specified peer interface.
 MenuItemPeer createMenuItem(MenuItem target)
          Creates this toolkit's implementation of MenuItem using the specified peer interface.
 PanelPeer createPanel(Panel target)
          Creates this toolkit's implementation of Panel using the specified peer interface.
 PopupMenuPeer createPopupMenu(PopupMenu target)
          Creates this toolkit's implementation of PopupMenu using the specified peer interface.
 ScrollbarPeer createScrollbar(Scrollbar target)
          Creates this toolkit's implementation of Scrollbar using the specified peer interface.
 ScrollPanePeer createScrollPane(ScrollPane target)
          Creates this toolkit's implementation of ScrollPane using the specified peer interface.
 TextAreaPeer createTextArea(TextArea target)
          Creates this toolkit's implementation of TextArea using the specified peer interface.
 TextFieldPeer createTextField(TextField target)
          Creates this toolkit's implementation of TextField using the specified peer interface.
 WindowPeer createWindow(Window target)
          Creates this toolkit's implementation of Window using the specified peer interface.
 void deactivate(Window window)
          Hide the specified window in a multi-vm environment
protected  void finalize()
          Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
static String getAppName()
           
 java.awt.image.ColorModel getColorModel()
          Determines the color model of this toolkit's screen.
 String getDefaultCharacterEncoding()
           
 FontMetrics getFontMetrics(Font font)
          Gets the screen metrics of the font.
 FontPeer getFontPeer(Font target)
          Creates this toolkit's implementation of Font using the specified peer interface.
 sun.awt.im.InputMethod getInputMethodAdapter()
          Returns a new input method adapter for native input methods.
 int getScreenHeight()
           
 java.awt.Insets getScreenInsets(java.awt.GraphicsConfiguration gc)
          Gets the insets of the screen.
 int getScreenResolution()
          Returns the screen resolution in dots-per-inch.
protected  int getScreenResolutionNative()
           
 int getScreenWidth()
           
 Clipboard getSystemClipboard()
          Gets an instance of the system clipboard which interfaces with clipboard facilities provided by the native platform.
 boolean isFrameStateSupported(int state)
          Returns whether Toolkit supports this state for Frames.
protected  void loadSystemColors(int[] systemColors)
          Fills in the integer array that is supplied as an argument with the current system color values.
static void postEvent(sun.awt.AppContext appContext, AWTEvent event)
           
static void postEvent(AWTEvent event)
           
 boolean prepareImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)
          Prepares an image for rendering.
 void run()
          Runs the qt_main function for event processing.
 void sync()
          Synchronizes this toolkit's graphics state.
 
Methods inherited from class sun.awt.PeerBasedToolkit
createComponent, getComponentPeer, getFontList, getMenuComponentPeer, getNativeContainer, targetDisposedPeer, targetToPeer
 
Methods inherited from class sun.awt.SunToolkit
addModalityListener, awtLock, awtLockNotify, awtLockNotifyAll, awtLockWait, awtLockWait, awtTryLock, awtUnlock, checkAndSetPolicy, closeSplashScreen, consumeNextKeyTyped, createDragSourceContextPeer, createImage, createImage, createImage, createInputMethodWindow, createKeyboardFocusManagerPeer, createNewAppContext, createRobot, createSystemTray, createTrayIcon, disableBackgroundErase, disableBackgroundErase, enableInputMethodsForTextComponent, executeOnEDTAndWait, executeOnEventHandlerThread, executeOnEventHandlerThread, executeOnEventHandlerThread, flushPendingEvents, getDataTransfererClassName, getDefaultKeyboardLocale, getDesktopAAHints, getDesktopFontHints, getFontPeer, getImage, getImage, getMouseInfoPeer, getScaledIconData, getScaledIconImage, getScreenSize, getStartupLocale, getSunAwtErasebackgroundonresize, getSunAwtNoerasebackground, getSunAwtUntrustedTopLevelTranslucency, getSystemEventQueueImpl, getSystemEventQueueImplPP, getWindowClosingListener, grab, insertTargetMapping, invokeLaterOnAppContext, isAWTLockHeldByCurrentThread, isContainingTopLevelOpaque, isContainingTopLevelTranslucent, isDesktopSupported, isDispatchThreadForAppContext, isLightweightOrUnknown, isModalExcluded, isModalExcludedSupported, isModalExcludedSupportedImpl, isModalExclusionTypeSupported, isModalityTypeSupported, isPostEventQueueEmpty, isSystemGenerated, isTranslucencyCapable, isTraySupported, isWindowOpacityControlSupported, isWindowShapingSupported, isWindowTranslucencySupported, isXEmbedServerRequested, needsXEmbed, needsXEmbedImpl, needUpdateWindow, notifyModalityPopped, notifyModalityPushed, postPriorityEvent, realSync, removeModalityListener, setAAFontSettingsCondition, setDataTransfererClassName, setLWRequestStatus, setModalExcluded, setMostRecentFocusOwner, setSystemGenerated, setWindowClosingListener, syncNativeQueue, targetCreatedPeer, targetToAppContext, ungrab, useBufferPerWindow, waitForIdle, windowClosingDelivered, windowClosingNotify
 
Methods inherited from class java.awt.Toolkit
addAWTEventListener, createImage, getAWTEventListeners, getAWTEventListeners, getDefaultToolkit, getMenuShortcutKeyMask, getProperty, getSystemEventQueue, removeAWTEventListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sun.awt.InputMethodSupport
getInputMethodAdapterDescriptor
 

Constructor Detail

QtToolkit

public QtToolkit()
Method Detail

activate

public void activate(Window window)
Show the specified window in a multi-vm environment


deactivate

public void deactivate(Window window)
Hide the specified window in a multi-vm environment


getAppName

public static String getAppName()

finalize

protected void finalize()
                 throws Throwable
Description copied from class: Object
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

The general contract of finalize is that it is invoked if and when the JavaTM virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Overrides:
finalize in class Object
Throws:
Throwable - the Exception raised by this method

run

public void run()
Runs the qt_main function for event processing.

Specified by:
run in interface Runnable
See Also:
Thread.run()

getDefaultCharacterEncoding

public String getDefaultCharacterEncoding()

createButton

public ButtonPeer createButton(Button target)
Creates this toolkit's implementation of Button using the specified peer interface.

Specified by:
createButton in interface sun.awt.ComponentFactory
Specified by:
createButton in class PeerBasedToolkit
Parameters:
target - the button to be implemented.
Returns:
this toolkit's implementation of Button.
Since:
JDK1.0
See Also:
Button, ButtonPeer

createTextField

public TextFieldPeer createTextField(TextField target)
Creates this toolkit's implementation of TextField using the specified peer interface.

Specified by:
createTextField in interface sun.awt.ComponentFactory
Specified by:
createTextField in class PeerBasedToolkit
Parameters:
target - the text field to be implemented.
Returns:
this toolkit's implementation of TextField.
Since:
JDK1.0
See Also:
TextField, TextFieldPeer

createLabel

public LabelPeer createLabel(Label target)
Creates this toolkit's implementation of Label using the specified peer interface.

Specified by:
createLabel in interface sun.awt.ComponentFactory
Specified by:
createLabel in class PeerBasedToolkit
Parameters:
target - the label to be implemented.
Returns:
this toolkit's implementation of Label.
Since:
JDK1.0
See Also:
Label, LabelPeer

createList

public ListPeer createList(List target)
Creates this toolkit's implementation of List using the specified peer interface.

Specified by:
createList in interface sun.awt.ComponentFactory
Specified by:
createList in class PeerBasedToolkit
Parameters:
target - the list to be implemented.
Returns:
this toolkit's implementation of List.
Since:
JDK1.0
See Also:
List, ListPeer

createCheckbox

public CheckboxPeer createCheckbox(Checkbox target)
Creates this toolkit's implementation of Checkbox using the specified peer interface.

Specified by:
createCheckbox in interface sun.awt.ComponentFactory
Specified by:
createCheckbox in class PeerBasedToolkit
Parameters:
target - the check box to be implemented.
Returns:
this toolkit's implementation of Checkbox.
Since:
JDK1.0
See Also:
Checkbox, CheckboxPeer

createScrollbar

public ScrollbarPeer createScrollbar(Scrollbar target)
Creates this toolkit's implementation of Scrollbar using the specified peer interface.

Specified by:
createScrollbar in interface sun.awt.ComponentFactory
Specified by:
createScrollbar in class PeerBasedToolkit
Parameters:
target - the scroll bar to be implemented.
Returns:
this toolkit's implementation of Scrollbar.
Since:
JDK1.0
See Also:
Scrollbar, ScrollbarPeer

createScrollPane

public ScrollPanePeer createScrollPane(ScrollPane target)
Creates this toolkit's implementation of ScrollPane using the specified peer interface.

Specified by:
createScrollPane in interface sun.awt.ComponentFactory
Specified by:
createScrollPane in class PeerBasedToolkit
Parameters:
target - the scroll pane to be implemented.
Returns:
this toolkit's implementation of ScrollPane.
Since:
JDK1.1
See Also:
ScrollPane, ScrollPanePeer

createTextArea

public TextAreaPeer createTextArea(TextArea target)
Creates this toolkit's implementation of TextArea using the specified peer interface.

Specified by:
createTextArea in interface sun.awt.ComponentFactory
Specified by:
createTextArea in class PeerBasedToolkit
Parameters:
target - the text area to be implemented.
Returns:
this toolkit's implementation of TextArea.
Since:
JDK1.0
See Also:
TextArea, TextAreaPeer

createChoice

public ChoicePeer createChoice(Choice target)
Creates this toolkit's implementation of Choice using the specified peer interface.

Specified by:
createChoice in interface sun.awt.ComponentFactory
Specified by:
createChoice in class PeerBasedToolkit
Parameters:
target - the choice to be implemented.
Returns:
this toolkit's implementation of Choice.
Since:
JDK1.0
See Also:
Choice, ChoicePeer

createFrame

public FramePeer createFrame(Frame target)
Creates this toolkit's implementation of Frame using the specified peer interface.

Specified by:
createFrame in interface sun.awt.ComponentFactory
Specified by:
createFrame in class PeerBasedToolkit
Parameters:
target - the frame to be implemented.
Returns:
this toolkit's implementation of Frame.
Since:
JDK1.0
See Also:
Frame, FramePeer

createCanvas

public CanvasPeer createCanvas(Canvas target)
Creates this toolkit's implementation of Canvas using the specified peer interface.

Specified by:
createCanvas in interface sun.awt.ComponentFactory
Specified by:
createCanvas in class PeerBasedToolkit
Parameters:
target - the canvas to be implemented.
Returns:
this toolkit's implementation of Canvas.
Since:
JDK1.0
See Also:
Canvas, CanvasPeer

createPanel

public PanelPeer createPanel(Panel target)
Creates this toolkit's implementation of Panel using the specified peer interface.

Specified by:
createPanel in interface sun.awt.ComponentFactory
Specified by:
createPanel in class PeerBasedToolkit
Parameters:
target - the panel to be implemented.
Returns:
this toolkit's implementation of Panel.
Since:
JDK1.0
See Also:
Panel, PanelPeer

createWindow

public WindowPeer createWindow(Window target)
Creates this toolkit's implementation of Window using the specified peer interface.

Specified by:
createWindow in interface sun.awt.ComponentFactory
Specified by:
createWindow in class PeerBasedToolkit
Parameters:
target - the window to be implemented.
Returns:
this toolkit's implementation of Window.
Since:
JDK1.0
See Also:
Window, WindowPeer

createDialog

public DialogPeer createDialog(Dialog target)
Creates this toolkit's implementation of Dialog using the specified peer interface.

Specified by:
createDialog in interface sun.awt.ComponentFactory
Specified by:
createDialog in class PeerBasedToolkit
Parameters:
target - the dialog to be implemented.
Returns:
this toolkit's implementation of Dialog.
Since:
JDK1.0
See Also:
Dialog, DialogPeer

createMenuBar

public MenuBarPeer createMenuBar(MenuBar target)
Creates this toolkit's implementation of MenuBar using the specified peer interface.

Specified by:
createMenuBar in interface sun.awt.ComponentFactory
Specified by:
createMenuBar in class PeerBasedToolkit
Parameters:
target - the menu bar to be implemented.
Returns:
this toolkit's implementation of MenuBar.
Since:
JDK1.0
See Also:
MenuBar, MenuBarPeer

createMenu

public MenuPeer createMenu(Menu target)
Creates this toolkit's implementation of Menu using the specified peer interface.

Specified by:
createMenu in interface sun.awt.ComponentFactory
Specified by:
createMenu in class PeerBasedToolkit
Parameters:
target - the menu to be implemented.
Returns:
this toolkit's implementation of Menu.
Since:
JDK1.0
See Also:
Menu, MenuPeer

createPopupMenu

public PopupMenuPeer createPopupMenu(PopupMenu target)
Creates this toolkit's implementation of PopupMenu using the specified peer interface.

Specified by:
createPopupMenu in interface sun.awt.ComponentFactory
Specified by:
createPopupMenu in class PeerBasedToolkit
Parameters:
target - the popup menu to be implemented.
Returns:
this toolkit's implementation of PopupMenu.
Since:
JDK1.1
See Also:
PopupMenu, PopupMenuPeer

createMenuItem

public MenuItemPeer createMenuItem(MenuItem target)
Creates this toolkit's implementation of MenuItem using the specified peer interface.

Specified by:
createMenuItem in interface sun.awt.ComponentFactory
Specified by:
createMenuItem in class PeerBasedToolkit
Parameters:
target - the menu item to be implemented.
Returns:
this toolkit's implementation of MenuItem.
Since:
JDK1.0
See Also:
MenuItem, MenuItemPeer

createFileDialog

public FileDialogPeer createFileDialog(FileDialog target)
Creates this toolkit's implementation of FileDialog using the specified peer interface.

Specified by:
createFileDialog in interface sun.awt.ComponentFactory
Specified by:
createFileDialog in class PeerBasedToolkit
Parameters:
target - the file dialog to be implemented.
Returns:
this toolkit's implementation of FileDialog.
Since:
JDK1.0
See Also:
FileDialog, FileDialogPeer

createCheckboxMenuItem

public CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
Creates this toolkit's implementation of CheckboxMenuItem using the specified peer interface.

Specified by:
createCheckboxMenuItem in interface sun.awt.ComponentFactory
Specified by:
createCheckboxMenuItem in class PeerBasedToolkit
Parameters:
target - the checkbox menu item to be implemented.
Returns:
this toolkit's implementation of CheckboxMenuItem.
Since:
JDK1.0
See Also:
CheckboxMenuItem, CheckboxMenuItemPeer

getFontPeer

public FontPeer getFontPeer(Font target)
Creates this toolkit's implementation of Font using the specified peer interface.

Specified by:
getFontPeer in class PeerBasedToolkit
Parameters:
target - the font to be implemented.
Returns:
this toolkit's implementation of Font.
Since:
JDK1.0
See Also:
Font, FontPeer

getScreenInsets

public java.awt.Insets getScreenInsets(java.awt.GraphicsConfiguration gc)
Description copied from class: Toolkit
Gets the insets of the screen.

Overrides:
getScreenInsets in class Toolkit
Parameters:
gc - a GraphicsConfiguration
Returns:
the insets of this toolkit's screen, in pixels.
See Also:
GraphicsEnvironment.isHeadless()

loadSystemColors

protected void loadSystemColors(int[] systemColors)
Fills in the integer array that is supplied as an argument with the current system color values.

This method is called by the method updateSystemColors in the SystemColor class.

Overrides:
loadSystemColors in class Toolkit
Parameters:
an - integer array.
Since:
JDK1.1
See Also:
SystemColor.updateSystemColors()

getScreenWidth

public int getScreenWidth()
Specified by:
getScreenWidth in class sun.awt.SunToolkit

getScreenHeight

public int getScreenHeight()
Specified by:
getScreenHeight in class sun.awt.SunToolkit

getScreenResolution

public int getScreenResolution()
Returns the screen resolution in dots-per-inch.

Specified by:
getScreenResolution in class Toolkit
Returns:
this toolkit's screen resolution, in dots-per-inch.
Since:
JDK1.0

getScreenResolutionNative

protected int getScreenResolutionNative()

getColorModel

public java.awt.image.ColorModel getColorModel()
Determines the color model of this toolkit's screen.

ColorModel is an abstract class that encapsulates the ability to translate between the pixel values of an image and its red, green, blue, and alpha components.

This toolkit method is called by the getColorModel method of the Component class.

Specified by:
getColorModel in class Toolkit
Returns:
the color model of this toolkit's screen.
Since:
JDK1.0
See Also:
ColorModel, Component.getColorModel()

getFontMetrics

public FontMetrics getFontMetrics(Font font)
Gets the screen metrics of the font.

Overrides:
getFontMetrics in class sun.awt.SunToolkit
Parameters:
font - a font.
Returns:
the screen metrics of the specified font in this toolkit.
Since:
JDK1.0

sync

public void sync()
Synchronizes this toolkit's graphics state. Some window systems may do buffering of graphics events.

This method ensures that the display is up-to-date. It is useful for animation.

Specified by:
sync in class Toolkit
Since:
JDK1.0

prepareImage

public boolean prepareImage(java.awt.Image img,
                            int w,
                            int h,
                            java.awt.image.ImageObserver o)
Description copied from class: Toolkit
Prepares an image for rendering.

If the values of the width and height arguments are both -1, this method prepares the image for rendering on the default screen; otherwise, this method prepares an image for rendering on the default screen at the specified width and height.

The image data is downloaded asynchronously in another thread, and an appropriately scaled screen representation of the image is generated.

This method is called by components prepareImage methods.

Information on the flags returned by this method can be found with the definition of the ImageObserver interface.

Overrides:
prepareImage in class sun.awt.SunToolkit
Parameters:
img - the image for which to prepare a screen representation.
w - the width of the desired screen representation, or -1.
h - the height of the desired screen representation, or -1.
o - the ImageObserver object to be notified as the image is being prepared.
Returns:
true if the image has already been fully prepared; false otherwise.
See Also:
Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver), Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver), ImageObserver

checkImage

public int checkImage(java.awt.Image img,
                      int w,
                      int h,
                      java.awt.image.ImageObserver o)
Indicates the construction status of a specified image that is being prepared for display.

If the values of the width and height arguments are both -1, this method returns the construction status of a screen representation of the specified image in this toolkit. Otherwise, this method returns the construction status of a scaled representation of the image at the specified width and height.

This method does not cause the image to begin loading. An application must call prepareImage to force the loading of an image.

This method is called by the component's checkImage methods.

Information on the flags returned by this method can be found with the definition of the ImageObserver interface.

Overrides:
checkImage in class sun.awt.SunToolkit
Parameters:
image - the image whose status is being checked.
width - the width of the scaled version whose status is being checked, or -1.
height - the height of the scaled version whose status is being checked, or -1.
observer - the ImageObserver object to be notified as the image is being prepared.
Returns:
the bitwise inclusive OR of the ImageObserver flags for the image data that is currently available.
Since:
JDK1.0
See Also:
Toolkit.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver), Component.checkImage(java.awt.Image, java.awt.image.ImageObserver), Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver), ImageObserver

createImage

public java.awt.Image createImage(java.awt.image.ImageProducer producer)
Creates an image with the specified image producer.

Overrides:
createImage in class sun.awt.SunToolkit
Parameters:
producer - the image producer to be used.
Returns:
an image with the specified image producer.
Since:
JDK1.0
See Also:
Image, ImageProducer, Component.createImage(java.awt.image.ImageProducer)

beep

public void beep()
Emits an audio beep.

Specified by:
beep in class Toolkit
Since:
JDK1.1

postEvent

public static void postEvent(AWTEvent event)

postEvent

public static void postEvent(sun.awt.AppContext appContext,
                             AWTEvent event)

getSystemClipboard

public Clipboard getSystemClipboard()
Gets an instance of the system clipboard which interfaces with clipboard facilities provided by the native platform.

This clipboard enables data transfer between Java programs and native applications which use native clipboard facilities.

Specified by:
getSystemClipboard in class Toolkit
Returns:
an instance of the system clipboard.
Since:
JDK1.1
See Also:
Clipboard

getInputMethodAdapter

public sun.awt.im.InputMethod getInputMethodAdapter()
                                             throws java.awt.AWTException
Returns a new input method adapter for native input methods.

Throws:
java.awt.AWTException

isFrameStateSupported

public boolean isFrameStateSupported(int state)
                              throws java.awt.HeadlessException
Description copied from class: Toolkit
Returns whether Toolkit supports this state for Frames. This method tells whether the UI concept of iconification is supported. It will always return false for any state other than like Frame.NORMAL or Frame.ICONIFIED.

Overrides:
isFrameStateSupported in class Toolkit
Parameters:
state - one of named frame state constants.
Returns:
true is this frame state is supported by this Toolkit implementation, false otherwise.
Throws:
HeadlessException - if GraphicsEnvironment.isHeadless() returns true.