Failed to run the action: Use Toolkit Package. The specified path is invalid. (Error: 800700A1; Source: Windows) Resolution? Storage drivers in my boot image - even though I'm running the TS in new Hyper-V VMs. Still, I added many drivers (hdc class) to my boot image, updated dp, recreated boot ISO for VM, and even recreated TS.
This class is the abstract superclass of all actualimplementations of the Abstract Window Toolkit. Subclasses ofthe Toolkit class are used to bind the various componentsto particular native toolkit implementations.Many GUI events may be delivered to userasynchronously, if the opposite is not specified explicitly.As well asmany GUI operations may be performed asynchronously.This fact means that if the state of a component is set, and thenthe state immediately queried, the returned value may not yetreflect the requested change. Returns whether the layout of Containers is validated dynamicallyduring resizing, or statically, after resizing is complete.Note: this method returns the value that was set programmatically;it does not reflect support at the level of the operating systemor window manager for dynamic layout on resizing, or the currentoperating system or window manager settings. The OS/WM support canbe queried using getDesktopProperty('awt.dynamicLayoutSupported'). Returns: true if validation of Containers is done dynamically,false if validation is done after resizing is finished. Throws: - if GraphicsEnvironment.isHeadlessreturns true Since: 1.4 See Also:,. isDynamicLayoutActive public boolean isDynamicLayoutActivethrows.
Returns whether dynamic layout of Containers on resize iscurrently active (both set in program( isDynamicLayoutSet ), and supportedby the underlying operating system and/or window manager).If dynamic layout is currently inactive then Containersre-layout their components when resizing is completed. As a resultthe Component.validate method will be invoked onlyonce per resize.If dynamic layout is currently active then Containersre-layout their components on every native resize event andthe validate method will be invoked each time.The OS/WM support can be queried usingthe getDesktopProperty('awt.dynamicLayoutSupported') method.
Returns: true if dynamic layout of Containers on resize iscurrently active, false otherwise. Throws: - if the GraphicsEnvironment.isHeadlessmethod returns true Since: 1.4 See Also:,.
getScreenSize public abstract getScreenSizethrows. Returns the names of the available fonts in this toolkit.For 1.1, the following font names are deprecated (the replacementname follows):. TimesRoman (use Serif). Helvetica (use SansSerif).
Courier (use Monospaced)The ZapfDingbats fontname is also deprecated in 1.1 but the charactersare defined in Unicode starting at 0x2700, and as of 1.1 Java supportsthose characters. Returns: the names of the available fonts in this toolkit. See Also:.
getFontMetricspublic abstract getFontMetrics( font). Gets the default toolkit.If a system property named 'java.awt.headless' is setto true then the headless implementationof Toolkit is used.If there is no 'java.awt.headless' or it is set tofalse and there is a system property named'awt.toolkit',that property is treated as the name of a class that is a subclassof Toolkit;otherwise the default platform-specific implementation ofToolkit is used.Also loads additional classes into the VM, using the property'assistivetechnologies' specified in the Sun referenceimplementation by a line in the 'accessibility.properties'file. The form is 'assistivetechnologies=.' Is a comma-separated list of assistive technologyclasses to load. Each class is loaded in the order givenand a single instance of each is created usingClass.forName(class).newInstance. This is done just afterthe AWT toolkit is created.
All errors are handled via anAWTError exception. Returns: the default toolkit. Throws: - if a toolkit could not be found, orif one could not be accessed or instantiated. getImage public abstract getImage( filename). Returns an image which gets pixel data from the specified file.The returned Image is a new object which will not be sharedwith any other caller of this method or its getImage variant.This method first checks if there is a security manager installed.If so, the method calls the security manager'scheckRead method with the specified file to ensurethat the image creation is allowed.
Parameters: filename - the name of a file containing pixel datain a recognized file format. Returns: an image which gets its pixel data fromthe specified file. Throws: - if a security manager exists and itscheckRead method doesn't allow the operation. See Also:. createImage public abstract createImage( url). Returns an image which gets pixel data from the specified URL.The returned Image is a new object which will not be sharedwith any other caller of this method or its getImage variant.This method first checks if there is a security manager installed.If so, the method calls the security manager'scheckPermission method with theurl.openConnection.getPermission permission to ensurethat the image creation is allowed. For compatibilitywith pre-1.2 security managers, if the access is denied withFilePermission or SocketPermission,the method throws SecurityExceptionif the corresponding 1.1-style SecurityManager.checkXXX methodalso denies permission.
Parameters: url - the URL to use in fetching the pixel data. Returns: an image which gets its pixel data fromthe specified URL.
Throws: - if a security manager exists and itscheckPermission method doesn't allowthe operation. See Also:. prepareImage public abstract boolean prepareImage( image,int width,int height,observer). Prepares an image for rendering.If the values of the width and height arguments are both-1, this method prepares the image for renderingon the default screen; otherwise, this method prepares an imagefor 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 isgenerated.This method is called by components prepareImagemethods.Information on the flags returned by this method can be foundwith the definition of the ImageObserver interface. Parameters: image - the image for which to prepare ascreen representation.
Width - the width of the desired screenrepresentation, or -1. Height - the height of the desired screenrepresentation, or -1. Observer - the ImageObserverobject to be notified as theimage is being prepared. Returns: true if the image has already beenfully prepared; false otherwise. See Also:,. checkImage public abstract int checkImage( image,int width,int height,observer).
Creates an image which decodes the image stored in the specifiedbyte array, and at the specified offset and length.The data must be in some image format, such as GIF or JPEG,that is supported by this toolkit. Parameters: imagedata - an array of bytes, representingimage data in a supported image format. Imageoffset - the offset of the beginningof the data in the array. Imagelength - the length of the data in the array.
Returns: an image. Since: JDK1.1. getPrintJob public abstract getPrintJob( frame,jobtitle,props). Gets a PrintJob object which is the result of initiatinga print operation on the toolkit's platform.Each actual implementation of this method should first check if thereis a security manager installed. If there is, the method should callthe security manager's checkPrintJobAccess method toensure initiation of a print operation is allowed. If the defaultimplementation of checkPrintJobAccess is used (that is,that method is not overriden), then this results in a call to thesecurity manager's checkPermission method with aRuntimePermission('queuePrintJob') permission.
Parameters: frame - the parent of the print dialog. May not be null. Jobtitle - the title of the PrintJob. A null title is equivalentto '. Props - a Properties object containing zero or more properties.Properties are not standardized and are not consistent acrossimplementations. Because of this, PrintJobs which require joband page control should use the version of this function whichtakes JobAttributes and PageAttributes objects.
This objectmay be updated to reflect the user's job choices on exit. Returns: a PrintJob object, or null if theuser cancelled the print job.
Throws: - if frame is null - if this thread is not allowed to initiate aprint job request Since: JDK1.1 See Also:,. getPrintJob public getPrintJob( frame,jobtitle,jobAttributes,pageAttributes). Gets a PrintJob object which is the result of initiatinga print operation on the toolkit's platform.Each actual implementation of this method should first check if thereis a security manager installed. If there is, the method should callthe security manager's checkPrintJobAccess method toensure initiation of a print operation is allowed.
If the defaultimplementation of checkPrintJobAccess is used (that is,that method is not overriden), then this results in a call to thesecurity manager's checkPermission method with aRuntimePermission('queuePrintJob') permission. Parameters: frame - the parent of the print dialog. May not be null. Jobtitle - the title of the PrintJob.
A null title is equivalentto '. JobAttributes - a set of job attributes which will control thePrintJob. The attributes will be updated to reflect the user'schoices as outlined in the JobAttributes documentation. PageAttributes - a set of page attributes which will control thePrintJob.
The attributes will be applied to every page in thejob. The attributes will be updated to reflect the user'schoices as outlined in the PageAttributes documentation.
Returns: a PrintJob object, or null if theuser cancelled the print job. Throws: - if frame is null - if pageAttributes specifies differingcross feed and feed resolutions. Also if this thread hasaccess to the file system and jobAttributes specifiesprint to file, and the specified destination file exists butis a directory rather than a regular file, does not exist butcannot be created, or cannot be opened for any other reason.However in the case of print to file, if a dialog is alsorequested to be displayed then the user will be given anopportunity to select a file and proceed with printing.The dialog will ensure that the selected output fileis valid before returning from this method. if this thread is not allowed to initiate aprint job request, or if jobAttributes specifies print to file,and this thread is not allowed to access the file system Since: 1.3 See Also:,. beep public abstract void beep. Gets the singleton instance of the system Clipboard which interfaceswith clipboard facilities provided by the native platform. Thisclipboard enables data transfer between Java programs and nativeapplications which use native clipboard facilities.In addition to any and all formats specified in the flavormap.propertiesfile, or other file specified by the AWT.DnD.flavorMapFileURLToolkit property, text returned by the system Clipboard'sgetTransferData method is available in the following flavors:.
DataFlavor.stringFlavor. DataFlavor.plainTextFlavor ( deprecated)As with java.awt.datatransfer.StringSelection, if therequested flavor is DataFlavor.plainTextFlavor, or anequivalent flavor, a Reader is returned. Note: The behavior ofthe system Clipboard's getTransferData method forDataFlavor.plainTextFlavor, and equivalent DataFlavors, isinconsistent with the definition of DataFlavor.plainTextFlavor. Because of this, support forDataFlavor.plainTextFlavor, and equivalent flavors, isdeprecated.Each actual implementation of this method should first check if thereis a security manager installed. If there is, the method should callthe security manager's checkSystemClipboardAccess methodto ensure it's ok to to access the system clipboard.
If the defaultimplementation of checkSystemClipboardAccess is used (thatis, that method is not overriden), then this results in a call to thesecurity manager's checkPermission method with anAWTPermission('accessClipboard') permission. Returns: the system Clipboard Throws: - if GraphicsEnvironment.isHeadlessreturns true Since: JDK1.1 See Also:,. getSystemSelection public getSystemSelectionthrows.
Gets the singleton instance of the system selection as aClipboard object. This allows an application to read andmodify the current, system-wide selection.An application is responsible for updating the system selection wheneverthe user selects text, using either the mouse or the keyboard.Typically, this is implemented by installing aFocusListener on all Components which supporttext selection, and, between FOCUSGAINED andFOCUSLOST events delivered to that Component,updating the system selection Clipboard when the selectionchanges inside the Component. Properly updating the systemselection ensures that a Java application will interact correctly withnative applications and other Java applications running simultaneouslyon the system.
Note that java.awt.TextComponent andjavax.swing.text.JTextComponent already adhere to thispolicy. When using these classes, and their subclasses, developers neednot write any additional code.Some platforms do not support a system selection Clipboard.On those platforms, this method will return null.
In such acase, an application is absolved from its responsibility to update thesystem selection Clipboard as described above.Each actual implementation of this method should first check if thereis a SecurityManager installed. If there is, the methodshould call the SecurityManager'scheckSystemClipboardAccess method to ensure that clientcode has access the system selection. If the default implementation ofcheckSystemClipboardAccess is used (that is, if the methodis not overridden), then this results in a call to theSecurityManager's checkPermission method withan AWTPermission('accessClipboard') permission. Returns: the system selection as a Clipboard, ornull if the native platform does not support asystem selection Clipboard Throws: - if GraphicsEnvironment.isHeadlessreturns true Since: 1.4 See Also:,. getMenuShortcutKeyMask public int getMenuShortcutKeyMaskthrows.
Determines which modifier key is the appropriate acceleratorkey for menu shortcuts.Menu shortcuts, which are embodied in theMenuShortcut class, are handled by theMenuBar class.By default, this method returns Event.CTRLMASK.Toolkit implementations should override this method if theControl key isn't the correct key for accelerators. Returns: the modifier mask on the Event classthat is used for menu shortcuts on this toolkit.
Throws: - if GraphicsEnvironment.isHeadlessreturns true Since: JDK1.1 See Also:,. getLockingKeyState public boolean getLockingKeyState(int keyCode)throws. Sets the state of the given locking key on the keyboard.Valid key codes are, and.Depending on the platform, setting the state of a locking key mayinvolve event processing and therefore may not be immediatelyobservable through getLockingKeyState. Throws: - if keyCodeis not one of the valid key codes - if the host system doesn'tallow setting the state of this key programmatically, or if the keyboarddoesn't have this key - if GraphicsEnvironment.isHeadlessreturns true Since: 1.3 See Also:. getNativeContainer protected static getNativeContainer( c). Creates a new custom cursor object.If the image to display is invalid, the cursor will be hidden (madecompletely transparent), and the hotspot will be set to (0, 0).Note that multi-frame images are invalid and may cause thismethod to hang.
Parameters: cursor - the image to display when the cursor is actived hotSpot - the X and Y of the large cursor's hot spot; thehotSpot values must be less than the Dimension returned bygetBestCursorSize name - a localized description of the cursor, for Java Accessibility use Throws: - if the hotSpot values are outsidethe bounds of the cursor - if GraphicsEnvironment.isHeadlessreturns true Since: 1.2 See Also:. getBestCursorSize public getBestCursorSize(int preferredWidth,int preferredHeight)throws.
Returns the supported cursor dimension which is closest to the desiredsizes. Systems which only support a single cursor size will return thatsize regardless of the desired sizes. Systems which don't support customcursors will return a dimension of 0, 0.Note: if an image is used whose dimensions don't match a supported size(as returned by this method), the Toolkit implementation will attempt toresize the image to a supported size.Since converting low-resolution images is difficult,no guarantees are made as to the quality of a cursor image which isn't asupported size. It is therefore recommended that this methodbe called and an appropriate image used so no image conversion is made. Parameters: preferredWidth - the preferred cursor width the component would liketo use. PreferredHeight - the preferred cursor height the component would liketo use.
Returns: the closest matching supported cursor size, or a dimension of 0,0 ifthe Toolkit implementation doesn't support custom cursors. Throws: - if GraphicsEnvironment.isHeadlessreturns true Since: 1.2 See Also:. getMaximumCursorColors public int getMaximumCursorColorsthrows. Returns the maximum number of colors the Toolkit supports in a custom cursorpalette.Note: if an image is used which has more colors in its palette thanthe supported maximum, the Toolkit implementation will attempt to flatten thepalette to the maximum. Since converting low-resolution images is difficult,no guarantees are made as to the quality of a cursor image which has morecolors than the system supports. It is therefore recommended that this methodbe called and an appropriate image used so no image conversion is made. Returns: the maximum number of colors, or zero if custom cursors are notsupported by this Toolkit implementation.
Throws: - if GraphicsEnvironment.isHeadlessreturns true Since: 1.2 See Also:. isFrameStateSupported public boolean isFrameStateSupported(int state)throws. Returns whether Toolkit supports this state forFrames. This method tells whether the UIconcept of, say, maximization or iconification issupported. It will always return false for 'compound' stateslike Frame.ICONIFIED Frame.MAXIMIZEDVERT.In other words, the rule of thumb is that only queries with asingle frame state constant as an argument are meaningful.Note that supporting a given concept is a platform-dependent feature. Due to native limitations the Toolkitobject may report a particular state as supported, however atthe same time the Toolkit object will be unable to apply thestate to a given frame. This circumstance has two followingconsequences:.
Only the return value of false for the presentmethod actually indicates that the given state is notsupported. If the method returns true the given statemay still be unsupported and/or unavailable for a particularframe. The developer should consider examining the value of themethod of theWindowEvent received through the, rather than assumingthat the state given to the setExtendedState methodwill be definitely applied. For more information see thedocumentation for the method.Parameters: state - one of named frame state constants.
Returns: true is this frame state is supported bythis Toolkit implementation, false otherwise. Throws: - if GraphicsEnvironment.isHeadlessreturns true. Since: 1.4 See Also:.
getProperty public static getProperty( key,defaultValue). Get the application's or applet's EventQueue instance.Depending on the Toolkit implementation, different EventQueuesmay be returned for different applets. Applets shouldtherefore not assume that the EventQueue instance returnedby this method will be shared by other applets or the system.First, if there is a security manager, itscheckAwtEventQueueAccessmethod is called.If the default implementation of checkAwtEventQueueAccessis used (that is, that method is not overriden), then this results ina call to the security manager's checkPermission methodwith an AWTPermission('accessEventQueue') permission. Returns: the EventQueue object Throws: - if a security manager exists and itsmethod denies access to the EventQueue See Also:. getSystemEventQueueImpl protected abstract getSystemEventQueueImpl.
Creates a concrete, platform dependent, subclass of the abstractDragGestureRecognizer class requested, and associates it with theDragSource, Component and DragGestureListener specified.subclasses should override this to provide their own implementation Parameters: abstractRecognizerClass - The abstract class of the required recognizer ds - The DragSource c - The Component target for the DragGestureRecognizer srcActions - The actions permitted for the gesture dgl - The DragGestureListener Returns: the new object or null. Always returns null ifGraphicsEnvironment.isHeadless returns true.
See Also:. getDesktopProperty public final getDesktopProperty( propertyName). Removes an AWTEventListener from receiving dispatched AWTEvents.First, if there is a security manager, its checkPermissionmethod is called with anAWTPermission('listenToAllAWTEvents') permission.This may result in a SecurityException.Note: event listener use is not recommended for normalapplication use, but are intended solely to support specialpurpose facilities including support for accessibility,event record/playback, and diagnostic tracing.If listener is null, no exception is thrown and no action is performed. Parameters: listener - the event listener.
Throws: - if a security manager exists and itscheckPermission method doesn't allow the operation. Since: 1.2 See Also:,. getAWTEventListeners public getAWTEventListeners. Returns an array of all the AWTEventListenersregistered on this toolkit.If there is a security manager, its checkPermissionmethod is called with anAWTPermission('listenToAllAWTEvents') permission.This may result in a SecurityException.Listeners can be returnedwithin AWTEventListenerProxy objects, which also containthe event mask for the given listener.Note that listener objectsadded multiple times appear only once in the returned array. Returns: all of the AWTEventListeners or an emptyarray if no listeners are currently registered Throws: - if a security manager exists and itscheckPermission method doesn't allow the operation. Since: 1.4 See Also:,. getAWTEventListeners public getAWTEventListeners(long eventMask).
Returns an array of all the AWTEventListenersregistered on this toolkit which listen to all of the eventtypes specified in the eventMask argument.If there is a security manager, its checkPermissionmethod is called with anAWTPermission('listenToAllAWTEvents') permission.This may result in a SecurityException.Listeners can be returnedwithin AWTEventListenerProxy objects, which also containthe event mask for the given listener.Note that listener objectsadded multiple times appear only once in the returned array. Parameters: eventMask - the bitmask of event types to listen for Returns: all of the AWTEventListeners registeredon this toolkit for the specifiedevent types, or an empty array if no such listenersare currently registered Throws: - if a security manager exists and itscheckPermission method doesn't allow the operation. Since: 1.4 See Also:,. mapInputMethodHighlight public abstract mapInputMethodHighlight( highlight)throws.
Reports whether events from extra mouse buttons are allowed to be processed and posted intoEventQueue.To change the returned value it is necessary to set the sun.awt.enableExtraMouseButtonsproperty before the Toolkit class initialization.