Java software for a weight indicator