I would like to display a webpage inside a java swing application. Similar to a when using HTML, but in java Swing. I have able to show webpage inside swing application. But the problem is webpage is not looks good. For example below output when I used the below code :
JEditorPane website = new JEditorPane();
website.setEditable(false);
website.setPage("http://www.google.com/");
JFrame frame = new JFrame("Google");
frame.add(new JScrollPane(website));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.pack();
Even searching is also not working. I am new in this section. What I missed or what is other way to do this?