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")));
Top 5 Destinaio List 1. Witsunday Island Whitehaven Beach Top 5 Destinaio List 1. Witsunday Island Whitehaven BeachStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started