• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML Content in a JPanel  RSS feed

 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any way to show html document in a JPanel? Or should i use JTextArea?
Thanks in advance
Cheers
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use a JEditorPane.
 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to show a HTML document in a JPanel.

I always get "java.net.SocketException: Connection reset by peer: connect" exception. What should i do?
The second question: Is it possible to use
when i want to use a local file?
Cheers
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!