Swords are heavy root feeders, so get some root tabs and put it in the substrate about an inch from the plant. Java ferns are not picky. Both plants would benefit from some nutrients/fertilizers in the water though. You can get in dry form, which is what most people do because its inexpensive, or liquid form which you can get at your LFS. Your plants will benefit from both micro nutrients and the three macros, phosphate, nitrate and potassium. Java ferns and anubias are slow growing plants, so don't be surprised if you start to see algae growing on their leafs over time.
Sorry I didn't see that you had both java ferns and anubias. Both of those are rhizome feeders and should be attached to driftwood or a rock. You can bury them but you have to keep the rhizome above the gravel which is more of a pain than its worth, its safer to attach them to something.