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