Update tabbed pane.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6702 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-01-16 18:59:37 +00:00
committed by derek
parent 2c3457091a
commit f1e4458e88
2 changed files with 5 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class SparkTabbedPane extends JPanel implements MouseListener {
private void createUI() { private void createUI() {
setLayout(new BorderLayout()); setLayout(new BorderLayout());
tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 2, 0)) { tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 5, 0)) {
public Dimension getPreferredSize() { public Dimension getPreferredSize() {
if (getParent() == null) if (getParent() == null)
return getPreferredSize(); return getPreferredSize();

View File

@ -41,6 +41,7 @@ import javax.swing.JSeparator;
import javax.swing.JSplitPane; import javax.swing.JSplitPane;
import javax.swing.KeyStroke; import javax.swing.KeyStroke;
import javax.swing.UIManager; import javax.swing.UIManager;
import javax.swing.BorderFactory;
import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener; import javax.swing.event.DocumentListener;
import javax.swing.text.BadLocationException; import javax.swing.text.BadLocationException;
@ -249,6 +250,9 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
bottomPanel.setLayout(new GridBagLayout()); bottomPanel.setLayout(new GridBagLayout());
bottomPanel.add(chatAreaButton, new GridBagConstraints(0, 1, 5, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 15)); bottomPanel.add(chatAreaButton, new GridBagConstraints(0, 1, 5, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 15));
bottomPanel.add(editorBar, new GridBagConstraints(0, 0, 5, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0)); bottomPanel.add(editorBar, new GridBagConstraints(0, 0, 5, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0));
// Set bottom panel border
bottomPanel.setBorder(BorderFactory.createMatteBorder(0,0,1,0, new Color(197, 213, 230)));
verticalSplit.setOpaque(false); verticalSplit.setOpaque(false);
verticalSplit.setTopComponent(chatPanel); verticalSplit.setTopComponent(chatPanel);