jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
AWT FAQ Home Page

FAQ Manager is guru Sandip Chitale PREMIUM.

As part of the Java Foundation Classes (JFC), the Abstract Window Toolkit (AWT) is the foundation graphical user interface (GUI) for all Java-based programs.

What's New

When dropping an object over a JTree, how do you determine the node being dropped over?
Java:API:AWT:Drag and Drop, Java:API:Swing:Widgets
John Zukowski PREMIUM, May 31, 2007
The importData() method of your TransferHandler has a TransferSupport argument. From this support object, you can ask for the drop location with getDr...
When having a droppable JTree, how do I change the default behavior of using selection to see the active drop target?
Java:API:AWT:Drag and Drop, Java:API:Swing:Widgets
John Zukowski PREMIUM, May 31, 2007
JTree has a setDropMode() method to change the default setting of USE_SELECTION. Other valid modes are ON, INSERT, and ON_OR_INSERT. ON lets you drop something...
What accessible roles were added to the 1.4 J2SE accessibility API?
Java:API:AWT:Accessibility, Java:API:Swing:Accessibility
John Zukowski PREMIUM, Dec 31, 2006
Class AccessibleRole Added the following constants: DATE_EDITOR FONT_CHOOSER GROUP_BOX SPIN_BOX STATUS_BAR

How can I find out if my application is being used with a screen magnifier?
Java:API:AWT:Accessibility, Java:API:Swing:Accessibility
John Zukowski PREMIUM, Dec 31, 2006
The javax.accessibility.screen_magnifier_present property is available. When true, the magnifier is present, and your application can be altered accor...
Which accessible interfaces were added for J2SE 1.4?
Java:API:AWT:Accessibility, Java:API:Swing:Accessibility
John Zukowski PREMIUM, Dec 31, 2006
The 1.4 API increased the accessibility API by adding the following: javax.accessibility.AccessibleEditableText javax.accessibility.AccessibleExt...
What is the purpose of AccessibleExtendedComponent?
Java:API:AWT, Java:API:Swing
John Zukowski PREMIUM, Dec 4, 2006
The original accessible API set missed some features in the AccessibleComponent interface. Since the main interface couldn't be altered, Sun introduced...
How do I explicitly set the Toolkit for my program?
Java:API:AWT:Graphics
John Zukowski PREMIUM, Nov 3, 2006
Either by setting the AWT_TOOLKIT environment variable or the awt.toolkit system property. The AWT_TOOLKIT environment variable can be set to XToolkit...
What this I hear about a new Toolkit for Linux machines in Java 5.0?
Java:API:AWT
John Zukowski PREMIUM, Nov 3, 2006
J2SE 5.0 reimplemented the AWT Toolkit to remove the Motif and Xt dependency and improve performance. Solaris still keeps the Motif default but Linux machines...
Should I use the invokeLater() and invokeAndWait() method of EventQueue or SwingUtilities?
Java:API:AWT:Events, Java:API:Swing:Events
John Zukowski PREMIUM, Jan 22, 2006
Short answer: EventQueue. Longer answer... Utility methods were added to the SwingUtilities class because the first version of the Swing classes had...
I want the user to be able to input tabs in my application, but the tab character moves the input focus to the next component in the app and my application's keylistener gets nothing. Is there any way...
Java:API:AWT:Events
Nils Christian Svihus, Jan 14, 2006
The tab is a focus traversal key by default and you have to change this to catch the tab entries in your keylistener. You do this by overriding the Component...
How can I write a GIF image?
Java:API:AWT:Graphics, Java:API:Media:Image I/O
John Zukowski PREMIUM, Jan 12, 2006
Patent restrictions didn't allow a GIF writer to be part of the Java platform prior to JDK 6. With the recent expiration of the Unisys patent, JDK 6 includes...
How do I use the default mail client to send an email?
Java:API:AWT, Java:API:JavaMail
John Zukowski PREMIUM, Dec 5, 2005
The Java 6 Desktop class has a mail() method for just such an action.
How can I place my Java app in the Windows System Tray area?
Java:API:AWT
John Zukowski PREMIUM, Dec 5, 2005
Java 6 offers a SystemTray class for this. Users of prior versions of Java can add this through the JDesktop Integration Components (JDIC) available from...
After adding a bunch of points to a Polygon, can I reuse it or must I create a new one?
Java:API:AWT:Graphics
John Zukowski PREMIUM, Nov 1, 2005
You can call reset() to remove the existing set of points from a Polygon. With that said, according to the javadoc: All internally-cached data relating...
How do I test my program for how accessible it is?
Java:API:AWT, Java:API:Swing
John Zukowski PREMIUM, Jul 1, 2005
Sun provides the Java Access Bridge for Microsoft Windows users, with programs like Monkey and Ferret to see how well you've designed your graphical programs...
I'm using setComponentZOrder() to have overlapping components but the last component I click on is always drawn on top. How do I fix this?
Java:API:AWT:Layouts
John Zukowski PREMIUM, Jun 30, 2005
When components overlap, be sure their container returns false from the isOptimizedDrawingEnabled() method that is inherited from JComponent. This ensures...
How can I control the Z-order that my overlapping components are drawn in?
Java:API:AWT:Layouts
John Zukowski PREMIUM, Jun 30, 2005
The Container component in the java.awt package provides two methods: setComponentZOrder(Component c, int layer) and getComponentZOrder(Component c). ...
What is z-order?
Java:API:AWT:Layouts
John Zukowski PREMIUM, Jun 30, 2005
To understand z-order, think first of x and y positioning. The x-y coordinate space places position (0, 0) at the top-left corner of the screen. Increasing...
How do I create a Graphics object?
Java:API:AWT:Graphics
Scott Stanchfield, Dec 28, 2001
The initial answer is "you don't; AWT does". Graphics objects are your "window" into an image, whether that image is onscreen or offscreen. If you're...
How can I perform a task while the mouse is pressed, stopping when the mouse is released?
Java:API:AWT:Events
Scott Stanchfield, Dec 28, 2001
The "trick" is to create a new thread that performs the task while the normal event thread watches for the mouse release. If you perform the mouse-pressed...
« previous beginning next »


Ask A Question



Related Links

AWT Forum

Sun's AWT Home Page

The Java Tutorial (Good AWT & Swing Coverage)

Effective Layout Management

Layout Manager Launch

Creating a Custom Layout Manager

Drag and Drop resources

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers