hi there!
i like your web site very much. It is helpful for me.
editPane.setEditable(false); editPane.addHyperlinkListener(new LinkListener());
toolbar.setFloatable(false); locationInput.addActionListener(goListener); goButton.addActionListener(goListener); toolbar.add(locationInput); toolbar.add(goButton);
loadURL(evt.getURL()); }
try { editPane.setPage(url); } editPane.setContentType("text/plain"); editPane.setText( "Sorry, the requested document was not found\n" +"or cannot be displayed.\n\nError:" + e); } }
URL url; try { if (location.length() == 0) //empty URL if (! location.contains("://")) // "://" if it not present in the string location = "http://" + location; } "The Location input box does not\nccontain a legal URL."); return; } loadURL(url); locationInput.selectAll(); locationInput.requestFocus(); }
SimpleWebBrowser content = new SimpleWebBrowser(); window.setContentPane(content); window.setSize(600,500); window.setLocation( (screenSize.width - window.getWidth())/2, (screenSize.height - window.getHeight())/2 );//center the frame window.setVisible(true); }