About 4,260,000 results
Open links in new tab
  1. Swing Examples - Using Listboxes

    Following example showcases how to use standard listboxes in a Java Swing application. We are using the following APIs. Compile and Run the program and verify the output −

  2. How to Use Lists (The Java™ Tutorials > Creating a GUI With Swing ...

    A JList presents the user with a group of items, displayed in one or more columns, to choose from. Lists can have many items, so they are often put in scroll panes. In addition to lists, the following Swing …

  3. Java-GUI 编程之 JList、JComboBox实现列表框 - 腾讯云

    Sep 26, 2022 · 本文介绍JList和JComboBox实现列表框,包括简单列表框创建、不同Model的使用,如不强制存储的ListModel和强制存储的DefaultListModel,还讲解用ListCellRenderer改变列表外观,附 …

  4. JList basic tutorial and examples - CodeJava.net

    Jul 6, 2019 · JList is a Swing component with which we can display a list of elements. This component also allows the user to select one or more elements visually. This article shows how to work with …

  5. JList (Java Platform SE 8 ) - Oracle

    A component that displays a list of objects and allows the user to select one or more items. A separate model, ListModel, maintains the contents of the list. It's easy to display an array or Vector of objects, …

  6. Class ListBox - IIT Kanpur

    public class ListBox extends JavaBookDialog This dialog is for listing a list of items from which the user can select. You can get the index or the string value of the item the user selects. If the user closes …

  7. Java AWT List - GeeksforGeeks

    Nov 26, 2023 · There is the displaySelectedLanguages () method which is used to retrieve the selected items from the list and update the label component. Example 2: In this example, we will create a …

  8. Swing ListBox - SPLessons

    Swing Tutorials - Learning Swing in simple and easy steps using this beginner's tutorial containing basic to advanced knowledge of Swing including Swing Application, Swing Controls, Swing Events, Swing …

  9. JList, JListBox - Swing Scrolling List Controls

    JList: A backwards-compatible implementation of java.awt.List. JListBox: A relatively general-purpose ListBox\-style component with a configurable renderer for list items and better support for setting and …

  10. Listbox (ZK XUL Components 9.0.0-RC API) - javadoc

    A listbox. Event: SelectEvent is sent when user changes the selection. onAfterRender is sent when the model's data has been rendered. (since 5.0.4) onCheckSelectAll is sent when user click on selectAll …