Shared behavior between different user interfaces components are implemented by “Swing Action Architecture”. Like tool bar buttons and menu items perform same actions. All the components are disabled when an action is disabled. Java Code: Swing Action Architecture class FileAction extends AbstractAction { //Constructor FileAction(String name) { super(name); } public void actionPerformed(ActionEvent ae){ //add action logic here } } JMenu fileMenu ...
class FileAction extends AbstractAction { //Constructor FileAction(String name) { super(name); } public void actionPerformed(ActionEvent ae){ //add action logic here } } JMenu fileMenu
Updated 01-14-2012 at 06:56 PM by Java Swing
This article will guide you how to validate a form from Strut’s action classes. We are going to develop a simple web application that allows user to enter email address and password to login. The email and password will be validated on the server side, in the action class. You are assumed to be familiar with Java web development using Eclipse IDE and understand how a Struts application works at the fundamental level. You also know how to deploy a Java web application on Tomcat server. ...
PDF to TIFF Conversion & Control...
Yesterday, 11:39 AM in Java Software