• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
I child proofed my house but they still get in. Distract them with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic