Java Swing tutorials.
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
PDF to TIFF Conversion & Control...
05-24-2013, 11:39 AM in Java Software