Search:

Type: Posts; User: paps

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,288

    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. Re: No error from netbeans, tons of errors with javac

    thank you
  3. Replies
    12
    Views
    1,288

    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...
  4. Re: No error from netbeans, tons of errors with javac

    I ran it again and noticed they are just warning.
    I expected netbeans to report them




    robin@mosby: javac -Xlint MamboUI.java displayResult.java > /HDB1/temp/java.log
    MamboUI.java:17:...
  5. No error from netbeans, tons of errors with javac

    Hi guys,
    a dilemma. I use netbeans to prepare, debug, run my project. Everything seems ok and I get what I want even if its really slow.

    Today I tried to use javac -Xlint my.class another.class...
  6. Replies
    12
    Views
    1,288

    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...
  7. Replies
    12
    Views
    1,288

    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);

    ...
  8. Replies
    12
    Views
    1,288

    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.
  9. Replies
    12
    Views
    1,288

    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
  10. Replies
    12
    Views
    1,288

    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 =...
  11. Replies
    2
    Views
    714

    Re: Passing dat from Jbutton to another class

    Adopted this solution (in the meanwhile rewrote the receiving class)

    in main class (MamboUI)



    public void jButton1ActionPerformed(ActionEvent evt) { ...
  12. Replies
    2
    Views
    714

    Passing dat from Jbutton to another class

    Hello everyone
    I've a problem. I would like to send string workData from class MamboUi. jButton1ActionPerformed to class showData.showData where it will be worked

    This is my code


    public...
Results 1 to 12 of 12