|
|
|
@ -8,6 +8,8 @@ import com.fr.design.event.ChangeEvent;
|
|
|
|
|
import com.fr.design.event.ChangeListener; |
|
|
|
|
import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
|
import com.fr.design.widget.WidgetBoundsPaneFactory; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
@ -68,7 +70,12 @@ public class TemplateThemeGridPane<T extends TemplateTheme> extends BasicPane {
|
|
|
|
|
contentListPane.setLayout(new GridLayout(0, BLOCK_COUNT_ROW_LINE, BLOCK_GAP, BLOCK_GAP)); |
|
|
|
|
fillContentListPane(); |
|
|
|
|
|
|
|
|
|
UIScrollPane scrollPane = new UIScrollPane(contentListPane); |
|
|
|
|
JPanel wrapper1 = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
wrapper1.add(contentListPane, BorderLayout.NORTH); |
|
|
|
|
JPanel wrapper2 = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
wrapper2.add(wrapper1, BorderLayout.WEST); |
|
|
|
|
|
|
|
|
|
UIScrollPane scrollPane = new UIScrollPane(wrapper2); |
|
|
|
|
scrollPane.setPreferredSize(new Dimension(CONTENT_WIDTH, CONTENT_HEIGHT)); |
|
|
|
|
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); |
|
|
|
|
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
|
|
|