I'm trying to create a simple web browser using Swing and AWT.
So far I only have the basic structure written and plan to add more but I have encountered a pitfall in that when my code is run I am presented with two windows.
One is sized properly and has no title, the other has the correct title of 'My Web Browser' but is not sized and neither display the components which I have added eg. the JEditorPane to display the html page.
My code is below I would appreciate any points in the right direction!
Joined: Oct 13, 2005
Have you tried a JEditorPane with editable set false? Try here for a tutorial.