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

Thread: Using Java to change websites title?

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    4
    My Mood
    Mellow
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using Java to change websites title?

    I honestly don't know if this is possible, but it sounds like a really cool idea to me.

    I write very very basic java programs and upload them to my website. They range from crappy games to moderately alright text based games, and maybe useful programs. Some of them have to load mp3s and such at the beginning, and depending on a person's (s'?) internet speed, that could take a bit. I was thinking maybe if they were away I could somehow alert the user if they're not on that tab.

    Example: I play Runescape (A popular MMORPG, actually wrote in java) and if I'm not on the tab, and the title screen finishes loading, the tab flashes. Or I've seen some java apps that I downloaded flash when they finished loading. I was thinking that could be applied to the title instead of flashing, kind of like if you were to get a message on facebook.


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

    Default Re: Using Java to change websites title?

    Are you talking about applets? Keep in mind that unless you pay for a certificate, they won't work after the next Java update in January.

    Assuming you are talking about applets and you do have a certificate, I can't think of a way to do it in straight Java. You might be able to execute some javascript or something though.
    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
    Dec 2013
    Posts
    4
    My Mood
    Mellow
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Using Java to change websites title?

    Quote Originally Posted by KevinWorkman View Post
    Are you talking about applets? Keep in mind that unless you pay for a certificate, they won't work after the next Java update in January.

    Assuming you are talking about applets and you do have a certificate, I can't think of a way to do it in straight Java. You might be able to execute some javascript or something though.
    I'm talking about applets, yes. I run a variety of them. And I didn't know about the certificate issue coming in January so thanks for the heads up. I know it's possible to make the title change via javascript, so if I could execute that javascript through the java applet that would work just fine.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Using Java to change websites title?

    For more info on the upcoming changes:
    Running unsigned (Java) applications like this will be blocked in a future release
    January RIA changes
    https://blogs.oracle.com/java-platfo...ments_for_rias

    I believe it's possible to execute javascript from a Java applet, but I've never done it so I'm not much help other than to point you to google. I'd be curious to see what you came up with though!
    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!

  5. #5
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,659
    Thanks
    25
    Thanked 325 Times in 302 Posts

    Default Re: Using Java to change websites title?

    Quote Originally Posted by A Fresh Programmer View Post
    Example: I play Runescape (A popular MMORPG, actually wrote in java)
    Off-topic, but how is Runescape going these days? I haven't played since like middle-school (only ever played on the free servers). I played back when it was 2d. Before leaving, I remember it going to a basic 3d-type graphics.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  6. #6
    Junior Member
    Join Date
    Dec 2013
    Posts
    4
    My Mood
    Mellow
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Using Java to change websites title?

    Quote Originally Posted by KevinWorkman View Post
    For more info on the upcoming changes:
    Running unsigned (Java) applications like this will be blocked in a future release
    January RIA changes
    https://blogs.oracle.com/java-platfo...ments_for_rias

    I believe it's possible to execute javascript from a Java applet, but I've never done it so I'm not much help other than to point you to google. I'd be curious to see what you came up with though!
    Alright, thank you for this information. I'll look into it more. If I find anything before another reply I'll be sure to edit this one and post my findings.

    Quote Originally Posted by aussiemcgr View Post
    Off-topic, but how is Runescape going these days? I haven't played since like middle-school (only ever played on the free servers). I played back when it was 2d. Before leaving, I remember it going to a basic 3d-type graphics.
    Personally, I love it. The graphics are amazing (the client is made to auto-fit the window, or you can use the standard look, or even fullscreen). They've changed the combat system from the old click and wait (where you sat there and basically just ate food when needed lol ) to a system like WoW has (never played wow but that's what everyone says) where you have abilities and all this other stuff, I'm still getting used to that. They're now in like the 6th age, and the gods are getting more interactive with the player (in quests). There was a huge god battle between Zammy and Sara not too long ago that literally changed the 'face' of runescape. You'd really have to look at it now because it's amazing. However, Jagex seems to only be in it for the money right now (in my opinion) because there is a rule against real world trading (buying rs cash for real money) but you can buy bonds with cash, and turn around and sell the bonds for in game wealth. And they have the solomon's store, and the squeal of fortune (they both give you items and you can buy an advantage in each). Plus, the economy is rather whack.

Similar Threads

  1. how to change DB design for a change in java
    By harry7ster in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 7th, 2013, 12:57 PM
  2. creating insurance price comparison websites
    By cliffhouse in forum What's Wrong With My Code?
    Replies: 0
    Last Post: July 16th, 2013, 05:29 PM
  3. Parsing character strings from websites.
    By AT-LOW in forum Java Theory & Questions
    Replies: 6
    Last Post: December 3rd, 2012, 10:39 PM
  4. taskpane issue - how to change title bgcolor
    By yaniv33 in forum AWT / Java Swing
    Replies: 0
    Last Post: March 30th, 2011, 04:37 AM
  5. taskpane issue - how to change title bgcolor
    By yaniv33 in forum Member Introductions
    Replies: 0
    Last Post: March 29th, 2011, 10:41 AM