![]() |
||
![]() |
![]() Alden Hosting provides professional, efficient, and reliable business-class Web hosting services to small- and medium-sized businesses. |
|
|
JAVA, JSP, SERVLETS, TOMCAT, SERVLETS MANAGER, |
|||||||||||||||||||||||||||||||||||||||||||||
| Method | Purpose |
|---|---|
| actionPerformed(actionEvent) | Called just after the user performs an action. |
| Method | Purpose |
|---|---|
| String getActionCommand() | Returns the string associated with this action.
Most objects that can fire action events
support a method called setActionCommand
that lets you set this string.
|
| int getModifiers() | Returns an integer representing
the modifier keys the user was pressing
when the action event occurred.
You can use the ActionEvent-defined constants
SHIFT_MASK,
CTRL_MASK,
META_MASK, and
ALT_MASK
to determine which keys were pressed.
For example, if the user Shift-selects a menu item,
then the following expression is nonzero:
|
|
Object getSource() (in java.util.EventObject)
|
Returns the object that fired the event. |
The following table lists some of the many examples that use action listeners.
Example Where Described Notes BeeperThis section and Introduction to Event Listeners Contains one button with one action listener that beeps when you click the button. MultiListenerIntroduction to Event Listeners Registers two different action listeners on one button. Also registers the same action listener on two different buttons. RadioButtonDemoHow to Use Radio Buttons Registers the same action listener on five radio buttons. The listener uses the getActionCommandmethod to determine which radio button fired the event.MenuDemoHow to Use Menus Shows how to listen for action events on menu items. DragPictureDemo2Adding Cut/Copy/Paste Support to Data Transfer Uses setActionCommandto attach the cut, copy, and paste actions to the menu. Then uses an action listener to forward the cut/copy/paste actions to the currently focused component.TextDemoHow to Use Icons Loads an image in an action listener. Because loading an image can take a while, this program uses a SwingWorkerto load the image in a background thread.TableDialogEditDemoHow to Use Tables Registers an action listener through a factory method on the OK button of a color chooser dialog. SliderDemoHow to Use Sliders Registers an action listener on a timer that controls an animation loop.
Alden Hosting offers private JVM (Java Virtual Machine), Java Server Pages (JSP), Servlets, and Servlets Manager with our Web Hosting Plans WEB 4 PLAN and WEB 5 PLAN , WEB 6 PLAN .
At Alden Hosting we eat and breathe Java! We are the industry leader in providing affordable, quality and efficient Java web hosting in the shared hosting marketplace. All our sites run on our Java hosing platform configured for optimum performance using Java 1.6, Tomcat 6.0.X, MySQL 5.0.x, Apache 2.2.xx and web application frameworks such as Struts, Hibernate, Cocoon, Ant, etc.
We offer only one type of Java hosting - Private Tomcat. Hosting accounts on the Private Tomcat environment get their very own Tomcat server. You can start and re-start your entire Tomcat server yourself.
![]() |
|
http://alden-servlet-Hosting.com
JSP at alden-servlet-Hosting.com
Servlets at alden-servlet-Hosting.com
Servlet at alden-servlet-Hosting.com
Tomcat at alden-servlet-Hosting.com
MySQL at alden-servlet-Hosting.com
Java at alden-servlet-Hosting.com
sFTP at alden-servlet-Hosting.com
http://alden-tomcat-Hosting.com
JSP at alden-tomcat-Hosting.com
Servlets at alden-tomcat-Hosting.com
Servlet at alden-tomcat-Hosting.com
Tomcat at alden-tomcat-Hosting.com
MySQL at alden-tomcat-Hosting.com
Java at alden-tomcat-Hosting.com
sFTP at alden-tomcat-Hosting.com
http://alden-sftp-Hosting.com
JSP at alden-sftp-Hosting.com
Servlets at alden-sftp-Hosting.com
Servlet at alden-sftp-Hosting.com
Tomcat at alden-sftp-Hosting.com
MySQL at alden-sftp-Hosting.com
Java at alden-sftp-Hosting.com
sFTP at alden-sftp-Hosting.com
http://alden-jsp-Hosting.com
JSP at alden-jsp-Hosting.com
Servlets at alden-jsp-Hosting.com
Servlet at alden-jsp-Hosting.com
Tomcat at alden-jsp-Hosting.com
MySQL at alden-jsp-Hosting.com
Java at alden-jsp-Hosting.com
sFTP at alden-jsp-Hosting.com
http://alden-java-Hosting.com
JSp at alden-java-Hosting.com
Servlets at alden-java-Hosting.com
Servlet at alden-java-Hosting.com
Tomcat at alden-java-Hosting.com
MySQL at alden-java-Hosting.com
Java at alden-java-Hosting.com
sFTP at alden-java-Hosting.com
JSP
Servlets
Tomcat
mysql
Java
JSP
Servlets
Tomcat
mysql
Java
JSP
Servlets
Tomcat
mysql
Java
JSP
Servlets
Tomcat
mysql
Java
JSP at JSP.aldenWEBhosting.com
Servlets at servlets.aldenWEBhosting.com
Tomcat at Tomcat.aldenWEBhosting.com
mysql at mysql.aldenWEBhosting.com
Java at Java.aldenWEBhosting.com
Web Hosts Portal
Web Links
Web Links
Web Hosting
JSP Solutions Web Links
JSP Solutions Web Hosting
Servlets Solutions Web Links
Servlets Solutions Web Hosting
Web Links
Web Links
.
.
.
.
.
.
.
.
.
.
jsp hosting
servlets hosting
web hosting
web sites designed
cheap web hosting
web site hosting
myspace web hosting