JList myList = new JList(); Font myFont = new Font("Arial", Font.BOLD, 14); myList.setFont(myFont);
JList myList = new JList(); Font myFont = UIManager.getFont("Label.font").deriveFont(Font.ITALIC); myList.setFont(myFont);The java javax.swing package is used in these examples.