Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    12
    Views
    1,256

    Re: change color according to the value of a cell

    Ok, where are the comments in the code that describe what it is supposed to do?

    Have you looked at the tutorial?
    https://docs.oracle.com/javase/tutorial/uiswing/components/table.html

    Linked...
  2. Replies
    12
    Views
    1,256

    Re: change color according to the value of a cell

    Remove the mysql usages and replace them with hardcoded values so mysql is not needed for testing.
  3. Replies
    12
    Views
    1,256

    Re: change color according to the value of a cell

    Can you make a small, complete program that compiles, executes and shows the problem?
  4. Replies
    12
    Views
    1,256

    Re: change color according to the value of a cell

    Can you make a small, complete program that compiles and executes for testing to show the problem?

    Did you try Google? Here's an interesting item:...
  5. Replies
    12
    Views
    1,256

    Re: change color according to the value of a cell

    Look at the API doc for the class that you want to change color for to see if it has a method to do that.
    http://docs.oracle.com/javase/8/docs/api/index.html
  6. Replies
    12
    Views
    1,256

    Re: change color according to the value of a cell

    Do you have the code that will do this: set bg-color?
    Then define a variable of type Color and assign if the desired color using if statements:

    Color theColor = null;
    ...
Results 1 to 6 of 6