Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Praktikum Membuat Program Web Browser Java

Praktikum Membuat Program Web Browser Java

Ratings: (0)|Views: 61 |Likes:
Published by Patricia Brown
java
java

More info:

Categories:Types, School Work
Published by: Patricia Brown on May 17, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/09/2013

pdf

text

original

 
PRAKTIKUMPEMROGRAMAN JARINGAN KOMPUTER 
PRAKTIKUM MEMBUAT PROGRAM WEB BROWSER JAVA
OlehKorina0610 3070 12276tcb
TEKNIK KOMPUTER POLITEKNIK NEGERI SRIWIJAYAPALEMBANG2013
 
 
PRAKTIKUM MEMBUAT PROGRAM WEB BROWSER JAVALangkah
 – 
langkah praktikum ini yaitu :1.
 
Install terlebih dahulu file jdk dan Textpad terlebihdahulu.2.
 
Jika kedua file tersebut telah berhasil di install,buka aplikasi Textpad untuk membuat programweb browser java.3.
 
Kemudian ketikkan listing program web browser java,listing programnya yaitu :import java.io.*;import java.awt.*;import java.awt.event.*;import java.net.*;import java.util.Scanner; public class browseroyin{ public static void main(String[] args){try {BufferedReader input = new BufferedReader(newInputStreamReader(System.in));int menu=0;int pil;Scanner masuk = new Scanner(System.in);while(menu==0){System.out.println("__________________________________________________");System.out.println("| |");System.out.println("| SELAMAT DATANG |");System.out.println("| Aplikasi Web Browser Java Melalui Command Line |");System.out.println("|_________________________________________________|");System.out.println("|________________________________________________|");System.out.println("| |");System.out.println("| TEKNIK KOMPUTER |");System.out.println("| Korina (061030701227) |");System.out.println("| KELAS 6 TCB |");System.out.println("|________________________________________________|");
 
System.out.println("| MENU WEB BROWSER JAVA |");System.out.println("| 1. Membuka URL web |");System.out.println("| 2. Pencarian Google |");System.out.println("| 3. Pencarian Gambar di Google |");System.out.println("| 4. Google Translate |");System.out.println("| 5. EXIT |");System.out.println("|_______________________________________|");System.out.print("");System.out.print("Masukkan Menu Pilihan anda :"); pil = masuk.nextInt();if(pil < 1 || pil > 5){System.out.print("");System.out.println("Input Anda Salah!!! silahkan ulangi lagi...");} else if (pil==5){System.exit(0);}switch (pil) {case 1:String URL = null;System.out.print("Masukkan URL : ");URL = input.readLine(); java.awt.Desktop.getDesktop().browse(java.net.URI.create(URL)); break;case 2:String src2 = null;System.out.print("Masukkan Kata Pencarian : ");src2 = input.readLine(); java.awt.Desktop.getDesktop().browse(java.net.URI.create("https://www.google.co.id/#sclient=psy-ab&q="+ src2)); break;case 3:String gmbr3 = null;

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->