Red Font Color in Table Class Interface

Hi SDN community,
Do you know what the exact ABAP Syntax in the Table Class interface, and in which METHOD we would place to change the font colour of numbers to red colour.
And would be also possible to change the number to have brackets around it, to make it proper accounting notation.
I would not want to lose context sensitivity of the numbers.
Thank you.
Simon

Hi SDN community,
Thanks to our ABAP guru:
method data_cell.
  call method super->data_cell
    exporting
      i_x                   = i_x
      i_y                   = i_y
      i_value               = i_value
      i_display_value       = i_display_value
      i_numerical_scale     = i_numerical_scale
      i_numerical_precision = i_numerical_precision
      i_currency            = i_currency
      i_unit                = i_unit
      i_alertlevel          = i_alertlevel
      i_is_sum              = i_is_sum
    changing
      c_cell_id             = c_cell_id
      c_cell_content        = c_cell_content
      c_cell_style          = c_cell_style
      c_cell_td_extend      = c_cell_td_extend.
  data: li_display_value type rsr_pnnn.
  data:
     lv_len type i,
     lv_replace_value type char40,
     lv_with_value    type char40.
  if i_value lt 0.
    data:
    amount type p decimals 2,
    correctamount type p decimals 2,
    chars(5) type c value '1.005'.
    correctamount = chars.
    write i_display_value to lv_replace_value
      no-sign decimals i_numerical_precision.
    condense lv_replace_value no-gaps.
    if i_value < 0.
      concatenate '-' lv_replace_value '</a>' into lv_replace_value.
      condense lv_replace_value no-gaps.
      lv_with_value = lv_replace_value.
      replace:
        '-'    with '(' into lv_with_value,
        '</a>' with ')</font></a>' into lv_with_value.
    else.
      concatenate lv_replace_value '</a>' into lv_replace_value.
      condense lv_replace_value no-gaps.
      lv_with_value = lv_replace_value.
      replace '</a>' with '</font></a>' into lv_with_value.
    endif.
    concatenate '<font color=red>' lv_with_value into lv_with_value.
    lv_len = strlen( lv_replace_value ).
    replace lv_replace_value(lv_len) with lv_with_value
      into c_cell_content.
  endif.

Similar Messages

  • CMD executions in table class interface via ABAP

    Hi SDN Community,
    Would it be possible to code in ABAP , and Command statements that can be placed in the web templates.
    can this be done in the Table class interface.
    For example, the command to expand a hierarchy node that is produced in RSRT2, is
    CMD=SET_DRILL_STATE&DATA_PROVIDER=DP=234D5W1FC9W6311O66UCVSRN9E2&IOBJNM=4D5W27AIW32VTOY02REHCSL6Y&TOGGLE_STATE=X
    How can this if possible be placed in a Table Class Interface, and coded in ABAP to achieve the expansion of the hierarchy node.
    thank you.
    Simon

    Hi Thomas,
    I have been working with a brilliant ABAP'er, and together we
    implemented a solution in the START method, that makes use of the
    following methods and expands all the hierarchy nodes at start.
    And this class can be omitted in the Print all view we have formulated
    as only a collapsed view has been specified there.
    thank you.
    Simon
    I found this all in that class interface CL_RSR_REQUEST
    for N_R_REQUEST
    for N_R_DATA_SET
    Initial Value: Set Drilldown State of a Hierarchy
    Description: 'SET_DRILL_STATE'
    this looks like the method that gets executed. what do you think?
    can you code this in the program
    constants C_CMD_SET_DRILL_STATE type RSRCMDID
    value 'SET_DRILL_STATE'. "#EC NOTEXT
    methods SET_DRILL_STATE
    importing
    value(I_AXIS) type RRXAXIS optional
    value(I_POSITION) type I optional
    value(I_FOCUS_IOBJNM) type RSIOBJNM optional
    value(I_DRILLSTATE) type RRXDRILLSTATE optional
    value(I_TOGGLE) type RS_BOOL default RS_C_FALSE
    !I_R_PARAMETER type ref to CL_RSR_PARAMETER optional
    exporting
    !E_KEEP_LAST_LINES type I
    !E_KEEP_FIRST_LINES type I
    !E_NEW_LINES_FROM type I
    !E_NEW_LINES_TO type I
    !E_NODE_POSITION_FROM type I
    !E_NODE_POSITION_TO type I
    exceptions
    NO_PROCESSING
    X_MESSAGE .

  • Export word to pdf and maintain font color inside tables

    Hello,
    I'm strugling with producing a PDF from Word document and keep the red colored text inside excel tables that are on the Word document.
    From excel I copy the tables to Word 2007, with "Paste special --> Paste link as Microsoft Office Excel 2003 worksheet object".
    In Word all the colors and objects are fine. The problem happens when I try to produce a PDF from that. The red and blue text inside the tables appears with black color on the PDF.
    This happens always. With MsOffice Save as PDF, with Acrobat 9 save as Adobe PDF, print Adobe PDF and with free PDF Creator.
    I've attached the *.doc and *.xls where this problem is occuring.
    http://www.4shared.com/zip/XmKvKJYH/Wireless.html
    If anyone knows the cause of this problem please let me know.
    Thanks

    Solution found. For the pdf printers to work correctly it is necessary to adjust the format when copying from excel. That option needs to be enabled in advanced:

  • Table class interface to replace Not assigned with blank

    Hi,
    I have some of the values for characterstic as Not assigned I wan to replace it with blank in my webreport
    when I want to replace #with blank I have written the following code
    In method CHARACTERISTIC_CELL  I have written th following code
      IF I_CHAVL EQ '#'.
        replace '#' with '-' into c_cell_content.
        replace '#</a>' with '-</a>' into c_cell_content.
      ENDIF.
    but when I wan tot replace Not assigned with blank witht the following code its not working
    IF I_CHAVL EQ 'Not assigned'.
        replace 'Not assigned' with '-' into c_cell_content.
        replace 'Not assigned</a>' with '-</a>' into c_cell_content.
      ENDIF.

    See SDN-thread "Re: Remove 'Not assigned" in which you should modify the text elements in SAPLRRSV
    (do not know, if this works; it is a modification which affects the whole system).
    Ideas from SDN research:
    "a solution i have used is to put each RKF column in a CKF colum then in each CKF use RKF + 0, the outcome is that your # should now be 0s, in the query properties you can set the option to display 0s as blank."
    "try to enter a text for the blank entry in the master data maintenance of the relevant objects and set the display option for the objects to 'text'."
    Threads:
    SDN: How to replace # or Not assigned with blank in BEx Query Output.
    SDN: Re: Remove 'Not assigned
    SDN: How to replace # or (Not assigned) with blank in BEx Query Output.
    SDN: Bex Analyzer : Text element system's table ?  
    SDN: change message in web application designer ["nonavailable" ->  136 of SAPLRRSV]
    SDN: Not Assigned ["Not Assigned -> 027 of SAPLRRSV]
    SDN: replacing '#'-sign for 'not assigned' in queries
    SDN: # in report when null in the cube
    SDN: How to replace '#' with blank when there is no value for a date field
    Edited by: Thomas Köpp on Sep 13, 2010 5:18 PM

  • Negative Values  - in Red Font

    Hi SDNers,
    We are on BI 7.0 SP 16.
    We have created custom Web Templates for our customer and are using Portal Themes to control the "look & feel" of the Web Reports, which are presented via the Consumer portal (not BI Portal but EP Portal).
    My Question is : Is there a way to show negative values in Red Font color (we are not talking about background cell colour for negative values as RED which can be acheived by exception reporting).
    The Reports are presented on WEB via EP Portal ,so no excel here...
    Any suggestions will be appreciated.
    Thanks
    TC

    Hi Tony,
    Suggestion of code in method DATA_CELL will be below:.  The only thing is that below code is doing a left justification instead of displaying in red. You will need to find out how to display in red in HTML and replace it in the codes.  Hope it help.
            l_value type i,
            l_replace type string,
            l_new  type string,
            l_txt(20),
            l_valn(20).
      move i_value to l_value.
      if  l_value lt 0.
        write l_value to l_valn left-justified.
        concatenate '>' l_valn '<' into l_replace.
        condense l_replace no-gaps.
        concatenate 'style="float:left;" ' '>' l_txt '<' into l_new.     " replace value and left justify text
        condense l_new no-gaps.
        replace l_replace in c_cell_content with l_new.
      endif.
    Regards
    Kate

  • How to change the font color of a particular row in af:table

    I have a <af:table> bounded to a readonly ViewObject and this view object is a collection of an sql query. Now when this table is rendered i want font color of the specific attributes to be changed based on certain logic.
    Eg. If my af:table is showing a resultset which has Attributest like ... EmployeeName | BalanceLeave . Then i want that the BalanceLeave value shoud be displayed in RED color if leave balance attribute value is more than 20.
    Please help me on this.

    For this you use the styleClass property of the attribute and use an EL bound to a managed bean to return the desired style.
    Something like this to switch the color public class ColorSwitchBean {
        public ColorSwitchBean() {
            super();
        String mStyleClass = null;
    String mColorSyle = null;
        public String getStyleClass() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ELContext elc = fc.getELContext();
            ExpressionFactory elf = fc.getApplication().getExpressionFactory();
            String sval =
                (String)elf.createValueExpression(elc, "#{row.City}", Object.class).getValue(elc);
            if (sval.startsWith("S"))
                mStyleClass = "red_background";
            else if (sval.startsWith("M"))
                mStyleClass = "green_background";
            else
                mStyleClass="";
            return mStyleClass;
         public void setStyleClass(String aStyleClass) {
            mStyleClass = aStyleClass;
        public void setColorSyle(String mColorSyle) {
            this.mColorSyle = mColorSyle;
        public String getColorSyle() {
          FacesContext fc = FacesContext.getCurrentInstance();
          ELContext elc = fc.getELContext();
          ExpressionFactory elf = fc.getApplication().getExpressionFactory();
          String sval =
              (String)elf.createValueExpression(elc, "#{row.City}", Object.class).getValue(elc);
          mColorSyle = "";
          if (sval.startsWith("S")) {
              mColorSyle = "background-color:Red";
          else if (sval.startsWith("M")) {
              mColorSyle = "background-color:Green";
          return mColorSyle;
    }and this inside the table:- <af:column sortProperty="City" sortable="true" headerText="#{bindings.Departments.hints.City.label}" id="c1" styleClass="#{ColorSwitchBean.styleClass}">
      <af:outputText value="#{row.City}" id="ot2" /> Timo

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • Printing XML report (with report.xsl stylesheet) shows font colors, but not table highlight colors

    I am trying to print the XML report generated by TestStand to a PDF in order to archive it.  When the XML report is rendered in Internet Explorer, everything looks fine -- Sequence names are highlighted in teal, Pass is in green, Fail is highlighted in red.
    However, when I print this page to a PDF (using BullZip PDF printer, or even the XPS printer), all of the table highlighting is gone.  The UUT Result in the header is red or green font color depending on the pass/fail state, but sequence names and any formatting applied to tables within the body of the report have no highlighting.
    Is the stylesheet altering what is rendered when the XML file is printed?
    This is the output when viewed in IE 
    This is the output when viewed as a PDF printed from the same file viewed in IE.
    Thank you,
    Matt
    Solved!
    Go to Solution.

    Hey Matt,
    This is actually because of a default setting in Internet Explorer to not print background colors on webpages. To change it, simply go to the Page Setup screen (on IE9, you click the gear icon, then Print > Page Setup) and select the option to print background images and colors. After doing this, the printed report should contain the colors you see on your screen.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • Display data in bold and red in color in side a table control cell

    Hi,
    I need to display data in side a Table Control cell with Bold and Red in color, can any body help me how to do it.
    Regards,
    Srinivas

    The gui does not support the coloring in table controls.  You can set the hightlight attribute, but this will only make the text blue in color. There is no way to make it any other color.
    Regards,
    Rich Heilman

  • font color=red Create/Modify forms and triggers through C++ using OPEN API

    <font color=red>
    Dear brothers/sisters<font color=darkblue>
    <br><br>
    Please help us to find the linking problem.
    <br>
    We have to add PRE-FORM trigger to many FMBies. We have thousants of FMBies. So opening one by one is difficult. For this we are using OPEN API and BORLAND C++. We have coppied all header files from D:\orant\FORMS60\API.
    But there is a link error. Here is the snippet.
    <br>
    <font color=red>
    <br>#include <stdio.h>
    <br>#include <stdlib.h>
    <br>#include <malloc.h>
    <br>#include <d2fctx.h> /* Forms API context */
    <br>#include <d2ffmd.h> /* Form module header file */
    <br>int main (int argc, char *argv[])
    <br>{
    <br>d2fctxa ctx_attr;
    <br>d2fctx *ctx;
    <br>d2ffmd *form;
    <br>text *form_name;
    <br>/* Check arguments */
    <br>if ( argc != 2 )
    <br>{
    <br>fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
    <br>exit(1);
    <br>}
    <br>/* Create Forms API context */
    <br>ctx_attr.mask_d2fctxa = (ub4)0;
    <br>if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Error creating Forms API context\n");
    <br>exit(1);
    <br>}
    <br>/* Load the form module into memory */
    <br>if ( d2ffmdld_Load(ctx, &form, argv[1], FALSE) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
    <br>exit(1);
    <br>}
    <br>/* Get the name of the form module */
    <br>if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Error getting the name of the form module\n");
    <br>}
    <br>else
    <br>{
    <br>/* Print the name of the form, then free it */
    <br>printf ("The name of the form is %s\n", form_name);
    <br>free(form_name);
    <br>}
    <br>/* Destroy the in-memory form */
    <br>if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Error destroying form module\n");
    <br>}
    <br>/* Close the API and destroy context */
    <br>d2fctxde_Destroy(ctx);
    <br>return 0;
    <br>}
    <br>
    <font color=darkblue>
    <br>
    The compilation is success. But there is a link error. Please help us to find the problem.
    <br><br>
    Here is the error Message.
    <br>
    <font color=red>
    <br>Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    <br>FIRST.CPP:
    <br>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
    <br>Error: Unresolved external '_d2fctxcr_Create' referenced from D:\API\FIRST.OBJ
    <br>Error: Unresolved external '_d2ffmdld_Load' referenced from D:\API\FIRST.OBJ
    <br>Error: Unresolved external '_d2ffmdgt_GetTextProp' referenced from D:\API\FIRST.OBJ
    <br>Error: Unresolved external '_d2fctxde_Destroy' referenced from D:\API\FIRST.OBJ
    <br><br>
    <font color=darkblue size=4>Could you please help us.......<br>

    <font color=red>
    Dear brothers/sisters<font color=darkblue>
    <br><br>
    Please help us to find the linking problem.
    <br>
    We have to add PRE-FORM trigger to many FMBies. We have thousants of FMBies. So opening one by one is difficult. For this we are using OPEN API and BORLAND C++. We have coppied all header files from D:\orant\FORMS60\API.
    But there is a link error. Here is the snippet.
    <br>
    <font color=red>
    <br>#include <stdio.h>
    <br>#include <stdlib.h>
    <br>#include <malloc.h>
    <br>#include <d2fctx.h> /* Forms API context */
    <br>#include <d2ffmd.h> /* Form module header file */
    <br>int main (int argc, char *argv[])
    <br>{
    <br>d2fctxa ctx_attr;
    <br>d2fctx *ctx;
    <br>d2ffmd *form;
    <br>text *form_name;
    <br>/* Check arguments */
    <br>if ( argc != 2 )
    <br>{
    <br>fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
    <br>exit(1);
    <br>}
    <br>/* Create Forms API context */
    <br>ctx_attr.mask_d2fctxa = (ub4)0;
    <br>if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Error creating Forms API context\n");
    <br>exit(1);
    <br>}
    <br>/* Load the form module into memory */
    <br>if ( d2ffmdld_Load(ctx, &form, argv[1], FALSE) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
    <br>exit(1);
    <br>}
    <br>/* Get the name of the form module */
    <br>if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Error getting the name of the form module\n");
    <br>}
    <br>else
    <br>{
    <br>/* Print the name of the form, then free it */
    <br>printf ("The name of the form is %s\n", form_name);
    <br>free(form_name);
    <br>}
    <br>/* Destroy the in-memory form */
    <br>if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
    <br>{
    <br>fprintf(stderr, "Error destroying form module\n");
    <br>}
    <br>/* Close the API and destroy context */
    <br>d2fctxde_Destroy(ctx);
    <br>return 0;
    <br>}
    <br>
    <font color=darkblue>
    <br>
    The compilation is success. But there is a link error. Please help us to find the problem.
    <br><br>
    Here is the error Message.
    <br>
    <font color=red>
    <br>Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    <br>FIRST.CPP:
    <br>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
    <br>Error: Unresolved external '_d2fctxcr_Create' referenced from D:\API\FIRST.OBJ
    <br>Error: Unresolved external '_d2ffmdld_Load' referenced from D:\API\FIRST.OBJ
    <br>Error: Unresolved external '_d2ffmdgt_GetTextProp' referenced from D:\API\FIRST.OBJ
    <br>Error: Unresolved external '_d2fctxde_Destroy' referenced from D:\API\FIRST.OBJ
    <br><br>
    <font color=darkblue size=4>Could you please help us.......<br>

  • How to change the background and font color of a particular row in table

    Hi,
       i need to change the background and font color of a particular row. I am using textview as table columns. I tried to do it using semanticColor property of textview  but the font color get changed for the whole column. But i want to change the color of a particular row only.
       If anybody knows please help me(give an example if possible).
           Thanks and regards.
            Pankaj Kumar.

    Hi Pankaj,
    In your data source context node (context node which is bound to dataSource property of Table UI elemennt) do following:
    If data source node is model node: create a value node under data source node, cardinality 1..1, selection 1..1, singleton false. In this new node add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor .
    If datasource node is value add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor.
    In calculated getter method put your color calculation depending on conditions, like:
    return <condition>
      ? WDTextViewSemanticColor.CRITICAL
      : WDTextViewSemanticColor.STANDARD;
    Bind new created attribute with property semanticColor of textview.
    Best regards, Maksim Rashchynski.

  • APEX 4 Interactive Report set font color of negative values to red

    I have an interactive report with several columns containing numerical values. If the value is negative, I want the font color to be red. Can someone help me with this process please.
    Application Express 4.1.1.00.23
    Thanks!
    Chris

    Hi,
    Use build in highlight
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#sthref1343
    Then save report default layout
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to automatically build a table with 2 alternated font colors for the lines ?

    Hi,
    I'm looking for a way to automatically build a table with alternate background color and alternate font color for the lines.
    I have this particular project (a list of companies of an industrial area) and it is updated twice a year :
    I managed to set an automated alternate background color of the lines so this works well (white/blue/white/blue...)
    But the font color does not automatically alternates... and I do not know how to set this up...
    All the companies are ordered alphabetically so when I have to insert or delete one, the whole text of the table under the modified line is messed up. Then I have unreadable white text on white background and blue text on blue background...
    Does anyone have an idea on how to automatically alternate the font color ?
    Thank you.
    Best regards,
    G.

    Hi,
    I know this [JS] code is awful but it works. If  someone wants to correct it …! 
    At the beginning, you have an Excel file. You play a little with it [doing concatenations] to get, after importing it in ID:
    Then, just run the .jsx:
    Done! 

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

Maybe you are looking for

  • Apple TV no longer syncing

    You guessed it -- 3.0.1! Nothing I buy on iTunes (on my desktop computer) 9.0.2 will now sync onto my ATV. iTunes "pretends" to sync but nothing moves across to the ATV. any suggestions?? thanks, Neil

  • Screen rim popping out?

    I noticed that if, in certain places, if I press the sides of the screen, it snaps, like as if it is trying to snap back in, but just pops back out. I purchased the Macbook only a few days ago. I just want to know if I should bring it in to the store

  • Multiclip - adding angle - WHAT is used as the sync point???

    When I try to add a clip to a multiclip, I cannot discern the rational FCP is using in determining where the new clip lands in timing to the others already present. My multiclips are In-point based. Tried every combination of ins, no ins, beginning o

  • Images of products in quotation(automatically)

    Hi Experts, I have a requirement where the client wants to images of Product(s) to be automatically updated (captured) in a quotation as soon as the products are added, so that the customer can make a quick decision viewing the images of the product.

  • Table-Structure Change

    Hi Guys!!! I have created a Z***** table n activated,now i want to change the data type from FLTP to CHAR but the thing is am getting an error "Structure change at field level (convert table Z******).what i supposed to do? Warm Regards, Mohandoss P.