Add to Favorites    Make Home Page 348 Online  
 Language Categories  
 Our Services  

Home » Java Home » Networking Home » Java Web Browser (Mini Project)

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Java Web Browser (Mini Project)
Author can �k�elik
Author Email muhtemelen_ben [at] hotmail.com
Description it's very basic application.you can only calling a page and click links with it.i hoop, i will develop better more sooner..enjoy with it!!
Category Java » Networking
Hits 430671
Code Select and Copy the Code
Code : import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; import javax.swing.*; import javax.swing.event.*; public class Tarayici extends JFrame implements ActionListener,HyperlinkListener { private JEditorPane webs; private JScrollPane kay; private JMenuBar menubar; private JMenu menu,hakkimda; private JMenuItem menukapa; private Button kapat; private Button yazdir; private Button dugme; private TextField kutu; private URL url; public Tarayici() { super("Tarayici"); setSize(950,700); Container c=getContentPane(); dugme=new Button("Git"); dugme.addActionListener(this); menubar=new JMenuBar(); menu=new JMenu("Dosya"); hakkimda=new JMenu("Hakk�mda"); hakkimda.addActionListener(this); menukapa=new JMenuItem("òk�?"); menukapa.addActionListener(this); menu.add(menukapa); menubar.add(menu); menubar.add(hakkimda); kapat=new Button("Kapat"); kapat.addActionListener(this); yazdir=new Button("Geri"); yazdir.addActionListener(this); kutu=new TextField("http://www."); kutu.addActionListener(this); webs=new JEditorPane(); webs.setEditable(false); webs.addHyperlinkListener(this); setJMenuBar(menubar); c.setLayout(null); kay=new JScrollPane(webs); kay.setBounds(10,50,940,650); kutu.setBounds(10,20,740,25); dugme.setBounds(751,20,50,25); kapat.setBounds(803,20,50,25); yazdir.setBounds(855,20,50,25); c.add(kapat); c.add(kay); c.add(dugme); c.add(yazdir); c.add(kutu); show(); } public void actionPerformed(ActionEvent e) { setTitle("Kachak Web Tarayici - Site A��l�yor..."); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Object kaynak=e.getSource(); String satir=kutu.getText(); if (kaynak==dugme || kaynak==kutu) { try { webs.setPage(satir); setTitle("Kachak Web Tarayici - A��ld�"); } catch (IOException ei) { try { webs.setPage("http://www.cmaeal.com/hata/hata.html"); kutu.setText("hata: sayfaYok"); } catch (IOException se) { System.out.print("Hata oldu.."); } } } else if (kaynak==kapat) { System.exit(0); } else if (kaynak==hakkimda) { JOptionPane.showMessageDialog( this,"S�r�m 1.0","Yazan: Can �K�ELIK",JOptionPane.INFORMATION_MESSAGE ); } else if (kaynak==menukapa) { System.exit(0); } else if (kaynak==yazdir) { webs.setPage((String)yazdir.getEditor().getItem()); } } public void hyperlinkUpdate( HyperlinkEvent ea ) { if ( ea.getEventType() == HyperlinkEvent.EventType.ACTIVATED ) { try { webs.setPage( ea.getURL().toString() ); kutu.setText(ea.getURL().toString()); } catch (IOException ei) { try { webs.setPage("http://www.cmaeal.com/hata/hata.html"); kutu.setText("hata: sayfaYok"); } catch (IOException se) { System.out.print("Hata oldu.."); } } } } public static void main(String[] args) { Tarayici t=new Tarayici(); t.setVisible(true); } }

Related Source Codes

Script Name Author
Sending mail Using JavaMail to Yahoo and Gmail accounts sai prasad
Simple Program in Java to Implement Multithreading Satish.K
Simple Calculator in Java Using Remote Method Invocation Satish.K
Guest Book Application Using Servlets Satish.K
String Manipulation Using Stringification Satish.K
String Manipulation Using Stringification Satish.K
Moving Ball Application Using Java Beans Satish.K
Rapid Roll game subrahmanyeswararao
student mgm arpan
Sourav Datta
Download Manager Sagar
Address Book in Java Rahul Chouhan
address book using java database connectivity(jdbc-msaccess) shekhar bansal
sun Steganography B.Rajavel
Connecting Java with MS-Access - Inserting data in Aseem

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=872


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review