|
|
|
@ -2,6 +2,7 @@ package com.fr.design.mainframe.theme.edit;
|
|
|
|
|
|
|
|
|
|
import com.fr.base.theme.settings.ThemedComponentStyle; |
|
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
|
import com.fr.design.dialog.AttrScrollPane; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.style.ComponentBodyStylePane; |
|
|
|
|
import com.fr.design.gui.style.ComponentIntegralStylePane; |
|
|
|
@ -113,7 +114,7 @@ public class ComponentStyleEditPane extends JPanel {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JComponent createTabContainer(final JComponent component) { |
|
|
|
|
private JComponent createTabContainer(final JPanel component) { |
|
|
|
|
JPanel container = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
container.setPreferredSize(new Dimension(container.getPreferredSize().width, 220)); |
|
|
|
|
|
|
|
|
@ -123,12 +124,12 @@ public class ComponentStyleEditPane extends JPanel {
|
|
|
|
|
tipLabelPane.add(tipLabel); |
|
|
|
|
container.add(tipLabelPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
JScrollPane scrollPane = new JScrollPane(component); |
|
|
|
|
scrollPane.setPreferredSize(new Dimension(container.getPreferredSize().width, 220)); |
|
|
|
|
scrollPane.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
|
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
|
|
|
|
|
|
|
|
container.add(scrollPane, BorderLayout.CENTER); |
|
|
|
|
container.add(new AttrScrollPane() { |
|
|
|
|
@Override |
|
|
|
|
protected JPanel createContentPane() { |
|
|
|
|
return component; |
|
|
|
|
} |
|
|
|
|
}, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
return container; |
|
|
|
|
|
|
|
|
|