You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
196 lines
15 KiB
196 lines
15 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<Form version="1.0" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
|
|
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
|
<SubComponents>
|
|
<Container class="javax.swing.JPanel" name="jPanel1">
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
|
<BorderConstraints direction="Center"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
|
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
|
<SubComponents>
|
|
<Container class="javax.swing.JSplitPane" name="jSplitPane1">
|
|
<Properties>
|
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
<Color blue="ff" green="ff" red="ff" type="rgb"/>
|
|
</Property>
|
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
<Border info="null"/>
|
|
</Property>
|
|
<Property name="dividerSize" type="int" value="3"/>
|
|
<Property name="orientation" type="int" value="0"/>
|
|
<Property name="resizeWeight" type="double" value="1.0"/>
|
|
<Property name="oneTouchExpandable" type="boolean" value="true"/>
|
|
</Properties>
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
|
<BorderConstraints direction="Center"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
|
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
|
|
<SubComponents>
|
|
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
|
|
<Properties>
|
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
<Color blue="ff" green="ff" red="ff" type="rgb"/>
|
|
</Property>
|
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
|
|
<LineBorder>
|
|
<Color PropertyName="color" blue="80" green="80" id="Text Inactive Text" palette="2" red="80" type="palette"/>
|
|
</LineBorder>
|
|
</Border>
|
|
</Property>
|
|
<Property name="horizontalScrollBarPolicy" type="int" value="31"/>
|
|
</Properties>
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_CreateCodePost" type="java.lang.String" value="jScrollPane1.getViewport().setBackground(Color.white);"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
|
|
<JSplitPaneConstraints position="left"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
|
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
|
<SubComponents>
|
|
<Component class="javax.swing.JTable" name="theTable">
|
|
<Properties>
|
|
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
|
|
<Table columnCount="4" rowCount="4">
|
|
<Column editable="true" title="Title 1" type="java.lang.Object"/>
|
|
<Column editable="true" title="Title 2" type="java.lang.Object"/>
|
|
<Column editable="true" title="Title 3" type="java.lang.Object"/>
|
|
<Column editable="true" title="Title 4" type="java.lang.Object"/>
|
|
</Table>
|
|
</Property>
|
|
<Property name="doubleBuffered" type="boolean" value="true"/>
|
|
<Property name="gridColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
<Color blue="c5" green="c5" red="c6" type="rgb"/>
|
|
</Property>
|
|
</Properties>
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new JTable()
 {
				public void editingStopped(ChangeEvent e) 
				{
					// Take in the new value
					TableCellEditor editor = getCellEditor();
					if (editor != null) 
					{
						Object value = editor.getCellEditorValue();
						setValueAt(value, editingRow, editingColumn);
						if(shouldRemove)
						{
							removeEditor();
							getSelectionModel().setSelectionInterval(editingRow, editingRow);
							getColumnModel().getSelectionModel().setSelectionInterval(editingColumn, editingColumn);
						}
						else
						{
							getSelectionModel().setSelectionInterval(editingRow, editingRow);
							getColumnModel().getSelectionModel().setSelectionInterval(editingColumn, editingColumn);
							
						}
						shouldRemove = false;
					}
				}
				
				
 //This method is a fix from http://www.codeguru.com/java/articles/180.shtml by Zafir Anjum, cheers!
 //this is required because there is a bug in JTable where the 
 //just saying tableScroll.setColumnHeader(null); does not work as it should
 //Unfortunately, it overrides a deprecated API, so let's hope they 
 //sort it out by Java 5.0, nice one Sun...
 protected void configureEnclosingScrollPane()
 {
 Container p = getParent();
 if (p instanceof JViewport)
 {
 Container gp = p.getParent();
 if (gp instanceof JScrollPane)
 {
 JScrollPane scrollPane = (JScrollPane)gp;
 // Make certain we are the viewPort's view and not, for
 // example, the rowHeaderView of the scrollPane -
 // an implementor of fixed columns might do this.
 JViewport viewport = scrollPane.getViewport();
 if (viewport == null || viewport.getView() != this)
 {
 return;
 }
 // scrollPane.setColumnHeaderView(getTableHeader());
 scrollPane.getViewport().setBackingStoreEnabled(true);
 scrollPane.setBorder(UIManager.getBorder("Table.scrollPaneBorder"));
 }
 }
 }
 
 };
 theTable.setModel(theModel);
 theTable.setSelectionMode(DefaultListSelectionModel.SINGLE_SELECTION);
 theTable.setRowSelectionAllowed(false);
 theTable.setColumnSelectionAllowed(false);
 theTable.setCellSelectionEnabled(true);"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="false"/>
|
|
</AuxValues>
|
|
</Component>
|
|
</SubComponents>
|
|
</Container>
|
|
<Container class="javax.swing.JPanel" name="jPanel3">
|
|
<Properties>
|
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
|
|
<LineBorder>
|
|
<Color PropertyName="color" blue="80" green="80" id="Inactive Caption" palette="2" red="80" type="palette"/>
|
|
</LineBorder>
|
|
</Border>
|
|
</Property>
|
|
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
<Dimension value="[10, 75]"/>
|
|
</Property>
|
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
<Dimension value="[100, 75]"/>
|
|
</Property>
|
|
</Properties>
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
|
|
<JSplitPaneConstraints position="right"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
|
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
|
<SubComponents>
|
|
<Component class="javax.swing.JTextArea" name="commentText">
|
|
<Properties>
|
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
<Color blue="cc" green="cc" id="Panel.background" palette="3" red="cc" type="palette"/>
|
|
</Property>
|
|
<Property name="columns" type="int" value="1"/>
|
|
<Property name="editable" type="boolean" value="false"/>
|
|
<Property name="lineWrap" type="boolean" value="true"/>
|
|
<Property name="wrapStyleWord" type="boolean" value="true"/>
|
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
<Border info="null"/>
|
|
</Property>
|
|
<Property name="doubleBuffered" type="boolean" value="true"/>
|
|
<Property name="focusable" type="boolean" value="false"/>
|
|
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
<Dimension value="[100, 75]"/>
|
|
</Property>
|
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
<Dimension value="[100, 75]"/>
|
|
</Property>
|
|
</Properties>
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="false"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
|
<BorderConstraints direction="Center"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
</Component>
|
|
<Component class="javax.swing.JLabel" name="commentLabel">
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="false"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
|
<BorderConstraints direction="North"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
</Component>
|
|
</SubComponents>
|
|
</Container>
|
|
</SubComponents>
|
|
</Container>
|
|
</SubComponents>
|
|
</Container>
|
|
<Container class="javax.swing.JPanel" name="topPanel">
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="false"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
|
<BorderConstraints direction="North"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
|
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
|
<SubComponents>
|
|
<Component class="javax.swing.JComboBox" name="theCombo">
|
|
<AuxValues>
|
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="false"/>
|
|
</AuxValues>
|
|
<Constraints>
|
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
|
<BorderConstraints direction="North"/>
|
|
</Constraint>
|
|
</Constraints>
|
|
</Component>
|
|
</SubComponents>
|
|
</Container>
|
|
</SubComponents>
|
|
</Form>
|