JLIST - Java Codes

JList: Add|Remove Items

Description This is a Code which Adds or Removes the Items from a JList at runtime. Source Code import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ListUpdation extends JFrame ...

0 Comments. 1769 views since Aug 19, 2008

Dual List

Description This code shows how to manage two lists simultaneously. Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; ...

0 Comments. 1508 views since Sep 11, 2008

List Cell Renderer

Description This is a code which demonstrates the List Cell Renderer. Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Container; import ...

0 Comments. 1394 views since Oct 23, 2008

JList: Selection Action

Description This code demonstrates how can we can change certain attributes viz. Font, Text Style, Font Size of the text. Source Code import java.awt.Container; import java.awt.Font; import java.awt. ...

0 Comments. 1359 views since Oct 23, 2008

ToolTip List

Description This code shows the list of items and leaving the cursor on them for a while tooltip appears for that item. Source Code import java.awt.BorderLayout; import java.awt.event.MouseEvent; imp ...

0 Comments. 1323 views since Sep 12, 2008

Mail List

Description This code demonstrates the mailing address with use of LinkedList" and store any type of object. Source Code import java.util.*; class Address { private String name; private Strin ...

0 Comments. 1319 views since Sep 9, 2008

Editable List

Description This code shows a editable list where you can edit the names of entries. Source Code import java.awt.Container; import java.awt.Dimension; import java.awt.event.WindowAdapter; import ja ...

0 Comments. 1266 views since Sep 12, 2008

Modified JList

Description This is a code which is a variation on SimpleList, this program modifies the selecion model used. Source Code import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java. ...

0 Comments. 1217 views since Oct 21, 2008

JList & JComboBox

Description This is a program which demonstrates how to share a Model between a JList and JComboBox. Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import ...

0 Comments. 1129 views since Sep 9, 2008

Swing List

Description This code is an example of the JList component in action. This program uses a custom renderer(BookCellRenderer.java) to show a list of books with icons of their covers. Source Code import jav ...

0 Comments. 1090 views since Oct 21, 2008

List: Default List Model

Description This is a code which demonstrates a JList with a DefaultListModel that we build up at Runtime. Source Code import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt ...

0 Comments. 1020 views since Oct 21, 2008

Graphical List Selection Monitor

Description This is a code which demonstrates a List, n also displays which list is being selected on the Frame itself. Source Code import java.awt.BorderLayout; import java.util.logging.Level; im ...

0 Comments. 993 views since Oct 21, 2008

Input Dialog Box: List

Description This is a code which simply takes an input from a user. Source Code import java.awt.BorderLayout; import java.awt.Component; import java.awt.Container; import java.awt.event.ActionEvent ...

0 Comments. 978 views since Sep 13, 2008

Dual List

Description This is a code which demonstrates a dual list, in which items can be added or removed from one list to other. Source Code import java.awt.BorderLayout; import java.awt.Color; import java. ...

0 Comments. 970 views since Oct 23, 2008

JList: Sharing Data

Description This is a code which shows how to Share Data among two Lists. Source Code import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event. ...

0 Comments. 970 views since Sep 9, 2008

JList: Gesture Test

Description This is a code which is used to demonstrate a Gesture Test. Source Code import java.awt.BorderLayout; import java.awt.dnd.DnDConstants; import java.awt.dnd.DragGestureEvent; import java ...

0 Comments. 897 views since Oct 23, 2008

JList: Color Selector

Description This is a Code which selects the colors from a JList Source Code import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class ColorSelection ...

0 Comments. 868 views since Aug 18, 2008