mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-08-18 11:10:02 +00:00
Adding padding to TabbedPane.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4922 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -14,13 +14,6 @@ import org.jivesoftware.resource.SparkRes;
|
||||
import org.jivesoftware.spark.component.RolloverButton;
|
||||
import org.jivesoftware.spark.util.ModelUtil;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTabbedPane;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.CardLayout;
|
||||
import java.awt.Component;
|
||||
@ -41,6 +34,13 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTabbedPane;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ -81,8 +81,7 @@ public class SparkTabbedPane extends JPanel implements MouseListener {
|
||||
private void createUI() {
|
||||
setLayout(new BorderLayout());
|
||||
|
||||
tabs = new JPanel(new
|
||||
FlowLayout(FlowLayout.LEFT, 0, 0)) {
|
||||
tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 2, 0)) {
|
||||
public Dimension getPreferredSize() {
|
||||
if (getParent() == null)
|
||||
return getPreferredSize();
|
||||
|
||||
Reference in New Issue
Block a user