Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Rep Power
    0

    Default set different font for each cell in JTable

    I want to set different english fonts for each cell in JTable


    say for example,

    1st cell----"Arial"
    2nd cell----"TimesNewRoman"
    3rd cell---"Tahoma"
    4th cell----"verdana"
    5th cell----again "Arial"
    6th cell-----again "TimesNewRoman"


    I want the source code or logic.
    Last edited by success21061985; 09-10-2008 at 06:14 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Cross-posted all over the place. All with the same amazing demonstration of effort by the poster.

  3. #3
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    6

    Default

    Hi,
    Firstly plz stop cross posting same question everywhere in all the forums.

    And coming to your solution, check the link below its the code that changes the color for a specific cell in JTable.This holds good for font also with some minor changes.

    Set the JTable - Java World
    To finish sooner, take your own time....
    Nivedithaaaa

  4. #4
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    6

Similar Threads

  1. jTable Cell editing
    By mahaling_m in forum AWT / Swing
    Replies: 0
    Last Post: 06-23-2008, 08:17 AM
  2. Jframe In Jtable cell
    By Clarion in forum AWT / Swing
    Replies: 4
    Last Post: 06-23-2008, 04:42 AM
  3. Limiting the capacity of a cell of JTable
    By rameshraj in forum Advanced Java
    Replies: 0
    Last Post: 03-24-2008, 02:20 PM
  4. 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
  •