Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    4
    Rep Power
    0

    Question JTable with Font

    HI ,

    I have a JTable with data. and i would like to apply Color to JTable data for a particular row depending on condition.
    eg;'

    String data = table.getValueAt(row,column).toString();
    if(data.eqauls("something"))
    Then i would like to apply color to that row data..


    pls send me the reply..
    Thanks in advance
    ramu

  2. #2
    Arom_ART is offline Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default

    For setting color to that Font ,You can use <html><font color="#ffffff">"Something"</font></html>

Similar Threads

  1. Replies: 5
    Last Post: 04-25-2009, 09:00 PM
  2. how to set font size for a xml value
    By bala_kj in forum Advanced Java
    Replies: 3
    Last Post: 04-01-2008, 12:00 PM
  3. Swing - Changing component default font
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-11-2008, 11:52 PM
  4. Help with save font information in jtextarea
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 09:22 PM
  5. Font question
    By orchid in forum Java 2D
    Replies: 1
    Last Post: 08-01-2007, 03:03 AM

Posting Permissions

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