CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    2

    JTable and Fonts



    I'm trying to use the files to set up a table. I'm using the Cellmodels

    on this site and multispantable but am unable to get the cell font. It

    returns null when I use the call:


    Font cellFont = cellAttFont.getFont(1,1);


    Is there a reason or am I just using it wrong?



  2. #2
    Join Date
    Jul 1999
    Posts
    13

    Re: JTable and Fonts

    If I understood your question correctly, you can get the font by getting the reference to the cell renderer. For examples, if the table is using default cell renderer, you can find out the font of Row 2 and

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