Physics, strong magnetic forces have gravitational effections, actully gravitation and magnetic fields act almost identically, so basicly all you need is a strong magnet or in more probable case a super condoctor that is able to transfer anourmous amounts of energy (electricity) one negetive and one opposite (positive) will create the wanted effect.
I assume that by 2400 you will be able to create such a field even at a small chamger such as the one available in a bomber or a fighter, a thing which is not nessecerly needed as the pilot don't move around the ship and would be generaly a waste of energy.
EDIT:
On a side note any object is attracted to anther, the thing is that in order to create a strong gravitation field only by using mass, you need anourmous amounts of it, for instance a jinkusu could perhaps have gravitational field, small one but enough to keep your feet on the deck.