From 418a549af726df2941730f0e45bd1969a82972ef Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 23 Mar 2007 20:15:13 +0000 Subject: [PATCH] More chat panel fiddling. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@263 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/micasa/client/ChatPanel.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/java/com/threerings/micasa/client/ChatPanel.java b/src/java/com/threerings/micasa/client/ChatPanel.java index cf2aa94a..ed5a4a7f 100644 --- a/src/java/com/threerings/micasa/client/ChatPanel.java +++ b/src/java/com/threerings/micasa/client/ChatPanel.java @@ -71,10 +71,10 @@ public class ChatPanel extends JPanel { public ChatPanel (CrowdContext ctx) { - this(ctx, false); + this(ctx, true); } - public ChatPanel (CrowdContext ctx, boolean cuddleHintLabel) + public ChatPanel (CrowdContext ctx, boolean showHintLabel) { // keep this around for later _ctx = ctx; @@ -98,23 +98,19 @@ public class ChatPanel extends JPanel createStyles(_text); // add a label for the text entry stuff - JLabel hint = new JLabel("Type here to chat:"); - if (!cuddleHintLabel) { - add(hint, GroupLayout.FIXED); + if (showHintLabel) { + add(new JLabel("Type here to chat:"), GroupLayout.FIXED); } // create a horizontal group for the text entry bar - gl = new HGroupLayout(GroupLayout.STRETCH); + gl = new HGroupLayout(GroupLayout.STRETCH, GroupLayout.STRETCH, 5, GroupLayout.LEFT); JPanel epanel = new JPanel(gl); - if (cuddleHintLabel) { - epanel.add(hint, GroupLayout.FIXED); - } epanel.add(_entry = new JTextField()); _entry.setActionCommand("send"); _entry.addActionListener(this); _entry.setEnabled(false); - _send = new JButton("Send"); + _send = new JButton("Chat!"); _send.setEnabled(false); _send.addActionListener(this); _send.setActionCommand("send");