Rev 87 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 87 | Rev 89 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?xml version="1.0" encoding="UTF-8" ?> |
1 | <?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 | ||
3 | <Form version="1.3" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> |
3 | <Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> |
4 | <Properties> |
4 | <Properties> |
5 | <Property name="defaultCloseOperation" type="int" value="3"/> |
5 | <Property name="defaultCloseOperation" type="int" value="3"/> |
6 | <Property name="title" type="java.lang.String" value="LWTT"/> |
6 | <Property name="title" type="java.lang.String" value="LWTT"/> |
7 | </Properties> |
7 | </Properties> |
8 | <SyntheticProperties> |
8 | <SyntheticProperties> |
Line 10... | Line 10... | ||
10 | </SyntheticProperties> |
10 | </SyntheticProperties> |
11 | <Events> |
11 | <Events> |
12 | <EventHandler event="windowClosing" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="windowClosing"/> |
12 | <EventHandler event="windowClosing" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="windowClosing"/> |
13 | </Events> |
13 | </Events> |
14 | <AuxValues> |
14 | <AuxValues> |
- | 15 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> |
|
15 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> |
16 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> |
- | 17 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> |
|
- | 18 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> |
|
16 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> |
19 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> |
17 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> |
20 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> |
18 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> |
21 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> |
19 | </AuxValues> |
22 | </AuxValues> |
20 | 23 | ||
Line 59... | Line 62... | ||
59 | <Component id="stopButton" min="-2" max="-2" attributes="0"/> |
62 | <Component id="stopButton" min="-2" max="-2" attributes="0"/> |
60 | <EmptySpace max="-2" attributes="0"/> |
63 | <EmptySpace max="-2" attributes="0"/> |
61 | <Component id="addButton" min="-2" max="-2" attributes="0"/> |
64 | <Component id="addButton" min="-2" max="-2" attributes="0"/> |
62 | <EmptySpace max="-2" attributes="0"/> |
65 | <EmptySpace max="-2" attributes="0"/> |
63 | <Component id="removeButton" min="-2" max="-2" attributes="0"/> |
66 | <Component id="removeButton" min="-2" max="-2" attributes="0"/> |
- | 67 | <EmptySpace max="-2" attributes="0"/> |
|
- | 68 | <Component id="resetButton" min="-2" max="-2" attributes="0"/> |
|
64 | <EmptySpace pref="310" max="32767" attributes="0"/> |
69 | <EmptySpace pref="251" max="32767" attributes="0"/> |
65 | </Group> |
70 | </Group> |
66 | </Group> |
71 | </Group> |
67 | </DimensionLayout> |
72 | </DimensionLayout> |
68 | <DimensionLayout dim="1"> |
73 | <DimensionLayout dim="1"> |
69 | <Group type="103" groupAlignment="0" attributes="0"> |
74 | <Group type="103" groupAlignment="3" attributes="0"> |
70 | <Component id="startButton" alignment="3" pref="25" max="32767" attributes="0"/> |
75 | <Component id="startButton" alignment="3" pref="25" max="32767" attributes="0"/> |
71 | <Component id="stopButton" alignment="3" pref="25" max="32767" attributes="0"/> |
76 | <Component id="stopButton" alignment="3" pref="25" max="32767" attributes="0"/> |
72 | <Component id="addButton" alignment="3" pref="25" max="32767" attributes="0"/> |
77 | <Component id="addButton" alignment="3" pref="25" max="32767" attributes="0"/> |
73 | <Component id="removeButton" alignment="3" pref="25" max="32767" attributes="0"/> |
78 | <Component id="removeButton" alignment="3" pref="25" max="32767" attributes="0"/> |
- | 79 | <Component id="resetButton" alignment="3" pref="25" max="32767" attributes="0"/> |
|
74 | </Group> |
80 | </Group> |
75 | </DimensionLayout> |
81 | </DimensionLayout> |
76 | </Layout> |
82 | </Layout> |
77 | <SubComponents> |
83 | <SubComponents> |
78 | <Component class="javax.swing.JButton" name="startButton"> |
84 | <Component class="javax.swing.JButton" name="startButton"> |
Line 105... | Line 111... | ||
105 | </Properties> |
111 | </Properties> |
106 | <Events> |
112 | <Events> |
107 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="removePressed"/> |
113 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="removePressed"/> |
108 | </Events> |
114 | </Events> |
109 | </Component> |
115 | </Component> |
- | 116 | <Component class="javax.swing.JButton" name="resetButton"> |
|
- | 117 | <Properties> |
|
- | 118 | <Property name="text" type="java.lang.String" value="Reset"/> |
|
- | 119 | </Properties> |
|
- | 120 | <Events> |
|
- | 121 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="resetPressed"/> |
|
- | 122 | </Events> |
|
- | 123 | </Component> |
|
110 | </SubComponents> |
124 | </SubComponents> |
111 | </Container> |
125 | </Container> |
112 | <Container class="javax.swing.JScrollPane" name="jScrollPane1"> |
126 | <Container class="javax.swing.JScrollPane" name="jScrollPane1"> |
113 | <Properties> |
127 | <Properties> |
114 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> |
128 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> |
115 | <Dimension value="[454, 400]"/> |
129 | <Dimension value="[454, 400]"/> |
116 | </Property> |
130 | </Property> |
117 | <Property name="verifyInputWhenFocusTarget" type="boolean" value="false"/> |
131 | <Property name="verifyInputWhenFocusTarget" type="boolean" value="false"/> |
118 | <Property name="viewport" type="javax.swing.JViewport" editor="org.netbeans.modules.form.ComponentChooserEditor"> |
- | |
119 | <ComponentRef name="null"/> |
- | |
120 | </Property> |
- | |
121 | </Properties> |
132 | </Properties> |
122 | <AuxValues> |
133 | <AuxValues> |
123 | <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> |
134 | <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> |
124 | </AuxValues> |
135 | </AuxValues> |
125 | <Constraints> |
136 | <Constraints> |
Line 135... | Line 146... | ||
135 | <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor"> |
146 | <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor"> |
136 | <Connection code="model" type="code"/> |
147 | <Connection code="model" type="code"/> |
137 | </Property> |
148 | </Property> |
138 | </Properties> |
149 | </Properties> |
139 | <AuxValues> |
150 | <AuxValues> |
140 | <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
jTable1.setDefaultRenderer(Long.class, new DefaultTableCellRenderer() {
 private Color fg = Color.RED;
 private Color bg = new Color(255, 240, 240);
 
 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
 Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
 if (JLabel.class.isAssignableFrom(c.getClass())) {
 ((JLabel) c).setHorizontalAlignment(JLabel.TRAILING);
 }
 
 if (model.isRunning(row)) {
 c.setForeground(fg);
 if (!isSelected)
 c.setBackground(bg);
 }
 else {
 c.setForeground(Color.BLACK);
 if (!isSelected)
 c.setBackground(Color.WHITE);
 }
 
 return c;
 }
});"/> |
151 | <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
jTable1.setDefaultRenderer(StringBuffer.class, new DefaultTableCellRenderer() {
 private Color fg = Color.RED;
 private Color bg = new Color(255, 240, 240);
 
 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
 Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
 
 if (JLabel.class.isAssignableFrom(c.getClass())) {
 ((JLabel) c).setHorizontalAlignment(JLabel.TRAILING);
 }
 
 if (model.isRunning(row)) {
 c.setForeground(fg);
 if (!isSelected)
 c.setBackground(bg);
 }
 else {
 c.setForeground(Color.BLACK);
 if (!isSelected)
 c.setBackground(Color.WHITE);
 }
 
 return c;
 }
});"/> |
141 | </AuxValues> |
152 | </AuxValues> |
142 | </Component> |
153 | </Component> |
143 | </SubComponents> |
154 | </SubComponents> |
144 | </Container> |
155 | </Container> |
145 | </SubComponents> |
156 | </SubComponents> |