Learn Java: Awt

Topics: All about Awt'

Browse all answers:

Explain public abstract class AWTEvent in awt?extends EventObject
Explain consume() in awt?
Explain getID() in awt?
Explain isConsumed() in awt?
Explain paramString() in awt?
Explain setSource(Object newSource) in awt?
Explain toString() in awt?
Explain Class AWTKeyStroke in awt?
Explain equals(Object anObject) in awt?
Explain getAWTKeyStroke(char keyChar) in awt?
Explain getAWTKeyStroke(Character keyChar, int modifiers) in awt?
Explain getAWTKeyStroke(int keyCode, int modifiers) in awt?
Explain getAWTKeyStroke(int keyCode, int modifiers, boolean onKeyRelease) in awt?
Explain getAWTKeyStroke(String s) in awt?
Explain getAWTKeyStrokeForEvent(KeyEvent anEvent) in awt?
Explain getKeyChar() in awt?
Explain getKeyCode() in awt?
Explain getKeyEventType() in awt?
Explain getModifiers() in awt?
Explain hashCode() in awt?
Explain isOnKeyRelease() in awt?
Explain readResolve() in awt?
Explain registerSubclass(Class subclass) in awt?
Explain toString() in awt?
Explain Interface KeyEventDispatcher in awt?
Explain boolean dispatchKeyEvent(KeyEvent e) in awt?
Explain Interface KeyEventPostProcessor in awt?
Explain boolean postProcessKeyEvent(KeyEvent e) in awt?
Explain Interface Stroke in awt?
Explain createStrokedShape(Shape p) in awt?
Explain Interface Transparency in awt?
Explain BITMASK in awt?
Explain OPAQUE in awt?
Explain  TRANSLUCENT in  awt?
Explain AffineTransform in awt?
Explain Arc2D in awt?
Explain Class ColorSpace in awt?
Explain fromCIEXYZ in awt?
Explain public int getType() in awt?
Explain getNumComponents in awt?
Explain getName in awt?
Explain getMinValue in awt?
Explain getMaxValue in awt?
When dropping an object over a JTree, how do you determine the node being dropped over?
When having a droppable JTree, how do I change the default behavior of using selection to see the active drop target?
How can I find out if my application is being used with a screen magnifier?
What accessible roles were added to the 1.4 J2SE accessibility API?
Which accessible interfaces were added for J2SE 1.4?
What is the purpose of AccessibleExtendedComponent?
How do I explicitly set the Toolkit for my program?
What this I hear about a new Toolkit for Linux machines in Java 5.0?
Should I use the invokeLater() and invokeAndWait() method of EventQueue or SwingUtilities?
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 to change this behaviour ?
How can I write a GIF image?
How can I place my Java app in the Windows System Tray area?
How do I use the default mail client to send an email?
After adding a bunch of points to a Polygon, can I reuse it or must I create a new one?
How do I test my program for how accessible it is?
How can I control the Z-order that my overlapping components are drawn in? - 06.30.05
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?
What is z-order?
How can I get Pixel Info (width, height, pixel colors) for a text string?
How can I perform a task while the mouse is pressed, stopping when the mouse is released?
How can I save Frame graphics as jpeg image?
How do I create a Graphics object?
Which layouts respect which sizing methods?
Why does GridLayout not respect my row and column parameters?
How can I determine the preferred size of a component immediately after creating it?
What is the difference between AWT and SWT?
How can I determine the currently-focused component?
Can Images respond to mouse events?
How can I display text vetically in a Canvas?
How can I extend the Graphics class to add a new drawing method? 
How can I make user only run one instance of my GUI application?
In case of images how does thread spawning work? Can I stop the AWT from creating a thread for the image while loading? 
What is the default layout manager of an applet?
How can I restrict the size of a component in a BoxLayout?
Why aren't printing-related topics covered in the I/O FAQ? It seems like an I/O issue. 
Can I hide the grey TextField border in an applet while still displaying the text?
How can I determine all of the components contained in a JFrame?
How can I get a reference to the container to which a component has been added?
How do I draw underlined text in an AWT Label component? 
How do I write a status bar in AWT/Swing?
Why does getPreferredSize() return (0,0) for my frame? (Or why does pack() crunch my frame to nothing?)
How can I construct a Flowchart in Java Swing?
How do we stop the AWT Thread? Our Swing application will not terminate. 
How can I determine the active JFrame?
SSN Validation Are there any guides to validating social security numbers?
Ensuring that previous graphical objects do not get erased with every repaint I'm trying to create a MS-Paint Style whiteboard for collaborative work across the net.
Why doesn't the Windows L&F use the same Fonts as Windows?
Where can I learn (more) about dealing with 2D (two dimensional) and 3D (three dimensional) images, sound, speech, telelphony, and the rest of Java's support for advanced media handling? 
If an event handler throws an exception which it does not itself catch, there is a crash in the current EventQueue DispatchThread. 
Whats is the Dimension Class used for?
How can I use the Java 2D API in an applet?
What policies/permissions are needed to use drag and drop in an applet?
Do we have a round button. Can we have a round button which is not awt component.It should be a bean where i can change the size and color of button.
Changing style of selected text in Text Area componet of awt
Can I change thickness of a line in Graphics without using Graphics2D?
Can I make an AWT Panel transparent?
How do you drag and drop one row in a JTable to another… How do you drag and drop one row in a JTable to another location in the JTable.
Will Sun continue updating and supporting AWT, or is… Will Sun continue updating and supporting AWT, or is it going to phase it out and support only Swing?
Why do we need to import java.awt.event.* if you have already imported java.awt.*?
How can I make a TextArea Word-Wrap?
How do I justify text in a TextArea?
I need to learn more about printing in JDK 1.1; I cannot use Java 2 and its Java 2D printing support. Can you suggest any references?
How can I capture and modify the value of the key pressed before it will be displayed in the TextArea ?
How can I place an image on an AWT button? 
Is there any way to make a Canvas be double buffered?
What is going on behind the scenes when I add a Component (like a button) to a Container (like a Frame)?
Why is Toolkit.synch() useful for animation? When should I use it?
in JAVA 1.1, how can a component notify its container about an event? For example, how can a button's container know it was pressed? 
Can a scrollpane be scrolled using the arrow keys on the keyboard?
How can I display an image instead of text in a menu?
What is the difference between an Applet and an Application?
I'm trying to use the new createFont() method of Font in JDK 1.3 to load a TTF font in an applet. 
Is there any implementation of RGB color chooser component for JDK 1.1 without using Swing?
How do I use the Dynamic Proxy API to generate event listeners dynamically?
What is BoxLayout?
How can I take snapshots of Java components and save them into image files?
How can I determine the size of a Frame when I resize or maximize it? 
How can I provide a split pane type of behavior (as in JSplitPane) without using Swing (just AWT)?
What is the use of setPreferredSize() method for components?
What version of the JDK added support for drag and drop?
How can I display a WML page in an Applet (or any Java application), like how JEditorPane displays HTML?
How can I set the minimum size of a Window/Frame?
How do I display a String as an HTTP hyperlink in a dialog box? 
What is the difference between a Frame and a JFrame?
How do I display a message in the status window of any window ? (similar to show status in Applet)
Are there any tools available to convert images to WBMP?
How can I determine exact screen location of mouse pointer after mouse event in an applet?
Using drag-and-drop and trees, how can you select a subtree and drop it on another container? What do you use for transferable?
How can we show a moving mouse-cursor on any container screen, without moving the mouse device manually and then also track the cursor movement so that when the cursor hits a certain component on the screen an action occurs? 
How can I post a message to the eventqueue? I want to use this if a worker thread is ready with some code and wants the AWT to run some code. This code needs to support a very old browser, so I can't use any swingutils like invokeLater. 
is it possible to select a printer for a print job without forcing the user to select from a dialog box?