Example usage for java.awt.event ItemListener interface-usage

List of usage examples for java.awt.event ItemListener interface-usage

Introduction

In this page you can find the example usage for java.awt.event ItemListener interface-usage.

Usage

From source file Main.java

public class Main extends JPanel implements ItemListener {
    public Main() {
        // Add check boxes to the content pane.
        Icon normal = new MyIcon(Color.red);
        Icon rollover = new MyIcon(Color.YELLOW);
        Icon selected = new MyIcon(Color.BLUE);

From source file Main.java

public class Main extends JPanel implements ItemListener {
    public Main() {
        // Add check boxes to the content pane.
        Icon normal = new MyIcon(Color.red);
        Icon rollover = new MyIcon(Color.YELLOW);
        Icon selected = new MyIcon(Color.BLUE);

From source file Main.java

public class Main extends JPanel implements ItemListener {
    public Main() {
        // Add check boxes to the content pane.
        Icon normal = new MyIcon(Color.red);
        Icon rollover = new MyIcon(Color.YELLOW);
        Icon selected = new MyIcon(Color.BLUE);

From source file MainClass.java

public class MainClass extends JPanel implements ItemListener {
    public MainClass() {
        // Add check boxes to the content pane.
        Icon normal = new MyIcon(Color.red);
        Icon rollover = new MyIcon(Color.YELLOW);
        Icon selected = new MyIcon(Color.BLUE);

From source file Main.java

public class Main extends JPanel implements ItemListener {
    public Main() {
        // Add check boxes to the content pane.
        Icon normal = new MyIcon(Color.red);
        Icon rollover = new MyIcon(Color.YELLOW);
        Icon selected = new MyIcon(Color.BLUE);

From source file ComboBox.java

public class ComboBox extends JDialog implements ActionListener, ItemListener {
    final String[] authors = { "A", "B", "C", "D", "E", "F" };
    final String[] images = { "a.jpg", "b.jpg", "c.jpg", "d.jpg", "e.jpg", "f.jpg" };

    JLabel display = new JLabel();
    JComboBox combobox = new JComboBox(authors);

From source file Main.java

class MyItemListener implements ItemListener {
    // This method is called only if a new item has been selected.
    public void itemStateChanged(ItemEvent evt) {
        JComboBox cb = (JComboBox) evt.getSource();

        Object item = evt.getItem();

From source file SystemColorChooserPanel.java

class SystemColorChooserPanel extends AbstractColorChooserPanel implements ItemListener {
    private static int NOT_FOUND = -1;

    JComboBox comboBox;
    String labels[] = { "BLACK", "BLUE", "CYAN", "<Custom>" };
    Color colors[] = { Color.BLACK, Color.BLUE, Color.CYAN, null };

From source file assign3.client.WaypointClient.java

/**
 * Copyright (c) 2014 Tim Lindquist,
 * Software Engineering,
 * Arizona State University at the Polytechnic campus
 * <p/>
 * This program is free software; you can redistribute it and/or

From source file Composite.java

public class Composite extends JApplet implements ItemListener {
    CompPanel comp;

    JLabel alphaLabel = new JLabel("Alphas");

    JLabel rulesLabel = new JLabel("Rules");