If I already have a JListBox set up, but the text is too small, how do I make the font of the elements larger?

try setFont method maybe.

I googled JListBox and came up with JList and it said on that page

Methods inherited from class javax.swing.JComponent and setFont was one.

When dealing with a lot of java controls you often have to read those long lists of methods that are inherited to get full functionality to do what you want.

[edit] if jlistbox is something other than jlist i wouldn't be surprised if it still was inheriting setFont.
Mike

Oh, yes, that's true.. thanks!

to increase font simply use the
setFont(new Font("Fontname",Font.BOLD,12)); like method signature

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.