Example usage for javax.sound.midi ControllerEventListener interface-usage

List of usage examples for javax.sound.midi ControllerEventListener interface-usage

Introduction

In this page you can find the example usage for javax.sound.midi ControllerEventListener interface-usage.

Usage

From source file Main.java

class DrawPanel extends JPanel implements ControllerEventListener {
    @Override
    public void paintComponent(Graphics g) {
        g.setColor(Color.getHSBColor(new Random().nextFloat(), 1, 1));
        g.fillRect(0, 0, getWidth(), getHeight());
    }