mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Removing webrender eval.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6623 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -49,6 +49,7 @@ import javax.swing.text.Document;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
@ -125,6 +126,21 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
|
||||
}
|
||||
});
|
||||
|
||||
chatAreaButton = new ChatAreaSendField(SparkRes.getString(SparkRes.SEND)) {
|
||||
public Dimension getPreferredSize() {
|
||||
Dimension dim = super.getPreferredSize();
|
||||
|
||||
int windowHeight = getChatRoom().getHeight();
|
||||
|
||||
if (dim.getHeight() > windowHeight - 200) {
|
||||
dim.height = windowHeight - 200;
|
||||
}
|
||||
|
||||
return dim;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
textScroller = new JScrollPane(transcriptWindow);
|
||||
|
||||
textScroller.getVerticalScrollBar().addMouseListener(new MouseAdapter() {
|
||||
@ -140,8 +156,6 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
|
||||
textScroller.setBackground(transcriptWindow.getBackground());
|
||||
textScroller.getViewport().setBackground(Color.white);
|
||||
|
||||
chatAreaButton = new ChatAreaSendField(SparkRes.getString(SparkRes.SEND));
|
||||
|
||||
getChatInputEditor().setSelectedTextColor((Color)UIManager.get("ChatInput.SelectedTextColor"));
|
||||
getChatInputEditor().setSelectionColor((Color)UIManager.get("ChatInput.SelectionColor"));
|
||||
|
||||
@ -404,6 +418,8 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
|
||||
else {
|
||||
chatAreaButton.getButton().setEnabled(false);
|
||||
}
|
||||
|
||||
verticalSplit.setDividerLocation(-1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user