AWT Section Index | Page 4
How can I construct a Flowchart in Java Swing?
There are some toolkits that might help with the graph construction. Tom Sawyer's in particular, has some very nice automated graph layout support.
http://www.jhotdraw.org/
http://www.tomsawyer....more
How do we stop the AWT Thread? Our Swing application will not terminate.
You need to explicitly call System.exit(exit_value) to exit a Swing application. This is because the event dispatcher thread is not a Daemon thread, and won't allow the JVM to shut down when othe...more
Can someone please explain the use of getMinimumSize()?
See my article on layout management, Effective Layout Management.
http://developer.java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/index.html
The basic idea is that the components state t...more
How can I determine the active JFrame?
Call Frame.getFrames() which will return all frames created by the application.
Frame[] f = Frame.getFrames();
Frame active = null;
for (int i = 0; i < f.lenght; i++) {
if (f[i].isActive()...more
SSN Validation Are there any guides to validating social security numbers?
The first three digits of an SSN map to the location where the number was requested. The Social Security Administration maintains a list of valid digit mappings at http://www.ssa.gov/foia/stateweb...more
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.
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.
Any previously drawn graphical...more
Why doesn't the Windows L&F use the same Fonts as Windows?
Why doesn't the Windows L&F use the same Fonts as Windows?
Why don't they just use the SAME? I know they do try to follow the Windows settings (even more in 1.4!) But, still, the fonts (the mos...more
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?
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?
Where can I learn (more) about Java's support for developing multi-threaded programs?
Check out the jGuru Threads
FAQ.
Where can I learn (more) about using the Java Swing windowing components to build GUIs (Graphical User Interfaces)?
Check out the jGuru Swing
FAQ.
If an event handler throws an exception which it does not itself catch, there is a crash in the current EventQueue DispatchThread.
If an event handler throws an exception which it does not itself catch, there is a crash in the current EventQueue DispatchThread.
It is impractical to put a try-catch around every possible event...more
Whats is the Dimension Class used for?
The Dimension class is a representation of the size of an AWT or Swing component.
It's returned from several methods, such as
comp.getSize();
comp.getPreferredSize();
comp.getMaximumSize...more
How can I use the Java 2D API in an applet?
The Java environment in browsers is based on Java 1.1.x. The Java 2D API is part of the Java 2 standard. In order to use the Java 2D API in an applet, you need to use the Java Plug-in, which allow...more
What policies/permissions are needed to use drag and drop in an applet?
According to the Drag and Drop FAQ:
grant {
permission java.awt.AWTPermission
"accessEventQueue";
permission java.awt.AWTPermission
"setDropTarget";
permission...more
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.
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.
chetana