Does anyone know how i can embed a browser in my JFrame?

In microsoft technologies they have OLE, where I can embed Internet Explorer into any application written in VB or C++ (or C Sharp).
Does anyone know how I can do this with Java? Is there a way to make a java applet that has a browser in it?
And then if there is, can I also put an invisible layer on top of that, and paste JLabels and stuff into that, over the browser window?

Have a look at JEditorPane.
From the API Guide:
A text component to edit various kinds of content. This component uses implementations of the EditorKit to accomplish its behavior. It effectively morphs into the proper kind of text editor for the kind of content it is given. The content type that editor is bound to at any given time is determined by the EditorKit currently installed. If the content is set to a new URL, its type is used to determine the EditorKit that should be used to load the content.
By default, the following types of content are known:
text/plain
Plain text, which is the default the type given isn't recognized. The kit used in this case is an extension of DefaultEditorKit that produces a wrapped plain text view.
text/html
HTML text. The kit used in this case is the class javax.swing.text.html.HTMLEditorKit which provides html 3.2 support.
text/rtf
RTF text. The kit used in this case is the class javax.swing.text.rtf.RTFEditorKit which provides a limited support of the Rich Text Format.

Similar Messages

Maybe you are looking for