This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to develop a html style page in Swing?  RSS feed

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

I'm a Swing newbie (about a week now)
Been given this project to work on where I need to create a HTML looking summary page, I have tried creating it using GridBagLayout for the past couple of days but I don't think it is possible. I think it's just too complicated (at least too complicated for me!)

I have attached a sample of what the page needs to look like for you to look at.
Basically I am wondering if this can be done in Swing (GridBagLayout or any other LayoutManager) or if it would have to be done using HTMLK, in which case how can I embed a HTML page within a Swing panel.

Cheers (in advance) for any help.

K

Rouch sample of what the page needs to look like (couldn't get it to let me attach this sorry)
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe a JTable is what you need.
 
Chris Nash
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep in mind that you can place JPanel within JPanel within JPanel. It's possible to create very complex GUIs using this method. And all can have their own layout managers. Don't attempt to do it with just one JPanel. If the JTable doesn't work for you, look at combining several JPanels where each hold a specific set of controls, all with their own layout managers. Just my $.02...
 
Rob Camick
Ranch Hand
Posts: 2752
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Rob said. I forgot to refresh my page before replying.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!