Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Command pattern in GUI

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I know command pattern can be used in GUI but i am having tough time trying to get a example of it.
in my current GUI i have the user to highlight a text from the Text area, then he needs to select a index from a List and and then he needs to select another index from another list. The problem here is i have 3 different actions but i require the items choosen by the 3 actions for my function to perform. People say Command pattern can solve this but i am not sure how

Any suggestions ?

Regards,
Titus
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Check this tutorial:
http://www.javaworld.com/javaworld/javatips/jw-javatip68.html

It provides a basic understanding of the command pattern.

Hope it helps.


Kind regards,
Rok
reply
    Bookmark Topic Watch Topic
  • New Topic