Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

JList interaction

Posted on 2000-05-11
1
Medium Priority
?
328 Views
Last Modified: 2006-11-17
How can I change or  affect the contents (one or all the elements) in JList A by hitting one element in JList B?
0
Comment
Question by:amaral050799
1 Comment
 

Accepted Solution

by:
ninnu earned 40 total points
ID: 2827234
you have to add addListselectionListener() to the Jlist B and if a selection made to it call the setListData(Vector listData) method to change the JList A contents.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question