You didn't set a color, you set a border. Hence it will return a border, from which you can probably get the color.
Color c = ((LineBorder)textField.getBorder()).getLineColor();
Do you per chance happen to have the Java API on your machine? Somethings can be solved by taking 3 secs to check the API. If you dont have it then I suggest you download it NOW.
ICE
> Yea I read the API, thats how I got the first one to work. And the way you gave doesn't work either.
Well if the code snippet given didn't work then read the API again, this aint magic, so the answer should be in there somewhere.
I have to ask, are you trying to set background color or a border color? Cause from the code you provided then, you are working with borders not colors, the colors are an added effect. Try to be clear on what you want then, maybe your problem can be solved.
ICE