From 2cb042f01157c3f21bb0b457342307e41431ffbd Mon Sep 17 00:00:00 2001
From: Kumar Priyansh <30593201+luciferreeves@users.noreply.github.com>
Date: Tue, 14 Nov 2017 18:27:39 +0530
Subject: My Web Browser
---
Download | 1 +
PAssword.log | 18 +
WebBrowser$1.class | Bin 0 -> 652 bytes
WebBrowser$10.class | Bin 0 -> 602 bytes
WebBrowser$2.class | Bin 0 -> 2855 bytes
WebBrowser$3.class | Bin 0 -> 2970 bytes
WebBrowser$4.class | Bin 0 -> 2914 bytes
WebBrowser$5.class | Bin 0 -> 1995 bytes
WebBrowser$6.class | Bin 0 -> 2680 bytes
WebBrowser$7$1.class | Bin 0 -> 1789 bytes
WebBrowser$7$2.class | Bin 0 -> 1814 bytes
WebBrowser$7.class | Bin 0 -> 600 bytes
WebBrowser$8$1.class | Bin 0 -> 1981 bytes
WebBrowser$8$2.class | Bin 0 -> 2063 bytes
WebBrowser$8.class | Bin 0 -> 5657 bytes
WebBrowser$9.class | Bin 0 -> 809 bytes
WebBrowser.class | Bin 0 -> 22445 bytes
WebBrowser.ctxt | 35 +
WebBrowser.java | 2255 ++++++++++++++++++++++++++++++++++++++++++++++++++
about$1.class | Bin 0 -> 617 bytes
about.class | Bin 0 -> 2090 bytes
download$1.class | Bin 0 -> 2817 bytes
download$2.class | Bin 0 -> 1129 bytes
download$3.class | Bin 0 -> 661 bytes
download.class | Bin 0 -> 5140 bytes
error.html | 10 +
info$1.class | Bin 0 -> 641 bytes
info$2.class | Bin 0 -> 641 bytes
info.class | Bin 0 -> 3769 bytes
package.bluej | 32 +
30 files changed, 2351 insertions(+)
create mode 100644 Download
create mode 100644 PAssword.log
create mode 100644 WebBrowser$1.class
create mode 100644 WebBrowser$10.class
create mode 100644 WebBrowser$2.class
create mode 100644 WebBrowser$3.class
create mode 100644 WebBrowser$4.class
create mode 100644 WebBrowser$5.class
create mode 100644 WebBrowser$6.class
create mode 100644 WebBrowser$7$1.class
create mode 100644 WebBrowser$7$2.class
create mode 100644 WebBrowser$7.class
create mode 100644 WebBrowser$8$1.class
create mode 100644 WebBrowser$8$2.class
create mode 100644 WebBrowser$8.class
create mode 100644 WebBrowser$9.class
create mode 100644 WebBrowser.class
create mode 100644 WebBrowser.ctxt
create mode 100644 WebBrowser.java
create mode 100644 about$1.class
create mode 100644 about.class
create mode 100644 download$1.class
create mode 100644 download$2.class
create mode 100644 download$3.class
create mode 100644 download.class
create mode 100644 error.html
create mode 100644 info$1.class
create mode 100644 info$2.class
create mode 100644 info.class
create mode 100644 package.bluej
diff --git a/Download b/Download
new file mode 100644
index 0000000..ac044e5
--- /dev/null
+++ b/Download
@@ -0,0 +1 @@
+R
\ No newline at end of file
diff --git a/PAssword.log b/PAssword.log
new file mode 100644
index 0000000..6dba90d
--- /dev/null
+++ b/PAssword.log
@@ -0,0 +1,18 @@
+
+*****************************************************************
+* *
+* ## Mirror WEBBROWSER ## *
+* -PravinH Rane *
+* *
+*****************************************************************
+* *
+* @ Password For Unloacking Blocked WebSite: *
+* *
+* Pass: sherkhan *
+* confirme: sherkhan *
+* *
+* *
+* *
+* *
+* *
+***************************************************************** *
\ No newline at end of file
diff --git a/WebBrowser$1.class b/WebBrowser$1.class
new file mode 100644
index 0000000..ff102bc
Binary files /dev/null and b/WebBrowser$1.class differ
diff --git a/WebBrowser$10.class b/WebBrowser$10.class
new file mode 100644
index 0000000..b9f0ede
Binary files /dev/null and b/WebBrowser$10.class differ
diff --git a/WebBrowser$2.class b/WebBrowser$2.class
new file mode 100644
index 0000000..9943f0f
Binary files /dev/null and b/WebBrowser$2.class differ
diff --git a/WebBrowser$3.class b/WebBrowser$3.class
new file mode 100644
index 0000000..ca84640
Binary files /dev/null and b/WebBrowser$3.class differ
diff --git a/WebBrowser$4.class b/WebBrowser$4.class
new file mode 100644
index 0000000..69cdecc
Binary files /dev/null and b/WebBrowser$4.class differ
diff --git a/WebBrowser$5.class b/WebBrowser$5.class
new file mode 100644
index 0000000..087d649
Binary files /dev/null and b/WebBrowser$5.class differ
diff --git a/WebBrowser$6.class b/WebBrowser$6.class
new file mode 100644
index 0000000..95a1ffe
Binary files /dev/null and b/WebBrowser$6.class differ
diff --git a/WebBrowser$7$1.class b/WebBrowser$7$1.class
new file mode 100644
index 0000000..d578b9e
Binary files /dev/null and b/WebBrowser$7$1.class differ
diff --git a/WebBrowser$7$2.class b/WebBrowser$7$2.class
new file mode 100644
index 0000000..f554a95
Binary files /dev/null and b/WebBrowser$7$2.class differ
diff --git a/WebBrowser$7.class b/WebBrowser$7.class
new file mode 100644
index 0000000..fd69b4a
Binary files /dev/null and b/WebBrowser$7.class differ
diff --git a/WebBrowser$8$1.class b/WebBrowser$8$1.class
new file mode 100644
index 0000000..0165f7a
Binary files /dev/null and b/WebBrowser$8$1.class differ
diff --git a/WebBrowser$8$2.class b/WebBrowser$8$2.class
new file mode 100644
index 0000000..2a0fb7e
Binary files /dev/null and b/WebBrowser$8$2.class differ
diff --git a/WebBrowser$8.class b/WebBrowser$8.class
new file mode 100644
index 0000000..27e0cee
Binary files /dev/null and b/WebBrowser$8.class differ
diff --git a/WebBrowser$9.class b/WebBrowser$9.class
new file mode 100644
index 0000000..a7d4470
Binary files /dev/null and b/WebBrowser$9.class differ
diff --git a/WebBrowser.class b/WebBrowser.class
new file mode 100644
index 0000000..bbb1432
Binary files /dev/null and b/WebBrowser.class differ
diff --git a/WebBrowser.ctxt b/WebBrowser.ctxt
new file mode 100644
index 0000000..e05b3fe
--- /dev/null
+++ b/WebBrowser.ctxt
@@ -0,0 +1,35 @@
+#BlueJ class context
+comment0.target=WebBrowser
+comment1.params=
+comment1.target=WebBrowser()
+comment10.params=r
+comment10.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment11.params=r
+comment11.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment12.params=r
+comment12.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment13.params=r
+comment13.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment14.params=e
+comment14.target=void\ hyperlinkUpdate(javax.swing.event.HyperlinkEvent)
+comment15.params=e
+comment15.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment16.params=args
+comment16.target=void\ main(java.lang.String[])
+comment2.params=r
+comment2.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment3.params=r
+comment3.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment4.params=r
+comment4.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment5.params=r
+comment5.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment6.params=r
+comment6.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment7.params=r
+comment7.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment8.params=r
+comment8.target=void\ actionPerformed(java.awt.event.ActionEvent)
+comment9.params=r
+comment9.target=void\ actionPerformed(java.awt.event.ActionEvent)
+numComments=17
diff --git a/WebBrowser.java b/WebBrowser.java
new file mode 100644
index 0000000..300a65c
--- /dev/null
+++ b/WebBrowser.java
@@ -0,0 +1,2255 @@
+
+
+//creating a simple Web Browser
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.io.*;
+import java.util.*;
+import javax.swing.event.*;
+import java.lang.reflect.*;
+import javax.swing.border.*;
+import javax.swing.plaf.basic.*;
+import java.awt.image.ImageConsumer ;
+import java.awt.image.ImageObserver;
+import java.applet.AudioClip;
+import javax.swing.filechooser.FileView;
+import java.net.*;
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import java.io.*;
+import java.util.*;
+import javax.swing.event.*;
+import java.lang.reflect.*;
+import javax.swing.border.*;
+import javax.swing.plaf.basic.*;
+import java.awt.image.ImageConsumer ;
+import java.awt.image.ImageObserver;
+
+import java.net.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import javax.swing.border.*;
+
+import javax.swing.event.*;
+import javax.sound.midi.*;
+import javax.swing.Timer;
+import javax.swing.JEditorPane.*;
+import java.net.*;
+import javax.swing.text.html.*;
+import javax.swing.event.HyperlinkEvent.EventType;
+import javax.swing.event.HyperlinkEvent.EventType.*;
+import javax.swing.text.html.HTMLEditorKit.*;
+
+
+public class WebBrowser extends JFrame implements ActionListener,HyperlinkListener
+{
+
+ JTextField textField;
+ JScrollPane sp;
+ JButton b;
+ JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11;
+ JEditorPane editorPane;
+ JPanel p1,p2,p3,p4;
+ JSpinner jsp;
+ JLabel l1,l2,l3,l4,l5,l6;
+ MenuBar mb;
+ JToolBar t1,t2,t3;
+ Menu m1,m2,m3,m4,m5,m6;
+ MenuItem i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,i12,i13,i14,i15,i16;
+ ImageIcon y1,y2,y3,y4,y5,y6,y7,y8,y9;
+ Container cp;
+ int count=0;
+ int store=0;
+ int y=0;
+ int max=0;
+ String stat[]={"","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
+ int count1=0;
+ JFrame rg;
+ JTextField tl1,tl0,tl2,tl3,tl4,tl5,tl6;
+ JPasswordField ps1,ps2;
+ Button b1c,b2c,b3c;
+ int nan=2;
+
+ JProgressBar pq;
+ //constructor
+
+ public WebBrowser()
+ {
+ setLocation(100,80);
+ setTitle("Mirror Web Browser");
+ setSize(new Dimension(800,600));
+ setDefaultCloseOperation(EXIT_ON_CLOSE);
+
+ try
+
+ {
+
+ UIManager.setLookAndFeel ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
+
+ }
+
+ catch(Exception e)
+ {}
+
+
+ cp=getContentPane();
+ cp.setLayout(null);
+ // Ceate MenuBar
+
+ mb=new MenuBar();
+ m1=new Menu(" File ");
+
+ i1=new MenuItem(" New ");
+ i2=new MenuItem(" Open ");
+
+
+
+ i4=new MenuItem(" Save ");
+ i5=new MenuItem(" Save As ");
+
+ i3=new MenuItem(" Set HomePage. ");
+
+ i6=new MenuItem(" close ");
+ m1.add(i1);m1.add(i2);m1.addSeparator();m1.add(i4);m1.add(i5);
+ m1.addSeparator();m1.add(i3);m1.addSeparator();m1.add(i6);
+
+ mb.add(m1);
+
+ m2=new Menu(" Edit ");
+
+ i7=new MenuItem(" Cut ");
+ i8=new MenuItem(" Copy ");
+
+ i9=new MenuItem(" paste ");
+
+ i10=new MenuItem(" View Source ");
+ m2.add(i7);m2.add(i8);m2.add(i9); m2.addSeparator(); m2.add(i10);
+ mb.add(m2);
+
+ m3=new Menu(" Manage ");
+
+ i11=new MenuItem(" Add Favourite ");
+ i12=new MenuItem(" View All Fav. ");
+
+ i13=new MenuItem(" Manage Fav. ");
+
+ m3.add(i11);m3.add(i12);m3.add(i13);
+
+ mb.add(m3);
+
+
+ m4=new Menu(" Help ");
+
+ i14=new MenuItem(" Help ");
+ i15=new MenuItem(" About ");
+
+ i16=new MenuItem(" Customer Forum ");
+ m4.add(i14);m4.add(i15);m4.add(i16);
+
+ mb.add(m4);
+
+ setMenuBar(mb);
+
+ // End of MenuBar
+
+
+ // Create Toolbar Panel
+ JPanel pt1=new JPanel(null,true);
+
+ pt1.setBackground(Color.white);
+ pt1.setBounds(0,0,1028,40);
+ cp.add(pt1);
+
+ try{
+
+ File u=new File("C:/Temp");
+ u.mkdir();
+
+ FileWriter v=new FileWriter("C:/Temp/pointer.dat");
+ v.write(0+"");
+ v.close();
+
+ File m=new File("C:/Block.xml");
+
+ if( !m.isFile() && !m.exists())
+ {
+ FileWriter v3=new FileWriter("C:/Block.xml");
+ v3.write("http://www.songs.pk http://www.yahoo.comhttp://www.orkut.com http://www.facebook.com http://www.ibibo.com ");
+ v3.close();
+ }
+
+ }catch(Exception y){}
+
+
+ y1=new ImageIcon("Icon/ico_alpha_nav_left_24x24.png");
+ b1=new JButton(y1);
+ b1.setToolTipText("Back to previous");
+ b1.setBounds(10,02,40,35);
+ pt1.add(b1);
+
+ y2=new ImageIcon("Icon/ico_alpha_nav_right_24x24.png");
+ b2=new JButton(y2);
+ b2.setBounds(60,02,40,35);
+ b2.setToolTipText("Back to Next");
+ pt1.add(b2);
+
+ y3=new ImageIcon("Icon/ico_alpha_Refresh_24x24.png");
+ b3=new JButton(y3);
+ b3.setBounds(160,02,35,35);
+ b3.setToolTipText("Refresh");
+ pt1.add(b3);
+
+ y4=new ImageIcon("Icon/ico_alpha_HomePage_32x32.png");
+ b4=new JButton(y4);
+ b4.setBounds(210,02,35,35);
+ b4.setToolTipText("Goto Home Page");
+ pt1.add(b4);
+
+
+ y5=new ImageIcon("Icon/ico_alpha_SecurityCenter_32x32.png");
+ b5=new JButton(y5);
+ b5.setBounds(250,02,35,35);
+ b5.setToolTipText("Open Security Alerts");
+ pt1.add(b5);
+
+
+ y6=new ImageIcon("Icon/ico_alpha_OpenLinkInPopup_32x32.png");
+ b6=new JButton(y6);
+ b6.setBounds(300,02,35,35);
+
+ b6.setToolTipText("Block Harmful Websites");
+ pt1.add(b6);
+
+ y7=new ImageIcon("Icon/ico_alpha_Information_32x32.png");
+ b7=new JButton(y7);
+ b7.setBounds(350,02,35,35);
+ b7.setToolTipText("Show Information");
+ pt1.add(b7);
+
+
+ y8=new ImageIcon("Icon/ico_alpha_Favorites_32x32.png");
+ b8=new JButton(y8);
+ b8.setBounds(400,02,35,35);
+ b8.setToolTipText("Add To Favourite");
+ pt1.add(b8);
+
+
+ //End ToolBar
+
+ p1=new JPanel(new BorderLayout());
+ p1.setBounds(0,60,1028,650);
+ cp.add(p1);
+
+ //create an enviroment for showing web sites
+
+
+int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
+int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
+
+
+ editorPane=new JEditorPane() ;
+ editorPane.addHyperlinkListener(this);
+ editorPane.setEditable(false);
+
+ p2=new JPanel(new GridLayout());
+
+ //add the editorPane to a panel
+ p2.add(editorPane);
+
+ //creat a scroll for p2
+ sp= new JScrollPane(p2,v,h);
+
+ p1.add(sp,BorderLayout.CENTER);
+
+
+
+ //creat a textField for writing web sites
+ p3=new JPanel();
+ l1=new JLabel(" Web Address :");
+ l1.setBounds(10,02,120,30);
+
+ textField=new JTextField(60);
+ textField.setBounds(130,02,300,30);
+ textField.addActionListener(this);
+
+ //initialize our textField with "http" protocol
+ textField.setText("");
+
+ b=new JButton("Go");
+ b.addActionListener(this);
+ b.setBounds(450,02,100,30);
+ pq=new JProgressBar();
+ pq.setVisible(false);
+ pq.setBounds(10,02,100,20);
+
+
+
+ p3.add(l1);
+ p3.add(textField);
+ p3.add(b);
+
+ p3.add(pq);
+
+
+ p3.setBounds(0,80,1028,34);
+ p1.add(p3,BorderLayout.NORTH);
+
+ p4=new JPanel(new FlowLayout());
+
+
+
+ //JSpinner jsp1=new JSpinner();
+ //jsp1.setBounds(100,02,130,20);
+ //p4.add(jsp1);
+
+
+
+ p4.setBounds(0,150,1028,34);
+
+ p1.add(p4,BorderLayout.SOUTH);
+
+
+
+ i15.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ about a=new about();
+ }
+ });
+
+
+ i2.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+
+ JFrame jf=new JFrame();
+ FileDialog f=new FileDialog(jf,"Select File");
+
+ f.setVisible(true);
+
+ String dir=f.getDirectory();
+ String file=f.getFile();
+
+ textField.setText("file://localHost/"+dir+file);
+
+ stat[store]= "file://localHost/"+dir+file;
+
+ store++;
+
+ try{
+
+ editorPane.setFont(new Font("Arial",Font.PLAIN,14));
+ editorPane.setPage(new URL(textField.getText()));
+
+ System.out.println("Text="+textField.getText());
+
+ try{
+
+ FileReader rw=new FileReader("C:/Temp/pointer.dat");
+ JTextField gh=new JTextField();
+ gh.read(rw,null);
+ int count2=Integer.parseInt(gh.getText());
+ rw.close();
+
+ FileWriter v2=new FileWriter("C:/Temp/"+count2+".txt");
+ v2.write( textField.getText() );
+ v2.close();
+
+ FileWriter vr=new FileWriter("C:/Temp/pointer.dat");
+
+
+ vr.write(y+"");
+ y=y+1;
+ vr.close();
+
+ }catch(Exception hu){}
+
+
+
+
+ }catch(Exception gt){System.out.println(gt);}
+
+ }
+ });
+
+
+ b1.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ try{
+ store=store-1;
+ System.err.println(store);
+
+
+ if(store==-1)
+ {
+ b1.setEnabled(false);
+ }
+
+ b2.setEnabled(true);
+
+ System.err.println("Getting Previous Address ="+stat[store]);
+ //FileReader rq=new FileReader("C:/Temp/"+y+".txt");
+ //JTextField ju=new JTextField();
+ //ju.read(rq,null);
+ //rq.close();
+
+
+ //editorPane.setPage(new URL(ju.getText()));
+
+
+
+
+ textField.setText(stat[store]);
+
+
+ editorPane.setPage(new URL ( stat[store] ) );
+
+
+
+
+ }catch(Exception gt){ try{
+
+
+ File rt=new File("C:/error.html");
+ if(rt.isFile() && rt.exists())
+ {
+ FileWriter w=new FileWriter("C:/error2.html");
+ w.write("
Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+ }catch(Exception hy){ System.out.println("Error :"+"\n"+hy);} }
+ }
+ });
+
+
+ b2.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ try{
+ store++;
+ System.err.println(store);
+ b1.setEnabled(true);
+ if(store==max)
+ {
+ b2.setEnabled(false);
+ }
+
+
+
+
+ editorPane.setPage(new URL(stat[store]));
+
+ //System.err.println("Reading File"+y+".txt");
+ //FileReader rq=new FileReader("C:/Temp/"+y+".txt");
+ //JTextField ju=new JTextField();
+ //ju.read(rq,null);
+ //rq.close();
+
+ //editorPane.setPage(new URL(ju.getText()));
+ textField.setText( stat[store] );
+
+ }catch(Exception gt){ try{
+
+
+ File rt=new File("C:/error.html");
+ if(rt.isFile() && rt.exists())
+ {
+ FileWriter w=new FileWriter("C:/error2.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+ }catch(Exception hy){ System.out.println("Error :"+"\n"+hy);} }
+
+ }
+ });
+
+
+ b3.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+
+ try{
+
+ System.out.println("Refreshing...");
+ System.out.println("Current Page..."+ textField.getText());
+ int mycount=0;
+ String m= textField.getText();
+ System.out.print("Refresh");
+ textField.setText("Refresh");
+ for(int i=0;i<10;i++)
+ {
+ for(int j=0;j Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+
+ }catch(Exception gty){}
+
+ }
+
+ }
+ });
+
+
+ b5.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+
+ }
+ });
+
+
+ b6.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ String msg1="";
+ FileReader rd;
+ JTextField jt;
+
+
+ try{
+
+
+
+ rg=new JFrame();
+ rg.setTitle("Bloack WebSite");
+ rg.setLayout(null);
+ rg.setSize(310,390);
+ rg.setLocation(150,100);
+ rg.setVisible(true);
+
+
+ JLabel lw1=new JLabel("Enter the Websites name");
+ lw1.setBounds(50,10,150,30);
+ rg.add(lw1);
+
+ JLabel lw2=new JLabel("WebSite 1:");
+ tl2=new JTextField();
+ tl2.setEditable(false);
+ lw2.setBounds(10,50,80,20);
+ tl2.setBounds(90,50,200,20);
+ rg.add(lw2);rg.add(tl2);
+
+
+ JLabel lw0=new JLabel("WebSite 2:");
+ tl0=new JTextField();
+ tl0.setEditable(false);
+ lw0.setBounds(10,80,80,20);
+ tl0.setBounds(90,80,200,20);
+ rg.add(lw0);rg.add(tl0);
+
+
+ JLabel lw3=new JLabel("WebSite 3:");
+ tl3=new JTextField();
+ tl3.setEditable(false);
+ lw3.setBounds(10,110,80,20);
+ tl3.setBounds(90,110,200,20);
+ rg.add(lw3);rg.add(tl3);
+
+
+
+ JLabel lw4=new JLabel("WebSite 4:");
+ tl4=new JTextField();
+ tl4.setEditable(false);
+ lw4.setBounds(10,140,80,20);
+ tl4.setBounds(90,140,200,20);
+ rg.add(lw4);rg.add(tl4);
+
+
+ JLabel lw5=new JLabel("WebSite 5:");
+ tl5=new JTextField();
+ tl5.setEditable(false);
+ lw5.setBounds(10,170,80,20);
+ tl5.setBounds(90,170,200,20);
+ rg.add(lw5);rg.add(tl5);
+
+ b1c=new Button("Ok");
+
+ b1c.setBounds(90,210,100,30);
+ rg.add(b1c);
+
+ JLabel lw6=new JLabel("Password:");
+ lw6.setBounds(10,260,80,20);
+ rg.add(lw6);
+
+
+ ps1=new JPasswordField();
+ ps1.setBounds(100,260,200,20);
+ rg.add(ps1);
+
+
+ JLabel lw7=new JLabel("Confirme:");
+ lw7.setBounds(10,290,80,20);
+ rg.add(lw7);
+ ps2=new JPasswordField();
+ ps2.setBounds(100,290,200,20);
+ rg.add(ps2);
+
+ b2c=new Button("Unlock it!");
+ b2c.setBounds(100,320,100,30);
+ rg.add(b2c);
+
+
+ rd=new FileReader("C:/Block.xml");
+ jt=new JTextField();
+ jt.read(rd,null);
+ rd.close();
+
+ String str1=jt.getText();
+ int len=str1.length();
+
+ String str5="";
+
+
+ str1=jt.getText();
+ len=str1.length();
+
+ for(int k=0;k')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j"+tl2.getText()+" \n\r";
+ msg=msg+""+tl0.getText()+" \n\r";
+ msg=msg+""+tl3.getText()+" \n\r";
+ msg=msg+""+tl4.getText()+" \n\r";
+ msg=msg+""+tl5.getText()+" \n\r ";
+
+ wre=new FileWriter("C:/Block.xml");
+ wre.write(msg+"");
+ wre.close();
+ rg.setVisible(false);
+
+
+ }catch(Exception gty){ System.out.println(gty);}
+ }
+ });
+
+ }catch(Exception gtyu){ System.out.println(gtyu); }
+ }
+ });
+
+ b7.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+
+ info f=new info(textField.getText());
+
+ }
+ });
+
+ b8.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+
+ }
+ });
+
+
+
+
+
+ }//end Constructor
+
+
+ //when an action performed
+
+
+
+ // Hyperlink
+
+
+
+
+
+ public void hyperlinkUpdate(HyperlinkEvent e) {
+
+ if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
+ JEditorPane pane = (JEditorPane) e.getSource();
+ if (e instanceof HTMLFrameHyperlinkEvent) {
+ HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent)e;
+ HTMLDocument doc = (HTMLDocument)pane.getDocument();
+ doc.processHTMLFrameHyperlinkEvent(evt);
+ System.out.println("Downloading...");
+
+ } else {
+ try {
+ // pane.setPage(e.getURL());
+
+ String extension="";
+ File f=new File(e.getURL().getPath());
+ String stre=f.getName();
+ int i = stre.lastIndexOf('.');
+ if( stre.substring(i+1).toLowerCase().equals("exe") || stre.substring(i+1).toLowerCase().equals("rar") || stre.substring(i+1).toLowerCase().equals("mp3") || stre.substring(i+1).toLowerCase().equals("avi") || stre.substring(i+1).toLowerCase().equals("mp2") || stre.substring(i+1).toLowerCase().equals("msi") || stre.substring(i+1).toLowerCase().equals("zip") || stre.substring(i+1).toLowerCase().equals("3gp") || stre.substring(i+1).toLowerCase().equals("flv") || stre.substring(i+1).toLowerCase().equals("torrent") || stre.substring(i+1).toLowerCase().equals("mpeg"))
+
+ { System.out.println("Downloading Content...");
+ download d=new download(e.getURL().getPath());
+
+ }
+
+
+ else{
+
+ System.out.println("Activate Hyper Page...");
+
+ try{
+ String str=e.getURL().getPath();
+ b1.setEnabled(true);
+
+ System.out.println("Hyper Page:"+e.getURL().getPath());
+ stat[count1]=e.getURL().getPath()+"";
+ count1++;
+
+ editorPane.setPage(e.getURL());
+
+ if(str.charAt(2)==':')
+ {
+ str="file://localHost"+str;
+ }
+ textField.setText(str);
+
+ if(y==0)
+ {
+ y++;
+ }
+ b1.setEnabled(true);
+ if(str.charAt(4)==':' || str.charAt(1)==':')
+ {
+ stat[store]=str;
+ max=store;
+ store++;
+
+ System.out.println(" Direct Address store into Memory");
+ }
+ else{
+ stat[store]=textField.getText()+str;
+ max=store;
+ store++;
+ System.out.println("Indirect Address store into Memory");
+ }
+
+ System.err.println("Writing File"+y+".txt");
+
+ FileWriter v2=new FileWriter("C:/Temp/"+y+".txt");
+ v2.write(textField.getText());
+ v2.close();
+ y++;
+
+
+ }catch(Exception hu){ System.out.println(hu); }
+
+
+ }
+ } catch (Throwable t) {}
+
+ }
+ }
+ }
+
+
+
+
+
+//HyperLink
+
+
+
+ public void actionPerformed(ActionEvent e)
+ {
+
+
+ pq.setVisible(true);
+ //if enter pressed in the textField
+
+
+
+ if ( e.getSource() == textField )
+ {
+ //get the text(site) written in textField
+ int found=0;
+
+ try
+ {
+ b1.setEnabled(true);
+ String site2=textField.getText();
+
+
+ int len=site2.length();
+
+ if(len<9 && (site2.charAt(1)!=':') )
+ {
+ site2=site2+".com";
+ textField.setText(site2);
+ }
+
+ char ch=site2.charAt(0);
+
+
+ try{
+ pq.setValue(30);
+
+ Thread.sleep(500);
+ }catch(Exception fr){ System.out.println(fr); }
+
+ if(site2.charAt(7)=='w' && site2.charAt(8)=='w' && site2.charAt(9)=='w' || site2.charAt(1)==':' || site2.charAt(4)==':' )
+ {
+ site2=site2;
+
+
+ }
+ else{
+ site2="www."+site2;
+
+ }
+
+ try{
+ pq.setValue(60);
+
+ Thread.sleep(1000);
+ }catch(Exception fr){System.out.println(fr);}
+
+ if(ch=='h' && site2.charAt(1)=='t' && site2.charAt(2)=='t' && site2.charAt(3)=='p' || site2.charAt(1)==':' || site2.charAt(4)==':')
+ {
+ System.out.println("Http protocol fond");
+ site2=site2;
+ textField.setText(site2);
+ }
+ else{
+ System.out.println("Http protocol Not fond");
+ site2="http://"+site2;
+ textField.setText(site2);
+ }
+
+
+
+ // Checking for Block Website
+ try{
+
+
+ FileReader rd=new FileReader("C:/Block.xml");
+ JTextField jt=new JTextField();
+ jt.read(rd,null);
+ rd.close();
+
+ String str1=jt.getText();
+ int len3=str1.length();
+
+ String str5="";
+
+
+ str1=jt.getText();
+ len3=str1.length();
+
+ try{
+ for(int k=0;k')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The WebSite is Blocked By Administrator "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ textField.setText("WebSite is Blocked !!!");
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The WebSite is Blocked By Administrator "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ textField.setText("WebSite is Blocked !!!");
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+ }catch(Exception hy){ System.out.println(hy); }
+
+
+
+ }
+ else{
+
+ System.out.println("count:"+store);
+ stat[store]=site2+"";
+ System.out.println("Store:"+stat[store]);
+
+
+
+ System.out.println("Page"+ (site2));
+ count1++;
+
+ System.out.println("Text="+textField.getText());
+
+ editorPane.setPage(new URL(site2));
+
+
+
+ try{
+ pq.setValue(pq.getMaximum());
+
+
+ }catch(Exception fr){System.out.println(fr); }
+ }
+
+ }
+ catch (Exception f)
+ {
+ System.out.println("Error in ServerHost");
+ try{
+
+
+ File rt=new File("C:/error.html");
+ if(rt.isFile() && rt.exists())
+ {
+ FileWriter w=new FileWriter("C:/error2.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+ }catch(Exception hy){ System.out.println("Error :"+"\n"+hy);}
+ }
+ }//end if
+
+
+ //if the button pressed
+ else
+ {
+
+
+ int found=0;
+
+ try
+ {
+ b1.setEnabled(true);
+ String site2=textField.getText();
+
+
+ int len=site2.length();
+
+ if(len<9 && (site2.charAt(1)!=':') )
+ {
+ site2=site2+".com";
+ textField.setText(site2);
+ }
+
+ char ch=site2.charAt(0);
+
+
+ try{
+ pq.setValue(30);
+
+ Thread.sleep(500);
+ }catch(Exception fr){System.out.println(fr);}
+
+ if(site2.charAt(7)=='w' && site2.charAt(8)=='w' && site2.charAt(9)=='w' || site2.charAt(1)==':' || site2.charAt(4)==':' )
+ {
+ site2=site2;
+
+
+ }
+ else{
+ site2="www."+site2;
+
+ }
+
+ try{
+ pq.setValue(60);
+
+ Thread.sleep(1000);
+ }catch(Exception fr){System.out.println(fr);}
+
+ if(ch=='h' && site2.charAt(1)=='t' && site2.charAt(2)=='t' && site2.charAt(3)=='p' || site2.charAt(1)==':' || site2.charAt(4)==':')
+ {
+ System.out.println("Http protocol fond");
+ site2=site2;
+ textField.setText(site2);
+ }
+ else{
+ System.out.println("Http protocol Not fond");
+ site2="http://"+site2;
+ textField.setText(site2);
+ }
+
+
+
+ // Checking for Block Website
+ try{
+
+
+ FileReader rd=new FileReader("C:/Block.xml");
+ JTextField jt=new JTextField();
+ jt.read(rd,null);
+ rd.close();
+
+ String str1=jt.getText();
+ int len3=str1.length();
+
+ String str5="";
+
+
+ str1=jt.getText();
+ len3=str1.length();
+
+ try{
+ for(int k=0;k')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j')
+ {
+ for(int j=k+6;j Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The WebSite is Blocked By Administrator "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The WebSite is Blocked By Administrator "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ textField.setText("WebSite is Blocked !!!");
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+ }catch(Exception hy){ System.out.println(hy); }
+
+
+
+ }
+ else{
+
+ System.out.println("count1"+store);
+ stat[count1]=site2;
+ System.out.println("Store "+stat[store]);
+ store++;
+ editorPane.setPage(new URL(site2));
+
+
+ System.out.println("Text="+textField.getText());
+
+
+
+ try{
+
+
+ FileWriter v2=new FileWriter("C:/Temp/"+y+".txt");
+ v2.write(textField.getText());
+ v2.close();
+
+
+ }catch(Exception hu){System.out.println(hu);}
+
+ try{
+ pq.setValue(pq.getMaximum());
+
+
+ }catch(Exception fr){System.out.println(fr);}
+ }
+
+ }
+ catch (IOException f)
+ {
+ System.out.println(f);
+ try{
+
+ File rt=new File("C:/error.html");
+ if(rt.isFile() && rt.exists())
+ {
+ FileWriter w=new FileWriter("C:/error2.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ rt.delete();
+ editorPane.setPage(new URL("file://localhost/C:/error2.html"));
+ }
+ else{
+ FileWriter w=new FileWriter("C:/error.html");
+ w.write(" Server not Found (Mirror Error Details) "+"\n\r"
+ +" Error "
+ +" The page cannot be displayed "
+ +"The page you are looking for is currently unavailable. \n\r The Web site might be experiencing technical difficulties, \n\r or you may need to adjust your browser settings."
+ +" Url ="+textField.getText()+" Please Search On Google " );
+ w.close();
+ editorPane.setPage(new URL("file://localhost/C:/error.html"));
+
+ }
+ }catch(Exception hy){System.out.println(hy);}
+ }
+
+ }//end else
+
+ pq.setVisible(false);
+ }//end method actionPerformed
+
+
+
+
+ public static void main(String[] args)
+
+ {
+ System.out.println("\n\n\n");
+ System.out.print(" STARTING MIRROR WEB BROWSER ");
+ for(int i=0;i<10;i++)
+ {
+ for(int j=0;j<5;j++)
+ {
+
+ System.out.print("_ ");
+ try{
+ Thread.sleep(500);
+ }catch(Exception gt){}
+ if(i==3)
+ {
+ System.out.println("\n INITIALIZING MEMORY FOR CONTAINING WEB SITE... \n");
+ System.out.print(" STARTING MIRROR WEB BROWSER ");
+ }
+
+ if(i==6)
+ {
+ System.out.println("\n SAVING BLOCK WEB SITE...\n");
+ System.out.print(" STARTING MIRROR WEB BROWSER ");
+ }
+
+ if(i==9)
+ {
+ System.out.println("\n CHECKING FOR CODING... \n");
+ System.out.print(" STARTING MIRROR WEB BROWSER ");
+ }
+
+
+ }
+ }
+ new WebBrowser().setVisible(true);
+ }//end method main
+
+}//end class WebBrowser
+
+
+
+
+// It is Used To Download Any File From Internet Explorer
+// Autor Pravin H. Rane
+
+class download extends JFrame
+{
+JLabel l1,l2,l3,l4,l5,l6,l7;
+JButton b1,b2,b3,b4,b5,b6,b7;
+JTextField t1,t2,t3,t4,t5,t6;
+ImageIcon i1,i2,i3,i4,i5,i6;
+Container cp;
+JPanel j1,j2,j3,j4;
+String extension="";
+String name="";
+JProgressBar pg1;
+int u=0;
+String stre="";
+download(String fname){
+
+super("Download File");
+name=fname;
+
+System.out.println("Container starts...");
+
+setVisible(true);
+setSize(360,230);
+setLocation(100,100);
+
+cp=getContentPane();
+cp.setLayout(null);
+
+Color c=new Color(120,211,150);
+Font f=new Font("Arial Balck",Font.BOLD,14);
+j1=new JPanel(null,true);
+l1=new JLabel("Download File");
+l1.setBounds(30,02,150,30);
+l1.setFont(f);
+l1.setForeground(c);
+j1.add(l1);
+
+l2=new JLabel("(Mirror Browser)");
+l2.setBounds(150,10,150,20);
+l2.setForeground(c);
+j1.add(l2);
+
+j1.setSize(350,30);
+j1.setLocation(0,0);
+j1.setBackground(Color.black);
+cp.add(j1);
+System.out.println("Panel1 starts...");
+
+File f2=new File(fname);
+double len=f2.length();
+u=(int)len;
+ stre=f2.getName();
+int i = stre.lastIndexOf('.');
+ if( stre.substring(i+1).toLowerCase().equals("exe") || stre.substring(i+1).toLowerCase().equals("msi") || stre.substring(i+1).toLowerCase().equals("cmd") )
+ {
+ extension="exe";
+ }
+
+
+ else if( stre.substring(i+1).toLowerCase().equals("mp2") || stre.substring(i+1).toLowerCase().equals("mp3") || stre.substring(i+1).toLowerCase().equals("wav") || stre.substring(i+1).toLowerCase().equals("wmv") || stre.substring(i+1).toLowerCase().equals("mp4") )
+ {
+ extension="mp3";
+ }
+
+ else if( stre.substring(i+1).toLowerCase().equals("3gp") || stre.substring(i+1).toLowerCase().equals("flv") || stre.substring(i+1).toLowerCase().equals("avi") || stre.substring(i+1).toLowerCase().equals("mpeg") || stre.substring(i+1).toLowerCase().equals("Dat") )
+ {
+ extension="video";
+ }
+ else if( stre.substring(i+1).toLowerCase().equals("rar") || stre.substring(i+1).toLowerCase().equals("zip") || stre.substring(i+1).toLowerCase().equals("7z") || stre.substring(i+1).toLowerCase().equals("exe") || stre.substring(i+1).toLowerCase().equals("mp4") )
+ {
+ extension="rar";
+ }
+ else{
+ extension="other";
+ }
+
+
+j2=new JPanel(null,true);
+
+
+i1=new ImageIcon("Icon/"+extension+".png");
+l3=new JLabel(i1);
+l3.setBounds(10,15,50,50);
+j2.add(l3);
+
+l4=new JLabel("Name= "+stre);
+l4.setBounds(65,25,180,20);
+j2.add(l4);
+
+
+double len2=(len/1024)/1024;
+l5=new JLabel("Size= "+len2 +"Mb");
+l5.setBounds(65,50,180,20);
+j2.add(l5);
+
+
+l6=new JLabel("Save In");
+l6.setBounds(10,75,100,30);
+j2.add(l6);
+
+t1=new JTextField("C:/");
+t1.setBounds(80,75,200,30);
+j2.add(t1);
+
+b1=new JButton("....");
+b1.setBounds(290,75,50,30);
+j2.add(b1);
+
+j2.setSize(350,120);
+j2.setLocation(0,30);
+j2.setBackground(Color.white);
+cp.add(j2);
+System.out.println("Panel2 starts...");
+
+j3=new JPanel(null,true);
+
+b2=new JButton("Ok");
+b2.setBounds(10,05,100,30);
+j3.add(b2);
+
+
+b3=new JButton("Cancel");
+b3.setBounds(130,05,100,30);
+j3.add(b3);
+
+pg1=new JProgressBar();
+pg1.setBounds(240,10,100,20);
+j3.add(pg1);
+
+j3.setLocation(0,150);
+j3.setSize(350,45);
+j3.setBackground(Color.black);
+cp.add(j3);
+System.out.println("Panel3 starts...");
+
+
+
+ b2.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+
+ try{
+ System.out.println("Download starts...");
+ pg1.setMaximum(u);
+ int i=0;
+
+ File f1 = new File(name);
+ File f2 = new File(t1.getText()+stre);
+ InputStream in = new FileInputStream(f1);
+
+ OutputStream out1 = new FileOutputStream(f2,true);
+
+ OutputStream out = new FileOutputStream(f2);
+
+ byte[] buf = new byte[600000];
+ int len;
+
+ while ((len = in.read(buf)) > 0){
+
+ out.write(buf, 0, len);
+ pg1.setValue(u-len);
+
+ }
+ pg1.setValue(100);
+ in.close();
+ out.close();
+ out1.close();
+ System.out.println("File copied.");
+ pg1.setValue(10000000);
+ double u1=(u/1024)/1024;
+ JOptionPane.showMessageDialog((Component)null,"Copy Complete Sucessfully! \n"+"File Name="+t1.getText()+stre+"\n Download From="+name+"\n File Size="+u1+" Megabytes","Copy Complete Sucessfully",JOptionPane.INFORMATION_MESSAGE);
+ }catch(Exception fr){ System.out.println(fr);}
+
+ try{
+ pg1.setValue(1000);
+ Thread.sleep(1000);
+ setVisible(false);
+ }catch(Exception fr){System.out.println(fr);}
+
+ }
+ });
+
+ b1.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ JFrame jh=new JFrame();
+
+ FileDialog fd=new FileDialog(jh,"Save Downloaded File");
+ fd.setMode(FileDialog.SAVE);
+ fd.setFile("Save Here");
+ fd.setVisible(true);
+
+ t1.setText(fd.getDirectory());
+ }
+ });
+
+ b3.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ setVisible(false);
+ }
+ });
+
+}
+}
+
+
+
+class info extends JFrame
+{
+
+JLabel l1,l2,l3,l4,l5,l6,l7;
+JButton b1,b2,b3,b4,b5,b6,b7;
+JTextField t1,t2,t3,t4,t5,t6;
+ImageIcon i1,i2,i3,i4,i5,i6;
+JPanel j1,j2,j3,j4;
+Container cp;
+
+String extension="";
+String name="";
+JProgressBar pg1;
+int u=0;
+String stre="";
+
+
+info(String fname){
+super("Web Page Information");
+
+setVisible(true);
+setSize(350,400);
+setLocation(150,100);
+
+cp=getContentPane();
+cp.setLayout(null);
+
+j1=new JPanel(null,true);
+i1=new ImageIcon("Icon/ico_alpha_Information_32x32.png");
+l1=new JLabel(i1);
+l1.setBounds(10,20,40,40);
+j1.add(l1);
+
+
+File f=new File(fname);
+String path=f.getPath();
+String name=f.getName();
+double len=f.length();
+
+l2=new JLabel("Path "+path);
+l2.setBounds(60,30,220,25);
+j1.add(l2);
+
+l3=new JLabel("File Name "+name);
+l3.setBounds(60,60,220,25);
+j1.add(l3);
+
+l4=new JLabel("Size "+len +" Bytes");
+l4.setBounds(60,90,220,25);
+j1.add(l4);
+
+
+j1.setBounds(10,10,350,150);
+cp.add(j1);
+ j1.setBorder(
+ BorderFactory.createCompoundBorder(
+ BorderFactory.createTitledBorder("information"),
+ BorderFactory.createEmptyBorder(5,5,5,5)));
+
+j2=new JPanel(null,true);
+
+
+JCheckBox c1=new JCheckBox("Read Only",true);
+c1.setBounds(30,20,120,25);
+j2.add(c1);
+
+
+JCheckBox c3=new JCheckBox("Archive ",false);
+c3.setBounds(30,50,120,25);
+j2.add(c3);
+
+
+
+JCheckBox c2=new JCheckBox("Hidden ",false);
+c2.setBounds(30,80,120,25);
+j2.add(c2);
+
+j2.setBounds(10,160,350,150);
+cp.add(j2);
+
+j2.setBorder(
+ BorderFactory.createCompoundBorder(
+ BorderFactory.createTitledBorder("Attributes"),
+ BorderFactory.createEmptyBorder(5,5,5,5)));
+
+b1=new JButton("Ok");
+b1.setBounds(50,320,100,30);
+cp.add(b1);
+
+b2=new JButton("cancel");
+b2.setBounds(180,320,100,30);
+cp.add(b2);
+
+ b1.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ setVisible(false);
+ }
+ });
+
+b2.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ setVisible(false);
+ }
+ });
+}
+}
+
+
+
+class about extends JFrame
+{
+ImageIcon i1,i2,i3;
+JButton b1,b2,b3;
+JLabel l1,l2,l3,l4,l5,l6;
+JPanel p1,p2,p3,p4,p5;
+Container cp;
+about(){
+cp=getContentPane();
+cp.setLayout(null);
+
+setVisible(true);
+setSize(250,170);
+setTitle("About Software");
+setLocation(150,100);
+
+i1=new ImageIcon("icon/software.png");
+l1=new JLabel(i1);
+l1.setBounds(10,10,40,40);
+cp.add(l1);
+
+Font f=new Font("Arial",Font.BOLD,12);
+setFont(f);
+
+l2=new JLabel("Software Title : Mirror Web Browser");
+l2.setBounds(50,10,200,20);
+cp.add(l2);
+
+l2=new JLabel("Software Author : Pravin H. Rane");
+l2.setBounds(50,30,200,20);
+cp.add(l2);
+
+l2=new JLabel("Software Requirment : JDK 1.6 ");
+l2.setBounds(50,50,200,20);
+cp.add(l2);
+
+l2.setForeground(Color.red);
+
+b1=new JButton("OK");
+b1.setBounds(70,90,100,20);
+cp.add(b1);
+
+ b1.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent r)
+ {
+ setVisible(false);
+ }
+ });
+
+
+}
+}
\ No newline at end of file
diff --git a/about$1.class b/about$1.class
new file mode 100644
index 0000000..fffb453
Binary files /dev/null and b/about$1.class differ
diff --git a/about.class b/about.class
new file mode 100644
index 0000000..ec4bf5f
Binary files /dev/null and b/about.class differ
diff --git a/download$1.class b/download$1.class
new file mode 100644
index 0000000..9d23e4e
Binary files /dev/null and b/download$1.class differ
diff --git a/download$2.class b/download$2.class
new file mode 100644
index 0000000..664f4ca
Binary files /dev/null and b/download$2.class differ
diff --git a/download$3.class b/download$3.class
new file mode 100644
index 0000000..a2d3e3b
Binary files /dev/null and b/download$3.class differ
diff --git a/download.class b/download.class
new file mode 100644
index 0000000..e9cede1
Binary files /dev/null and b/download.class differ
diff --git a/error.html b/error.html
new file mode 100644
index 0000000..2a05ab2
--- /dev/null
+++ b/error.html
@@ -0,0 +1,10 @@
+
+
+
+ Error
+
+
+
+Could not open file
+You tried to access the address file://localhost/K:/Myeshopping/sample.html , which is currently unavailable. Please make sure that the Web address (URL) is correctly spelled and punctuated, then try reloading the page.
+
\ No newline at end of file
diff --git a/info$1.class b/info$1.class
new file mode 100644
index 0000000..07d01fe
Binary files /dev/null and b/info$1.class differ
diff --git a/info$2.class b/info$2.class
new file mode 100644
index 0000000..5c7adac
Binary files /dev/null and b/info$2.class differ
diff --git a/info.class b/info.class
new file mode 100644
index 0000000..5d00281
Binary files /dev/null and b/info.class differ
diff --git a/package.bluej b/package.bluej
new file mode 100644
index 0000000..a3795f1
--- /dev/null
+++ b/package.bluej
@@ -0,0 +1,32 @@
+#BlueJ package file
+editor.fx.0.height=0
+editor.fx.0.width=0
+editor.fx.0.x=0
+editor.fx.0.y=0
+objectbench.height=164
+objectbench.width=776
+package.divider.horizontal=0.6
+package.divider.vertical=0.6845018450184502
+package.editor.height=364
+package.editor.width=674
+package.editor.x=238
+package.editor.y=143
+package.frame.height=600
+package.frame.width=800
+package.numDependencies=0
+package.numTargets=1
+package.showExtends=true
+package.showUses=true
+project.charset=UTF-8
+readme.height=58
+readme.name=@README
+readme.width=47
+readme.x=10
+readme.y=10
+target1.height=50
+target1.name=WebBrowser
+target1.showInterface=false
+target1.type=ClassTarget
+target1.width=100
+target1.x=70
+target1.y=10
--
cgit v1.2.3