• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Web Browser problems

 
Jack Fletcher
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

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!
Thanks.

 
Campbell Ritchie
Sheriff
Pie
Posts: 49865
71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried a JEditorPane with editable set false? Try here for a tutorial.

I shall move your post to the GUIs forum.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jack, please BeForthrightWhenCrossPostingToOtherSites <- link
http://www.java-forums.org/awt-swing/66370-swing-web-browser-problems.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic