setPage java rss browser question

Posted on 2004-11-21
Last Modified: 2010-03-31
for browser is a jeditorpane, browserscrollpane is a jscrollpane, and bottompanel is a jpanel,
currently i have this to show a url.      

// Add the Content Panel ("browser")
This doesn't allow me to actually access the site content; it just displays that particular page.  Also, it seems that any css/or mulit-frames pages ( won't work as a URL.  how much harder is it to do either of the two things.

Question by:bcsmess
    LVL 92

    Expert Comment

    the html support offered by JEditorPane does not support the latest html version.
    also you need to implement yourself any navigation etc
    LVL 23

    Accepted Solution


    Look @ here it may help you..

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;

    public class TinyBrowser implements ActionListener,HyperlinkListener {
        static Frame frame = new Frame("Hello, world!");
        static JEditorPane browser = new JEditorPane();
        static TextField url = new TextField("", 60);
        static Button go = new Button("Go!");

        static public void main(String args[]) {

          JScrollPane editorScrollPane = new JScrollPane(browser);
          editorScrollPane.setPreferredSize(new Dimension(600,600));

          frame.setLayout(new FlowLayout());

          TinyBrowser me = new TinyBrowser();




        public void hyperlinkUpdate(HyperlinkEvent e) {
          if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
              try {
              catch(IOException ioe) {

        public void actionPerformed(ActionEvent e) {
          if(e.getActionCommand().equals("go")) {
              try {
              catch(IOException ioe) {


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now