package org.tianocore.frameworkwizard.platform.ui;\r
\r
import java.awt.BorderLayout;\r
-import javax.swing.BoxLayout;\r
\r
import javax.swing.JPanel;\r
import javax.swing.JTabbedPane;\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
-import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;\r
\r
import java.io.File;\r
import java.util.ArrayList;\r
\r
private final int twoRowHeight = 40;\r
\r
- private final int threeRowHeight = 60;\r
-\r
private final int sepHeight = 6;\r
\r
private final int sepWidth = 10;\r
\r
private final int firstButtonLoc = next2LastButtonLoc - buttonWidth - sepWidth;\r
\r
- private final int starColumn = 2;\r
-\r
private final int labelColumn = 12;\r
\r
private final int fieldColumn = 168;\r
\r
private JPanel jPanelSectionN = null;\r
\r
- private JPanel jPanelSectionC = null;\r
-\r
private JPanel jPanelSectionsN = null;\r
\r
- private JPanel jPanelSectionsC = null;\r
-\r
private JPanel jPanelSubSectionN = null;\r
\r
- private JPanel jPanelSubSectionC = null;\r
-\r
private JPanel jPanelOptionsContainer = null;\r
\r
private JPanel jPanelUserDefCenterN = null;\r
\r
- private JPanel jPanelUserDefCenterC = null;\r
-\r
/**\r
* This method initializes jPanel \r
* \r
private JScrollPane getJScrollPaneFfsSection() {\r
if (jScrollPaneFfsSection == null) {\r
jScrollPaneFfsSection = new JScrollPane();\r
- jScrollPaneFfsSection.setPreferredSize(new java.awt.Dimension(500, 80));\r
+// jScrollPaneFfsSection.setPreferredSize(new java.awt.Dimension(500, 80));\r
jScrollPaneFfsSection.setViewportView(getJTableFfsSection());\r
}\r
return jScrollPaneFfsSection;\r
private JScrollPane getJScrollPaneFfsSubSection() {\r
if (jScrollPaneFfsSubSection == null) {\r
jScrollPaneFfsSubSection = new JScrollPane();\r
- jScrollPaneFfsSubSection.setPreferredSize(new java.awt.Dimension(500, 90));\r
+// jScrollPaneFfsSubSection.setPreferredSize(new java.awt.Dimension(500, 90));\r
jScrollPaneFfsSubSection.setViewportView(getJTableFfsSubSection());\r
}\r
return jScrollPaneFfsSubSection;\r
private JScrollPane getJScrollPaneFfsSections() {\r
if (jScrollPaneFfsSections == null) {\r
jScrollPaneFfsSections = new JScrollPane();\r
- jScrollPaneFfsSections.setPreferredSize(new java.awt.Dimension(500, 80));\r
+// jScrollPaneFfsSections.setPreferredSize(new java.awt.Dimension(500, 80));\r
jScrollPaneFfsSections.setViewportView(getJTableFfsSections());\r
}\r
return jScrollPaneFfsSections;\r
jPanelFfsCTop = new JPanel();\r
jPanelFfsCTop.setLayout(new BorderLayout());\r
jPanelFfsCTop.add(getJPanelSectionN(), java.awt.BorderLayout.NORTH);\r
- jPanelFfsCTop.add(getJPanelSectionC(), java.awt.BorderLayout.CENTER);\r
+ jPanelFfsCTop.add(getJScrollPaneFfsSection(), java.awt.BorderLayout.CENTER);\r
}\r
return jPanelFfsCTop;\r
}\r
jPanelFfsCBottomTop = new JPanel();\r
jPanelFfsCBottomTop.setLayout(new BorderLayout());\r
jPanelFfsCBottomTop.add(getJPanelSectionsN(), java.awt.BorderLayout.NORTH);\r
- jPanelFfsCBottomTop.add(getJPanelSectionsC(), java.awt.BorderLayout.CENTER);\r
+ jPanelFfsCBottomTop.add(getJScrollPaneFfsSections(), java.awt.BorderLayout.CENTER);\r
}\r
return jPanelFfsCBottomTop;\r
}\r
jPanelFfsCBottomBottom = new JPanel();\r
jPanelFfsCBottomBottom.setLayout(new BorderLayout());\r
jPanelFfsCBottomBottom.add(getJPanelSubSectionN(), java.awt.BorderLayout.NORTH);\r
- jPanelFfsCBottomBottom.add(getJPanelSubSectionC(), java.awt.BorderLayout.CENTER);\r
+ jPanelFfsCBottomBottom.add(getJScrollPaneFfsSubSection(), java.awt.BorderLayout.CENTER);\r
}\r
return jPanelFfsCBottomBottom;\r
}\r
return jPanelSectionN;\r
}\r
\r
- /**\r
- * This method initializes jPanelSectionC \r
- * \r
- * @return javax.swing.JPanel \r
- */\r
- private JPanel getJPanelSectionC() {\r
- if (jPanelSectionC == null) {\r
- jPanelSectionC = new JPanel();\r
- jPanelSectionC.add(getJScrollPaneFfsSection(), null);\r
- }\r
- return jPanelSectionC;\r
- }\r
-\r
/**\r
* This method initializes jPanelSectionsN \r
* \r
return jPanelSectionsN;\r
}\r
\r
- /**\r
- * This method initializes jPanelSectionsC \r
- * \r
- * @return javax.swing.JPanel \r
- */\r
- private JPanel getJPanelSectionsC() {\r
- if (jPanelSectionsC == null) {\r
- jPanelSectionsC = new JPanel();\r
- jPanelSectionsC.add(getJScrollPaneFfsSections(), null);\r
- }\r
- return jPanelSectionsC;\r
- }\r
-\r
/**\r
* This method initializes jPanelSubSectionN \r
* \r
return jPanelSubSectionN;\r
}\r
\r
- /**\r
- * This method initializes jPanelSubSectionC \r
- * \r
- * @return javax.swing.JPanel \r
- */\r
- private JPanel getJPanelSubSectionC() {\r
- if (jPanelSubSectionC == null) {\r
- jPanelSubSectionC = new JPanel();\r
- jPanelSubSectionC.add(getJScrollPaneFfsSubSection(), null);\r
- }\r
- return jPanelSubSectionC;\r
- }\r
-\r
/**\r
* The following section contains all Build Options content\r
*/\r
vArch.add("ARM");\r
vArch.add("PPC");\r
jTableOptions.getColumnModel().getColumn(2).setCellEditor(new ListEditor(vArch));\r
+ \r
+ jTableOptions.getColumnModel().getColumn(5).setCellEditor(new LongTextEditor());\r
+ \r
jTableOptions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
+ jTableOptions.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
jTableOptions.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\r
public void valueChanged(ListSelectionEvent e) {\r
selectedRow = -1;\r
return jPanelUserDefCenterN;\r
}\r
\r
- /**\r
- * This method initializes jPanelUserDefCenterC \r
- * \r
- * @return javax.swing.JPanel \r
- */\r
- private JPanel getJPanelUserDefCenterC() {\r
- if (jPanelUserDefCenterC == null) {\r
- jPanelUserDefCenterC = new JPanel();\r
- jPanelUserDefCenterC.add(getJScrollPaneAntTasks(), null);\r
- }\r
- return jPanelUserDefCenterC;\r
- }\r
-\r
/**\r
* This method initializes jPanel8 \r
* \r
jPanelUserDefCenter.setLayout(new BorderLayout());\r
\r
jPanelUserDefCenter.add(getJPanelUserDefCenterN(), java.awt.BorderLayout.NORTH);\r
- jPanelUserDefCenter.add(getJPanelUserDefCenterC(), java.awt.BorderLayout.CENTER);\r
+ jPanelUserDefCenter.add(getJScrollPaneAntTasks(), java.awt.BorderLayout.CENTER);\r
}\r
return jPanelUserDefCenter;\r
}\r