Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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")));

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

25 Vba Macros For Data Analysis In Microsoft Excel

Authors: Klemens Nguyen

1st Edition

B0CNSXYMTC, 979-8868455629

More Books

Students also viewed these Databases questions

Question

=+Will the guilt help meet the objectives?

Answered: 1 week ago

Question

Distinguish between hearing and listening.

Answered: 1 week ago

Question

Use your voice effectively.

Answered: 1 week ago