Aug 14, 2002 #1 fatcodeguy Programmer Joined Feb 25, 2002 Messages 281 Location CA How do I set the font of some items in a JList (some bold, some plain)? I think I use cell renderer, but how does that work? Thanks
How do I set the font of some items in a JList (some bold, some plain)? I think I use cell renderer, but how does that work? Thanks
Aug 14, 2002 #2 sedj Programmer Joined Aug 6, 2002 Messages 5,610 Not sure about cell rendering, but does this help ... Font font = new Font("Helvetica", Font.BOLD, 16); JList jl = new JList(); jl.setFont(font); Sorry if its not what you are looking for ! Ben Upvote 0 Downvote
Not sure about cell rendering, but does this help ... Font font = new Font("Helvetica", Font.BOLD, 16); JList jl = new JList(); jl.setFont(font); Sorry if its not what you are looking for ! Ben
Aug 14, 2002 Thread starter #3 fatcodeguy Programmer Joined Feb 25, 2002 Messages 281 Location CA Thanks, but this changes the whole list, I need to be able to change the font for only certain items Upvote 0 Downvote