Question: Hi, I am working in a program with java that is a simple ListView Control format. I want to add a border around the images

Hi, I am working in a program with java that is a simple ListView Control format. I want to add a border around the images I have but I cannot figure out how to do it.

class TopDestinationListFrame extends JFrame { private DefaultListModel listModel;

public TopDestinationListFrame() { super("Top Five Destination List");

setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setSize(900, 750);

listModel = new DefaultListModel();

This Next Line Of Code Is what I have now but I want to alter it to add a border to the image if you can help.

addDestinationNameAndPicture("1. Witsunday Island Whitehaven Beach", new ImageIcon(getClass().getResource("/resources/picture1.jpg")));

Hi, I am working in a program with java that is a

Top 5 Destinaio List 1. Witsunday Island Whitehaven Beach Top 5 Destinaio List 1. Witsunday Island Whitehaven Beach

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!