blackBorder = [COLOR="Red"][B]new[/B][/COLOR] BorderFactory.createLineBorder(Color.black);
blackBorder = new BorderFactory[B][COLOR="Red"]()[/COLOR][/B].createLineBorder(Color.black);
That's pretty bad if it's on Sun's website because it's nowhere near valid, even if the method was not a static member then the new keyword would still be invalid, it would need to have a constructor call in it.
Code:blackBorder = new BorderFactory[B][COLOR="Red"]()[/COLOR][/B].createLineBorder(Color.black);