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

Thread: Is there a way to find the url of the applet?

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Is there a way to find the url of the applet?

    Lets say I want to write an applet that displays the url of the server the applets is stored on. Is that possible and what is the function for knowing it?

    I was thinking something like
    TextField t;
    t.setText(thisURL());
    where thisURL() is the funktion that returns the url of the server. Is this possible?


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

    Default Re: Is there a way to find the url of the applet?

    Have you tried any of the applet class's methods? Read the API doc to see if there are any methods the will do what you want. Then test the to see what they return.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 29
    Last Post: May 18th, 2012, 02:16 PM
  2. How to find collision between balls in Applet animation
    By AJAXx195 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 4th, 2011, 01:01 PM
  3. Replies: 0
    Last Post: October 13th, 2011, 07:42 PM
  4. find LCS
    By Anemone_ in forum Algorithms & Recursion
    Replies: 1
    Last Post: November 28th, 2010, 02:03 PM
  5. Applet cannot find client.class?
    By JoshRod in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 18th, 2010, 05:17 PM