• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe a JTable is what you need.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What Rob said. I forgot to refresh my page before replying.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic