title: Swing JList font width
body: <p>I am making a java program with produces a recept in a listbox, it will display the number of items, the item name and the price of the item. I need to pad the string so that the name is ruffly in the middle and the number of items and the cost are at ether side. Can you find the with in pixels of the strings then I can calculate the number of spaces needed to acheive the desired format. Thanks</p>