The title says it all.

Basically what I'd like to do is have a JComboBox drop down with a list of items. When the user clicks on that item it will redirect them, or open a new browser tab, of the url to that specific item.

Quick example (these sites are solely for the example):
Item list - apple, orange, banana

apple: www.apple.com
orange: www.orange.com
banana: www.banana.com

When the user clicks apple, it takes them to www.apple.com

I know there's a hypelinklistener class, should I mess around with that? I really don't know where to begin after setting up my ComboBox.

Any help is much appreciated!

What you looking for is the Desktop Class. its easy as Desktop.BROWSE("http://www.foo.bar"); with some catches and conditions though.

What you looking for is the Desktop Class. its easy as Desktop.BROWSE("http://www.foo.bar"); with some catches and conditions though.

Oh that's wonderful thank you!

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.