Java-GNOME 2.10 GNOME Tutorial | ||
---|---|---|
<<< Previous | Non-Visual Classes | Next >>> |
Url provides the capability to display the contents of a url in the registered browser. There is only one static method in thic class. An example follows:
Example 4. UrlTest.java - Url
import org.gnu.gnome.Program; import org.gnu.gnome.Url; public class UrlTest { public UrlTest() { Url.show("http://java-gnome.sourceforge.net"); } public static void main(String[] args) { Program.initGnome("Url Example", "1.0", args); UrlTest url = new UrlTest(); } } |
This simple example will display the Java-GNOME home page in the registered browser.
<<< Previous | Home | Next >>> |
Sound | Up | The Widgets |