Results 1 to 4 of 4
  1. #1
    thousif291989 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Exclamation action performed method for

    can v add multiple action listeners for buttons that r in different frames? if yes how?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Yes.

    For details we'll need to know more about the details of your code. And please out of respect for the folks here avoid using non-standard abbreviations.

  3. #3
    thousif291989 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default

    my code consists of two frames which consists of 3 textfields and 1 button. when the button is clicked i want to extract the values in the textfields and store the values in 3 different variables. now there is only one action performed method in my code but i want two action performed methods for two different frames. when i try to add one action performed i m getting an error saying its already defined. is the problem coz two functions hv the same name. can the two buttons hv different action listeners? how can v add that actionlisteners to them?

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default

    Quote Originally Posted by Fubarable View Post
    ... out of respect for the folks here avoid using non-standard abbreviations.
    Quote Originally Posted by thousif291989 View Post
    my code consists of two frames which consists of 3 textfields and 1 button. when the button is clicked i want to extract the values in the textfields and store the values in 3 different variables. now there is only one action performed method in my code but i want two action performed methods for two different frames. when i try to add one action performed i m getting an error saying its already defined. is the problem coz two functions hv the same name. can the two buttons hv different action listeners? how can v add that actionlisteners to them?
    Total lack of respect. This one doesn't deserve advice on a forum.

    db

Similar Threads

  1. Replies: 2
    Last Post: 03-31-2011, 12:10 AM
  2. Replies: 3
    Last Post: 08-19-2010, 09:27 AM
  3. Replies: 2
    Last Post: 03-23-2009, 10:02 AM
  4. Replies: 3
    Last Post: 08-08-2008, 03:53 AM
  5. JXTaskPane Action performed
    By Rama Koti Reddy in forum AWT / Swing
    Replies: 0
    Last Post: 12-10-2007, 02:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •