Search:

Type: Posts; User: paps

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    1,284

    Re: change color according to the value of a cell

    Here it is.



    package displayresult;


    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
  2. Replies
    12
    Views
    1,284

    Re: change color according to the value of a cell

    If you use mysql I could send a part of the sql file sql I use to read data otherwise... I dont know how to do it. The project is really small (two .java files) which I could reduce to one passing...
  3. Replies
    12
    Views
    1,284

    Re: change color according to the value of a cell

    Hi,
    Im in a nightmare. I have lot of questions and will start other questions :(
    I found a classe which should solve my problem(I hope) but cant call from inside the above render. My idea is to...
  4. Replies
    12
    Views
    1,284

    Re: change color according to the value of a cell

    Here we are :)
    I read some documentation about Color, TableCellRenderer, ... but it doesnt work




    JTable table = new JTable(dataVector, columnNamesVector);

    ...
  5. Replies
    12
    Views
    1,284

    Re: change color according to the value of a cell

    Thank you. You gave me the "bible" of java. Will study it, but will ask again i necessary.
  6. Replies
    12
    Views
    1,284

    Re: change color according to the value of a cell

    Nope, dont have the code to set bg-color. Any suggestion?
    Thank you for the code to insert in the switch

    paps
  7. Replies
    12
    Views
    1,284

    change color according to the value of a cell

    I read a Mysql table and show its content in a JTable. Actually I make a conversion from the mysql.table to what I really will display by using a switch



    {
    case "V" : dummy =...
Results 1 to 7 of 7