You may have made the border correctly doing this, but creating a border isn't very useful if you don't do anything with it. Again, please re-read my note above -- you must call setBorder on the component that you wish to add the border to, passing in your newly created border as the method's parameter.
-I wish I could make the Titled border But I don't know how!? I have used
Border border = new TitledBorder(Color.BLACK, "Employee");
still doesn't work !?
could you write the method if you don't mind ??-please-