Updated table properties with fine, coarse and userlevel values

git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@115 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
Jared Gould 2006-07-09 06:49:43 +00:00
parent 4831e0e699
commit 4539b0d9ee
2 changed files with 178 additions and 94 deletions

View File

@ -18,32 +18,32 @@
<Layout> <Layout>
<DimensionLayout dim="0"> <DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0"> <Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Component id="jPanel3" alignment="0" max="32767" attributes="0"/> <Group type="102" alignment="0" attributes="0">
<Component id="jPanel1" min="-2" max="-2" attributes="1"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jPanel2" max="32767" attributes="1"/>
</Group>
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Component id="jPanel1" alignment="0" min="-2" max="-2" attributes="1"/> <Component id="lblCategory" min="-2" max="-2" attributes="0"/>
<Group type="102" alignment="0" attributes="0"> <Component id="lblTable" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="lblTable" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="tableName" pref="161" max="32767" attributes="0"/>
</Group>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0"> <Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jPanel2" max="32767" attributes="1"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
<Component id="lblCategory" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="category" min="-2" max="-2" attributes="0"/> <Component id="category" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="110" max="-2" attributes="0"/>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="userLevel" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<Component id="tableName" pref="321" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
<Component id="jPanel3" alignment="0" max="32767" attributes="0"/>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
</Group> </Group>
@ -54,14 +54,19 @@
<Group type="102" attributes="0"> <Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0"> <Group type="103" groupAlignment="3" attributes="0">
<Component id="lblTable" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="tableName" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="tableName" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="lblTable" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="lblCategory" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="lblCategory" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="category" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="category" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="userLevel" alignment="3" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0"> <Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="jPanel2" min="0" pref="103" max="32767" attributes="1"/> <Component id="jPanel2" max="32767" attributes="1"/>
<Component id="jPanel1" alignment="0" max="32767" attributes="1"/> <Component id="jPanel1" alignment="0" max="32767" attributes="1"/>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
@ -114,49 +119,57 @@
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="lblUnit" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="lblByteToReal" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="lblRealToByte" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="14" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<Component id="lblUnit" min="-2" max="-2" attributes="0"/> <EmptySpace min="2" pref="2" max="2" attributes="0"/>
<EmptySpace min="-2" pref="48" max="-2" attributes="0"/>
<Component id="unit" min="-2" max="-2" attributes="0"/> <Component id="unit" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<Group type="102" alignment="0" attributes="0"> <Component id="byteToReal" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0"> <Component id="realToByte" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="lblByteToReal" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="coarse" min="-2" max="-2" attributes="0"/>
<Component id="lblRealToByte" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="fine" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="byteToReal" min="-2" max="-2" attributes="0"/>
<Component id="realToByte" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group> </Group>
<EmptySpace pref="43" max="32767" attributes="0"/> <EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
<DimensionLayout dim="1"> <DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="lblUnit" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="unit" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0"> <Group type="103" groupAlignment="1" attributes="0">
<Group type="102" alignment="1" attributes="0"> <Group type="102" alignment="1" attributes="0">
<Component id="lblByteToReal" min="-2" max="-2" attributes="0"/> <Component id="unit" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Component id="lblRealToByte" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<Component id="byteToReal" min="-2" max="-2" attributes="0"/> <Component id="byteToReal" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Component id="realToByte" min="-2" max="-2" attributes="0"/> <Component id="realToByte" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<Group type="102" alignment="1" attributes="0">
<Component id="lblUnit" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="lblByteToReal" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="lblRealToByte" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="coarse" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="fine" alignment="3" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -198,6 +211,26 @@
<Property name="focusable" type="boolean" value="false"/> <Property name="focusable" type="boolean" value="false"/>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="text" type="java.lang.String" value="Coarse adjust:"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="text" type="java.lang.String" value="Fine adjust:"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="coarse">
<Properties>
<Property name="text" type="java.lang.String" value="coarse"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="fine">
<Properties>
<Property name="text" type="java.lang.String" value="fine"/>
</Properties>
</Component>
</SubComponents> </SubComponents>
</Container> </Container>
<Container class="javax.swing.JPanel" name="jPanel2"> <Container class="javax.swing.JPanel" name="jPanel2">
@ -225,7 +258,7 @@
<Component id="storageSize" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="storageSize" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="storageAddress" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="storageAddress" alignment="0" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace pref="52" max="32767" attributes="0"/> <EmptySpace pref="28" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -247,7 +280,7 @@
<Component id="lblEndian" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="lblEndian" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="endian" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="endian" alignment="3" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace pref="8" max="32767" attributes="0"/> <EmptySpace pref="37" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -303,11 +336,7 @@
<Layout> <Layout>
<DimensionLayout dim="0"> <DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0"> <Component id="jScrollPane1" alignment="1" pref="360" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane1" pref="363" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
<DimensionLayout dim="1"> <DimensionLayout dim="1">
@ -357,5 +386,15 @@
</Container> </Container>
</SubComponents> </SubComponents>
</Container> </Container>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" value="User Level:"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="userLevel">
<Properties>
<Property name="text" type="java.lang.String" value="Beginner"/>
</Properties>
</Component>
</SubComponents> </SubComponents>
</Form> </Form>

View File

@ -15,10 +15,20 @@ public class TablePropertyPanel extends javax.swing.JPanel {
realToByte.setText(table.getScale().getByteExpression()); realToByte.setText(table.getScale().getByteExpression());
storageSize.setText("uint" + (table.getStorageType() * 8)); storageSize.setText("uint" + (table.getStorageType() * 8));
storageAddress.setText("0x" + Integer.toHexString(table.getStorageAddress())); storageAddress.setText("0x" + Integer.toHexString(table.getStorageAddress()));
if (table.getEndian() == Table.ENDIAN_BIG) endian.setText("big"); if (table.getEndian() == Table.ENDIAN_BIG) endian.setText("big");
else endian.setText("little"); else endian.setText("little");
description.setText(table.getDescription()); description.setText(table.getDescription());
System.out.println(table.getDescription()); fine.setText(table.getScale().getFineIncrement()+"");
coarse.setText(table.getScale().getCoarseIncrement()+"");
if (table.getUserLevel() == 1) userLevel.setText("Beginner");
else if (table.getUserLevel() == 1) userLevel.setText("Intermediate");
else if (table.getUserLevel() == 1) userLevel.setText("Advanced");
else if (table.getUserLevel() == 1) userLevel.setText("All");
else if (table.getUserLevel() == 1) userLevel.setText("Debug");
} }
private TablePropertyPanel() { } private TablePropertyPanel() { }
@ -36,6 +46,10 @@ public class TablePropertyPanel extends javax.swing.JPanel {
byteToReal = new javax.swing.JLabel(); byteToReal = new javax.swing.JLabel();
realToByte = new javax.swing.JLabel(); realToByte = new javax.swing.JLabel();
lblRealToByte = new javax.swing.JLabel(); lblRealToByte = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
coarse = new javax.swing.JLabel();
fine = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel();
lblStorageAddress = new javax.swing.JLabel(); lblStorageAddress = new javax.swing.JLabel();
lblStorageSize = new javax.swing.JLabel(); lblStorageSize = new javax.swing.JLabel();
@ -46,6 +60,8 @@ public class TablePropertyPanel extends javax.swing.JPanel {
jPanel3 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane(); jScrollPane1 = new javax.swing.JScrollPane();
description = new javax.swing.JTextArea(); description = new javax.swing.JTextArea();
jLabel5 = new javax.swing.JLabel();
userLevel = new javax.swing.JLabel();
setAutoscrolls(true); setAutoscrolls(true);
setFont(new java.awt.Font("Tahoma", 0, 12)); setFont(new java.awt.Font("Tahoma", 0, 12));
@ -81,44 +97,61 @@ public class TablePropertyPanel extends javax.swing.JPanel {
lblRealToByte.setText("Real to Byte:"); lblRealToByte.setText("Real to Byte:");
lblRealToByte.setFocusable(false); lblRealToByte.setFocusable(false);
jLabel1.setText("Coarse adjust:");
jLabel2.setText("Fine adjust:");
coarse.setText("coarse");
fine.setText("fine");
org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout); jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup( jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup() .add(jPanel1Layout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(lblUnit)
.add(lblByteToReal)
.add(lblRealToByte)
.add(jLabel1)
.add(jLabel2))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 14, Short.MAX_VALUE)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup() .add(jPanel1Layout.createSequentialGroup()
.add(lblUnit) .add(2, 2, 2)
.add(48, 48, 48)
.add(unit)) .add(unit))
.add(jPanel1Layout.createSequentialGroup() .add(byteToReal)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(realToByte)
.add(lblByteToReal) .add(coarse)
.add(lblRealToByte)) .add(fine))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(27, 27, 27))
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(byteToReal)
.add(realToByte))))
.addContainerGap(43, Short.MAX_VALUE))
); );
jPanel1Layout.setVerticalGroup( jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup() .add(jPanel1Layout.createSequentialGroup()
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblUnit)
.add(unit))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jPanel1Layout.createSequentialGroup() .add(jPanel1Layout.createSequentialGroup()
.add(lblByteToReal) .add(unit)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(lblRealToByte))
.add(jPanel1Layout.createSequentialGroup()
.add(byteToReal) .add(byteToReal)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(realToByte))) .add(realToByte))
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(jPanel1Layout.createSequentialGroup()
.add(lblUnit)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(lblByteToReal)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(lblRealToByte)))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel1)
.add(coarse))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel2)
.add(fine)))
); );
jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Storage")); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Storage"));
@ -155,7 +188,7 @@ public class TablePropertyPanel extends javax.swing.JPanel {
.add(endian) .add(endian)
.add(storageSize) .add(storageSize)
.add(storageAddress)) .add(storageAddress))
.addContainerGap(52, Short.MAX_VALUE)) .addContainerGap(28, Short.MAX_VALUE))
); );
jPanel2Layout.setVerticalGroup( jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
@ -172,7 +205,7 @@ public class TablePropertyPanel extends javax.swing.JPanel {
.add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblEndian) .add(lblEndian)
.add(endian)) .add(endian))
.addContainerGap(8, Short.MAX_VALUE)) .addContainerGap(37, Short.MAX_VALUE))
); );
jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Description")); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Description"));
@ -194,10 +227,7 @@ public class TablePropertyPanel extends javax.swing.JPanel {
jPanel3.setLayout(jPanel3Layout); jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup( jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel3Layout.createSequentialGroup() .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE)
.addContainerGap()
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE)
.addContainerGap())
); );
jPanel3Layout.setVerticalGroup( jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
@ -206,30 +236,35 @@ public class TablePropertyPanel extends javax.swing.JPanel {
.addContainerGap()) .addContainerGap())
); );
jLabel5.setText("User Level:");
userLevel.setText("Beginner");
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout); this.setLayout(layout);
layout.setHorizontalGroup( layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(layout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createSequentialGroup()
.add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lblCategory)
.add(layout.createSequentialGroup() .add(lblTable))
.add(lblTable) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(tableName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)))
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup() .add(layout.createSequentialGroup()
.add(category)
.add(110, 110, 110)
.add(jLabel5)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(userLevel))
.add(layout.createSequentialGroup() .add(tableName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)))
.add(29, 29, 29) .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.add(lblCategory)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(category)))))
.addContainerGap()) .addContainerGap())
); );
layout.setVerticalGroup( layout.setVerticalGroup(
@ -237,13 +272,17 @@ public class TablePropertyPanel extends javax.swing.JPanel {
.add(layout.createSequentialGroup() .add(layout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblTable)
.add(tableName) .add(tableName)
.add(lblTable))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblCategory) .add(lblCategory)
.add(category)) .add(category)
.add(jLabel5)
.add(userLevel))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(jPanel2, 0, 103, Short.MAX_VALUE) .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
@ -254,8 +293,13 @@ public class TablePropertyPanel extends javax.swing.JPanel {
// Variables declaration - do not modify//GEN-BEGIN:variables // Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel byteToReal; private javax.swing.JLabel byteToReal;
private javax.swing.JLabel category; private javax.swing.JLabel category;
private javax.swing.JLabel coarse;
private javax.swing.JTextArea description; private javax.swing.JTextArea description;
private javax.swing.JLabel endian; private javax.swing.JLabel endian;
private javax.swing.JLabel fine;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel5;
private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel3;
@ -273,5 +317,6 @@ public class TablePropertyPanel extends javax.swing.JPanel {
private javax.swing.JLabel storageSize; private javax.swing.JLabel storageSize;
private javax.swing.JLabel tableName; private javax.swing.JLabel tableName;
private javax.swing.JLabel unit; private javax.swing.JLabel unit;
private javax.swing.JLabel userLevel;
// End of variables declaration//GEN-END:variables // End of variables declaration//GEN-END:variables
} }