Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: Java - Button Actions on Form --Please help

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java - Button Actions on Form --Please help

    I am creating a new class to forward a request to another group. I don't want to test this condition. I just want it to go to that employee that is in that group. How do I specify that in my code.

    this.group == "BOGROUP"
    this.em_id == assignee


    public Forward(EventHandlerContext context, String activity_id, int id, String stepName,
    String assignee, String role) {
    super(context, activity_id, id, STEP_TYPE, stepName);


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,447
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 544 Posts

    Default Re: Java - Button Actions on Form --Please help

    I have no idea what you're actually asking. What exactly are you trying to do?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java - Button Actions on Form --Please help

    I am trying to forward a form to another group. Instead of me testing with an IF statement I only want this forward to go to the employee that are assigned to a specific group. The group names are already defined in the system that is why I am using 'this'. How to I state this in my code without using variables? Below is what the beginning of my code looks like:

    public Forward(EventHandlerContext context, String activity_id, int id, String stepName,
    String assignee, String role) {
    super(context, activity_id, id, STEP_TYPE, stepName); 
     
    this.group == "BOGROUP"
    this.em_id == assignee

  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Java - Button Actions on Form --Please help

    Sorry Cami7 but after reading both posts, I am also confused.
    Can you post more code. We need to get a better idea of what you are trying to do.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  5. #5
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,447
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 544 Posts

    Default Re: Java - Button Actions on Form --Please help

    Show us the way you don't want to do it, and tell us why you don't want to do it that way.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #6
    Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java - Button Actions on Form --Please help

    tHIS IS THE WAY I DON'T WANT IT DONE. INSTEAD OF SENDING REQUESTS TO SELECTED PEOPLE I WANT TO SEND DIRECTELY TO THE EMPLOYEES THAT ARE IN A CERTAIN GROUP. -->EM_ID , GROUPHOLLAND I am getting a js engine error and the error when clicked is 'undefined'.

    public MORE(EventHandlerContext context, String activity_id, int id, String stepName,
    String assignee) {
    super(context, activity_id, id, STEP_TYPE, stepName);

    if (stepName.equals(STEP_FORWARD_PERSON)) {
    this.PERSON= assignee;
    } else if (stepName.equals(STEP_FORWARD_PERSON2)) {
    this.PERSON2 = assignee;
    } else if (stepName.equals(STEP_FORWARD_PERSON3)){
    this.PERSON3_id = assignee;
    } else {
    this.em_id = assignee; }
    }

  7. #7
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,447
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 544 Posts

    Default Re: Java - Button Actions on Form --Please help

    Wait, are you talking about Java or javascript? They are not the same. This is a Java forum.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. #8
    Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java - Button Actions on Form --Please help

    I am talking about java. The code I submittd in a public class being called by my HTML view.

Similar Threads

  1. HOW TO PUT A BROWSE BUTTON IN JAVA?
    By mailtoramesh in forum AWT / Java Swing
    Replies: 4
    Last Post: November 15th, 2010, 11:17 PM
  2. Need Hellp!! problem with org.apache.struts.actions.DownloadAction.copy
    By nikshri in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 6th, 2010, 01:06 AM
  3. form
    By IBANGS in forum AWT / Java Swing
    Replies: 3
    Last Post: June 15th, 2010, 03:25 AM
  4. Java Swing :Back Button from one form to another form
    By srinivasan_253642 in forum AWT / Java Swing
    Replies: 1
    Last Post: December 26th, 2009, 08:51 AM
  5. do actions in ComboBox
    By java_cs in forum AWT / Java Swing
    Replies: 2
    Last Post: October 1st, 2009, 10:53 AM