redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Friday 03 September 2010 04:36

Ask your IT question here

how would i pass arguments when invoking an action manually?



 
Post new topic   Reply to topic    Programming Forums -> JAVA programming forum
View previous topic :: View next topic  
Author Message
Amber Spall
New Programmer


Joined: 18 Jun 2006
Posts: 3
Hi, everybody. i've got a design question. I'd like to use actions (abstractaction and such) in my application, but how would i pass arguments when invoking an action manually?
I'll have some GUI-actions and some "internal" actions
Or shouldn't I mix these things up?

Reply with quote
 
devunion
New Programmer


Joined: 04 Feb 2009
Posts: 8
Where is the problem?

Code:
ActionEvent e = new ActionEvent(/* parameters */);
e.setXXX(/* args */);

new AbstractAction() {
     public void actionPerformed(ActionEvent e) {
        // Some code here
     }
}.actionPerformed(e);

_________________
Welcome to Freelancer's world-wide portal

Reply with quote
 
Page 1 of 1
Post new topic   Reply to topic    Programming Forums -> JAVA programming forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Based on phpBB © 2001-2010 RedHo