[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1023
  • Last Modified:

Swing JTable Questins

Hi,

I have a two-column JTable.  I would like to make the left column gray and non-editable/non-selectable.  The right column, I would like to be white and able to select only one cell for editing at a time.

To summarize,
left column: gray, non-editable, non-selectable
right column: white, editable, one cell sect only.

How do I do this?  I can't find it in the API.

Thanks,

Alex.
0
akoifman
Asked:
akoifman
1 Solution
 
zhongbingCommented:
I'm afraid you can't do it by direct API. But i'm sure you can find solution in following 2 links.

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

http://www.codeguru.com/java/Swing/JTable/index.shtml


0
 
akoifmanAuthor Commented:
Thanks for pointing to a great reference.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now