The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by hly]

Dear Sir:

I have a question about how to get two separate editor pane. I want in a
text pane load a web site. When I click a hyperlink, I want pop another window
to show the new web site. And I can map the second window size and position. I
will appreciate get some ideas.

Thank you very much.

liying
import-bot (20211) [Avatar] Offline
#2
Re: How to get two separate editor pane?
[Originally posted by matt]

In your listener, create a new JFrame or JDialog and set its size to whatever
size you want 'mapped'. Before you make the frame visible, add a JTextPane to
its contentPane and call that text pane's setPage() method passing it the URL
of the hyperlink. Then set the frame visible.