Columns in JTable, Help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Salha
    New Member
    • Feb 2007
    • 9

    Columns in JTable, Help!

    Hello There,

    I have two question about the JTable in Java:

    1. How can i fix the column width? I want to have one column widder than the other and not editable at runtime.

    2. How can i have multiple lines (block of data/small paragraph) in one cell? because whenver i write a 3 lines of data in a cell the JTable converts it cont. line.

    Please Help!!
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Salha
    Hello There,

    I have two question about the JTable in Java:

    1. How can i fix the column width? I want to have one column widder than the other and not editable at runtime.

    2. How can i have multiple lines (block of data/small paragraph) in one cell? because whenver i write a 3 lines of data in a cell the JTable converts it cont. line.

    Please Help!!
    Go to the API specs page on the sun site and see what's available in the JTable class.

    Comment

    Working...