public class SelectKeyboardDialog extends Object
| Constructor and Description |
|---|
SelectKeyboardDialog(Optional<Keyboard> keyboard,
net.kreatious.pianoleopard.keyboardselect.MidiDeviceFactory deviceFactory,
Preferences preferences)
Constructs a new
SelectKeyboardDialog for selecting the desired
MIDI device. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Keyboard> |
showDialog(Optional<Component> parent)
Shows the select keyboard dialog.
|
public SelectKeyboardDialog(Optional<Keyboard> keyboard, net.kreatious.pianoleopard.keyboardselect.MidiDeviceFactory deviceFactory, Preferences preferences)
SelectKeyboardDialog for selecting the desired
MIDI device.keyboard - the original Keyboard model to display, if applicabledeviceFactory - the MidiDeviceFactory for obtaining available MIDI
devicespreferences - the preferences to store options onpublic Optional<Keyboard> showDialog(Optional<Component> parent)
If a parent is not provided, the dialog will not be shown and this method returns immediately.
parent - the parent component to layout this dialog relative toCopyright © 2015 Kreatious LLC. All rights reserved.