CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Location
    マレーシア
    Posts
    155

    Cells in JTable that span several lines

    I have a JTable. In this JTable, there are cell where the text span several lines. I tried implementing a cell renderer which uses a JTextArea inside a JScrollPane. Of course this did not work.

    How can I have a cell where the contents are scrollable?
    Ai nò mai speling sùks, bùt ai du it mainfuli
    http://www.geocities.jp/juuhassai/i_rouseiji.html

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Cells in JTable that span several lines

    You might find this helpful.

    Whenever there is a hard job to be done I assign it to a lazy man; he is sure to find an easy way of doing it...
    W. Chrysler
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #3
    Join Date
    Mar 2005
    Location
    マレーシア
    Posts
    155

    Re: Cells in JTable that span several lines

    Ok, thanks for the tip. There wasn`t any explicit examples about making a scrollable cell but I think I get the idea of what I should do. Guess it`s about toying around with the UI
    Ai nò mai speling sùks, bùt ai du it mainfuli
    http://www.geocities.jp/juuhassai/i_rouseiji.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured