Orcworm.co.uk
Help Coding - Printable Version

+- Orcworm.co.uk (https://orcworm.co.uk)
+-- Forum: Support (https://orcworm.co.uk/forumdisplay.php?fid=17)
+--- Forum: Technical (https://orcworm.co.uk/forumdisplay.php?fid=20)
+--- Thread: Help Coding (/showthread.php?tid=1912)



Help Coding - onlinerocker - 05-07-2012

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.



RE: Help Coding - ProjectG - 05-07-2012

>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.


RE: Help Coding - zieve - 05-07-2012

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;



RE: Help Coding - onlinerocker - 05-07-2012

Thanks works great man.
+3