Import Jav Export Java Essay

723 WordsNov 19, 20143 Pages
import java.awt.*; import java.awt.event.*; import java.net.*; import java.util.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.text.html.*; import java.util.*; // The Simple Web Browser Application. public class MiniBrowser extends JFrame implements HyperlinkListener { // These are buttons for iterating through the pagelist. private JButton backButton, forwardButton; // Page location text field for url typing. private JTextField locationTextField; // Editor pane for displaying web pages. private JEditorPane displayEditorPane; // Browser 's list of pages that have been visited. private ArrayList pageList = new ArrayList(); // Constructor for Mini Web Browser. public MiniBrowser() { // Set application title. super("Mini Browser"); // Set the size of window. setSize(640, 480); // Handling exit events. addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { actionExit(); } }); // Set up file menu. JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu("Option"); fileMenu.setMnemonic(KeyEvent.VK_F); JMenuItem fileExitMenuItem = new JMenuItem("Exit", KeyEvent.VK_X); fileExitMenuItem.addActionListener(new ActionListener() { public void

More about Import Jav Export Java Essay

Open Document