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: let an HTML button and textbox change a java parameter

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question let an HTML button and textbox change a java parameter

    Hello Programmers,

    I would like to know how to make an textbox and a button which changes the command parameter to the input java applet (Runned in browser)

    <param name="userName" value="player name">

    like if i enter marlon006 in the textbox and click the button the applet would reload and use the param

    <param name="userName" value="marlon006">

    i know this is possible but i forgot how to use the code.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: let an HTML button and textbox change a java parameter

    Are you asking about methods in the Applet class for getting the values of <param tags in the <applet html code?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: let an HTML button and textbox change a java parameter

    No for outside of the applet class just in the body tags.

    But if it is easier to change it inside the applet class that would be fine to

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: let an HTML button and textbox change a java parameter

    easier to change
    Is this a java programming problem? What are you trying to change?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: let an HTML button and textbox change a java parameter

    I am trying to ADD a feature to my chatbox so users can input a username OUTSIDE of the applet (the source doesn't need editing) like the jave applet and below that an textbox + button to change your user/nickname

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: let an HTML button and textbox change a java parameter

    How is this a java programming problem?
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: let an HTML button and textbox change a java parameter

    this is a a mix of html and java coding..

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: let an HTML button and textbox change a java parameter

    Can you post the java code that you are working with and your questions about it?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Change colour of JComboBox arrow button
    By IanSawyer in forum AWT / Java Swing
    Replies: 0
    Last Post: April 21st, 2012, 04:05 PM
  2. Button does not change Background
    By Noob in forum AWT / Java Swing
    Replies: 6
    Last Post: November 16th, 2011, 01:34 PM
  3. Using a button to change the interface
    By kev670 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 16th, 2011, 08:59 PM
  4. Trigger Button in Html
    By liron in forum Java Networking
    Replies: 1
    Last Post: October 16th, 2010, 09:17 AM
  5. how to using button to change linechart
    By NARs in forum AWT / Java Swing
    Replies: 3
    Last Post: October 30th, 2009, 12:53 PM

Tags for this Thread