reindent/format

This commit is contained in:
Brian Matzon 2004-10-03 09:00:36 +00:00
parent 1e83aad48d
commit 53dfc0da74
1 changed files with 207 additions and 211 deletions

View File

@ -90,15 +90,9 @@ public class NetTest {
public static FloatBuffer spectrum;
/** List of known urls (monkeyradio, di streams) */
public static String[] urls = new String[] {
"http://207.200.96.227:8038/",
"http://205.188.234.65:8020",
"http://64.236.34.67:80/stream/1006",
"http://64.236.34.67:80/stream/1003",
"http://205.188.234.65:8026",
"http://64.236.34.67:80/stream/2004",
"http://64.236.34.67:80/stream/1019",
"http://64.236.34.67:80/stream/2005"};
public static String[] urls = new String[] { "http://207.200.96.227:8038/", "http://205.188.234.65:8020",
"http://64.236.34.67:80/stream/1006", "http://64.236.34.67:80/stream/1003", "http://205.188.234.65:8026",
"http://64.236.34.67:80/stream/2004", "http://64.236.34.67:80/stream/1019", "http://64.236.34.67:80/stream/2005"};
/**
* Creates a new NetTest
@ -141,6 +135,7 @@ public class NetTest {
// actual audi thread that starts playing
fmodThread = new Thread() {
public void run() {
// Open the url and prepare to play
// ============================================
@ -290,6 +285,7 @@ public class NetTest {
dialog.pack();
dialog.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dialog.dispose();
}
@ -341,7 +337,7 @@ public class NetTest {
panel[1].setBackground(new Color(0x99, 0x99, 0x99));
// add list of known urls
for(int i=0; i<urls.length; i++) {
for (int i = 0; i < urls.length; i++) {
choice.add(urls[i]);
}
@ -353,6 +349,7 @@ public class NetTest {
// Add listeners
// =====================================================
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame.dispose();
netTest.dispose();
@ -386,7 +383,6 @@ public class NetTest {
frame.setVisible(true);
}
/**
* Simplish spectrum
* @author Brian Matzon <brian@matzon.dk>
@ -431,7 +427,7 @@ public class NetTest {
for (int i = 0; i < 256; i++) {
int height = (int) (getHeight() * 4.0 * spectrum.get(i));
bufferGraphics.fillRect(x, getHeight() - height, 2, height);
x+=2;
x += 2;
}
}