Orcworm.co.uk
  • Search
  • Server
  • Rules
  • Map

Register


Orcworm.co.uk Support Technical v
1 2 3 Next »
Help Coding


Threaded Mode | Linear Mode
Help Coding
Author Message
onlinerocker Offline
Donator
**

Posts: 260
Threads: 13
Joined: Nov 2011
Reputation: 21
Post: #1
Help Coding
I'm trying to code a GUI button that links to my YouTube.
I've got the button created and everything, I just don't know how to get it to link to my YouTube channel.
05-07-2012, 01:08 AM
Find Reply
ProjectG Offline
Avid Xrayer
**

Posts: 275
Threads: 28
Joined: Nov 2011
Reputation: 21
Post: #2
RE: Help Coding
>coding a client

>selfplug when they can just look up your name

>releasing your client to some of the real dumbshits to use

When people download your client, where do they get it from? Oh right, YOUR CHANNEL.

[Image: ord3X.gif]
Veteran Of The Orcworm Server.
[Image: 35685.png]


05-07-2012, 02:50 AM
Find Reply
zieve Offline
Donator
**

Posts: 21
Threads: 0
Joined: Feb 2012
Reputation: 4
Post: #3
RE: Help Coding
In the EventListener for the button, put this:
Code:
URI uri = new URI("http://youtube.com/your_channel");
Desktop desktop = Desktop.getDesktop();
desktop.browse(uri);

You will also need these two imports:
Code:
import java.awt.Desktop;
import java.net.URI;
(This post was last modified: 05-07-2012, 08:48 AM by zieve.)
05-07-2012, 08:43 AM
Find Reply
onlinerocker Offline
Donator
**

Posts: 260
Threads: 13
Joined: Nov 2011
Reputation: 21
Post: #4
RE: Help Coding
Thanks works great man.
+3
05-07-2012, 11:11 PM
Find Reply
« Next Oldest | Next Newest »



  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)

Return to TopLite (Archive) Mode

Powered By MyBB, © 2002-2022 MyBB Group.