forked from hoijui/JavaOSC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
42 lines (33 loc) · 803 Bytes
/
Copy pathMain.java
File metadata and controls
42 lines (33 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright (C) 2003-2014, C. Ramakrishnan / Auracle.
* All rights reserved.
*
* This code is licensed under the BSD 3-Clause license.
* See file LICENSE (or LICENSE.html) for more information.
*/
package com.illposed.osc.ui;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
public class Main extends JFrame {
private OscUI myUi;
public void addOscUI() {
myUi = new OscUI(this);
setBounds(10, 10, 500, 350);
setContentPane(myUi);
}
public Main() {
super("OSC");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
myUi.doSendGlobalOff(1000, 1001, 1002);
System.exit(0);
}
});
addOscUI();
setVisible(true);
}
public static void main(String[] args) {
new Main();
}
}