Question: How do I get a webpage to open up in a frame?

(I'm using netbeans and java)

e.g in a html page you can use 

```
  <frame src="http://www.google.com">

```

and it will display google in the frame.

I don't want it to open a browser, just to open up within the frame. How can I do that?

Answer: 
Hope [this](http://nadeausoftware.com/articles/2008/01/java_tip_how_get_web_page) helps

but if you just want something like FRAME in html, [this](http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html) will help you.

There is also a "Mozilla Widget for Java Swing" call [MozSwing](http://sourceforge.net/projects/mozswing/), but maybe it's not what you want :)
So you are asking for a webbrowser (.net) control equivalent in J2SE. As far as I know there is no equivalent for it in J2SE.

There only is **[JEditorPane](http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JEditorPane.html)** which is very very weak.

Edit: There are some commercial components:

One of them is [ICEbrowser](http://www.icesoft.com/products/icebrowser.html)