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 5 of 5

Thread: help me please

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default help me please

    how to have a submit button code and result .

  2. #2
    Member
    Join Date
    Jul 2013
    Posts
    219
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default Re: help me please

    Hello.
    Please learn first how to ask questions sincerely.

    Syed.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: help me please

    hello,sorry for mymistake ,
    i want to solve the question .
    this is apply Graphical User Interface and Event Handling programming .
    (This system is allowing teacher to key in student mark for assignment, lab work, mid-term test and final exam. Once the teacher hit submit button, system will calculate total of marks)

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,038
    My Mood
    Mellow
    Thanks
    184
    Thanked 647 Times in 634 Posts

    Default Re: help me please

    And what have you done so far?

  5. #5
    Member
    Join Date
    May 2013
    Posts
    96
    My Mood
    Amused
    Thanks
    16
    Thanked 9 Times in 9 Posts

    Default Re: help me please

    Well, a submit button, on something like a GUI, would be added as a JButton object. JButton jbtSubmit = new JButton("Submit"), then use the add() method in the JFrame class to add that to a frame. To actually make the submit button do something, write a listener class that implements ActionListener. Write the code for what you want it to do in the actionPerformed method. Then use the .addActionListener() method to add it to your JButton. You probably need some text fields too.