• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Need Suggestions please!

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
In my project I need to create a tabbed properties panel (like the one in VB). I am using JInternalFrame with JTabbedPane. I have added JTable inside the tab and it looks fine. The problem is, I need to format each cell in one column differently (one as a text field, another as combo etc) and it seems impossible as the cell renderer works columnwise (I may be wrong!).
Can anyone suggest any component apart from JTable for the properties window?
or is there a way to format the JTable cells in one coulmn differently.
Any help would be appreciated.
Thanks
Vani
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using the JTable to assist you with laying things out, then use a GridLayout instead, and specify that it has the same rows and columns as your JTable.

Here is a very rough take:
[This message has been edited by Mike Curwen (edited April 03, 2001).]
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, Mike's suggestion is correct. I was trying to do a similar thing, but since I too faced the same difficulty, I'm using Label-TextField pairs setting Grid Layout for the usual Data Types such as strings, Integers, date etc. and When I need to bring a combobox or a checkbox, I create it exclusively in place of the Textfield. Hope this helps. Please let me know if I'm not clear on this.
meghna
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic