Random cleanup I had kicking around
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@833 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -42,10 +42,10 @@ public class SoundTestApp
|
|||||||
|
|
||||||
public void run ()
|
public void run ()
|
||||||
{
|
{
|
||||||
for (int ii = 0; ii < _keys.length; ii++) {
|
for (String _key : _keys) {
|
||||||
System.out.println("Playing " + _keys[ii] + ".");
|
System.out.println("Playing " + _key + ".");
|
||||||
_soundmgr.play(JavaSoundPlayer.DEFAULT,
|
_soundmgr.play(JavaSoundPlayer.DEFAULT,
|
||||||
"com/threerings/media/sound/", _keys[ii]);
|
"com/threerings/media/sound/", _key);
|
||||||
}
|
}
|
||||||
_soundmgr.shutdown();
|
_soundmgr.shutdown();
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class ScrollingFrame extends ManagedJFrame
|
|||||||
// if we had an old panel, remove it
|
// if we had an old panel, remove it
|
||||||
if (_panel != null) {
|
if (_panel != null) {
|
||||||
getContentPane().remove(_panel);
|
getContentPane().remove(_panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now add the new one
|
// now add the new one
|
||||||
_panel = panel;
|
_panel = panel;
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class ViewerFrame extends ManagedJFrame
|
|||||||
// if we had an old panel, remove it
|
// if we had an old panel, remove it
|
||||||
if (_panel != null) {
|
if (_panel != null) {
|
||||||
getContentPane().remove(_panel);
|
getContentPane().remove(_panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now add the new one
|
// now add the new one
|
||||||
_panel = panel;
|
_panel = panel;
|
||||||
|
|||||||
Reference in New Issue
Block a user