Tabs -> spaces

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@331 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Dave Hoover
2007-06-26 00:07:57 +00:00
parent 1c92282772
commit 6b1066169f
35 changed files with 441 additions and 441 deletions
+5 -5
View File
@@ -44,29 +44,29 @@ public class Log
{
/** The static log instance configured for use by this package. */
public static com.samskivert.util.Log log =
new com.samskivert.util.Log("micasa");
new com.samskivert.util.Log("micasa");
/** Convenience function. */
public static void debug (String message)
{
log.debug(message);
log.debug(message);
}
/** Convenience function. */
public static void info (String message)
{
log.info(message);
log.info(message);
}
/** Convenience function. */
public static void warning (String message)
{
log.warning(message);
log.warning(message);
}
/** Convenience function. */
public static void logStackTrace (Throwable t)
{
log.logStackTrace(com.samskivert.util.Log.WARNING, t);
log.logStackTrace(com.samskivert.util.Log.WARNING, t);
}
}
@@ -86,8 +86,8 @@ public class ChatPanel extends JPanel
_ctx.getOccupantDirector().addOccupantObserver(this);
GroupLayout gl = new VGroupLayout(GroupLayout.STRETCH);
gl.setOffAxisPolicy(GroupLayout.STRETCH);
setLayout(gl);
gl.setOffAxisPolicy(GroupLayout.STRETCH);
setLayout(gl);
// create our scrolling chat text display
_text = new JTextPane();
@@ -172,13 +172,13 @@ public class ChatPanel extends JPanel
// documentation inherited
public void actionPerformed (ActionEvent e)
{
String cmd = e.getActionCommand();
if (cmd.equals("send")) {
String cmd = e.getActionCommand();
if (cmd.equals("send")) {
sendText();
} else {
System.out.println("Unknown action event: " + cmd);
}
} else {
System.out.println("Unknown action event: " + cmd);
}
}
// documentation inherited
@@ -60,7 +60,7 @@ public class ClientController extends Controller
// documentation inherited
public boolean handleAction (ActionEvent action)
{
String cmd = action.getActionCommand();
String cmd = action.getActionCommand();
if (cmd.equals("logoff")) {
// request that we logoff
@@ -58,7 +58,7 @@ public class LogonPanel extends JPanel
_ctx = ctx;
_msgs = _ctx.getMessageManager().getBundle("micasa.logon");
setLayout(new VGroupLayout());
setLayout(new VGroupLayout());
// stick the logon components into a panel that will stretch them
// to a sensible width
@@ -136,16 +136,16 @@ public class LogonPanel extends JPanel
public void actionPerformed (ActionEvent e)
{
String cmd = e.getActionCommand();
if (cmd.equals("skipToPassword")) {
String cmd = e.getActionCommand();
if (cmd.equals("skipToPassword")) {
_password.requestFocusInWindow();
} else if (cmd.equals("logon")) {
logon();
} else {
System.out.println("Unknown action event: " + cmd);
}
} else {
System.out.println("Unknown action event: " + cmd);
}
}
// documentation inherited from interface
@@ -62,8 +62,8 @@ public class MiCasaFrame
{
// remove the old panel
getContentPane().removeAll();
// add the new one
getContentPane().add(panel, BorderLayout.CENTER);
// add the new one
getContentPane().add(panel, BorderLayout.CENTER);
// swing doesn't properly repaint after adding/removing children
panel.revalidate();
repaint();
@@ -48,7 +48,7 @@ public class LobbyPanel
public LobbyPanel (MiCasaContext ctx, LobbyConfig config)
{
// we want a five pixel border around everything
setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
// create our primary layout which divides the display in two
// horizontally
@@ -73,7 +73,7 @@ public class TableItem
_self = ((BodyObject)ctx.getClient().getClientObject()).getVisibleName();
// now create our user interface
setBorder(BorderFactory.createLineBorder(Color.black));
setBorder(BorderFactory.createLineBorder(Color.black));
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
@@ -79,9 +79,9 @@ public class TableListView extends JPanel
_tdtr.addSeatednessObserver(this);
// set up a layout manager
HGroupLayout gl = new HGroupLayout(HGroupLayout.STRETCH);
gl.setOffAxisPolicy(HGroupLayout.STRETCH);
setLayout(gl);
HGroupLayout gl = new HGroupLayout(HGroupLayout.STRETCH);
gl.setOffAxisPolicy(HGroupLayout.STRETCH);
setLayout(gl);
// we have two lists of tables, one of tables being matchmade...
VGroupLayout pgl = new VGroupLayout(VGroupLayout.STRETCH);
@@ -93,7 +93,7 @@ public class TableListView extends JPanel
mgl.setOffAxisPolicy(VGroupLayout.STRETCH);
mgl.setJustification(VGroupLayout.TOP);
_matchList = new JPanel(mgl);
_matchList.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
_matchList.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
panel.add(new JScrollPane(_matchList));
// create and initialize the configurator interface
@@ -139,7 +139,7 @@ public class TableListView extends JPanel
panel.add(new JLabel("Games in progress"), VGroupLayout.FIXED);
_playList = new JPanel(mgl);
_playList.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
_playList.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
panel.add(new JScrollPane(_playList));
add(panel);
@@ -65,7 +65,7 @@ public class SimulatorController extends Controller
// documentation inherited
public boolean handleAction (ActionEvent action)
{
String cmd = action.getActionCommand();
String cmd = action.getActionCommand();
if (cmd.equals(LOGOFF)) {
// request that we logoff