Results 1 to 2 of 2
  1. #1
    prasad.vara is offline Member
    Join Date
    Jul 2010
    Location
    Hyderabad
    Posts
    21
    Rep Power
    0

    Default How to apply different font and colors to each cell in JTable

    Hi,
    I implemented JTable with multiple rows and columns. I got a problem in applying different fonts and colors to each cell in JTable. please help me.

    Thanks in advance,
    Prasad.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default

    Read the API for JTable and follow the link to the Swing tutorial on How to Use Tables, where you will find examples of using custom renderers and editors.

    db

Similar Threads

  1. Replies: 0
    Last Post: 08-18-2010, 10:31 AM
  2. jtable cell renderer
    By ankitmcgill in forum New To Java
    Replies: 2
    Last Post: 05-22-2009, 01:08 AM
  3. add a check box to only one cell in a JTable
    By aruna1 in forum New To Java
    Replies: 4
    Last Post: 04-03-2009, 06:28 PM
  4. set different font for each cell in JTable
    By success21061985 in forum AWT / Swing
    Replies: 3
    Last Post: 09-10-2008, 02:06 PM
  5. JTable with Font
    By Rama Koti Reddy in forum AWT / Swing
    Replies: 1
    Last Post: 12-12-2007, 05:22 PM

Posting Permissions

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