1.1 --- a/tasklist.core/src/org/netbeans/modules/tasklist/core/Bundle.properties Fri Feb 21 16:51:38 2003 +0000
1.2 +++ b/tasklist.core/src/org/netbeans/modules/tasklist/core/Bundle.properties Fri Feb 21 17:35:17 2003 +0000
1.3 @@ -121,3 +121,4 @@
1.4 #High priority of a task
1.5 PriorityHigh=High
1.6
1.7 +
2.1 --- a/tasklist.core/src/org/netbeans/modules/tasklist/core/Task.java Fri Feb 21 16:51:38 2003 +0000
2.2 +++ b/tasklist.core/src/org/netbeans/modules/tasklist/core/Task.java Fri Feb 21 17:35:17 2003 +0000
2.3 @@ -40,11 +40,11 @@
2.4 /** Keys for the Bundle.properties */
2.5 private static final String[] PRIORITIES_KEYS = {
2.6 "PriorityUndefined",
2.7 - "PriorityLow",
2.8 + "PriorityHigh",
2.9 + "PriorityMediumHigh",
2.10 + "PriorityMedium",
2.11 "PriorityMediumLow",
2.12 - "PriorityMedium",
2.13 - "PriorityMediumHigh",
2.14 - "PriorityHigh"
2.15 + "PriorityLow"
2.16 };
2.17
2.18 /** Names for priorities */
3.1 --- a/tasklist.usertasks/src/org/netbeans/modules/tasklist/usertasks/EditTaskPanel.form Fri Feb 21 16:51:38 2003 +0000
3.2 +++ b/tasklist.usertasks/src/org/netbeans/modules/tasklist/usertasks/EditTaskPanel.form Fri Feb 21 17:35:17 2003 +0000
3.3 @@ -166,6 +166,9 @@
3.4 <ResourceString bundle="org/netbeans/modules/tasklist/usertasks/Bundle.properties" key="AssociatedFile" replaceFormat="NbBundle.getMessage(EditTaskPanel.class, "{key}")); // NOI18N"/>
3.5 </Property>
3.6 </Properties>
3.7 + <Events>
3.8 + <EventHandler event="itemStateChanged" listener="java.awt.event.ItemListener" parameters="java.awt.event.ItemEvent" handler="fileCheckBoxItemStateChanged"/>
3.9 + </Events>
3.10 <Constraints>
3.11 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
3.12 <GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="11" insetsLeft="0" insetsBottom="0" insetsRight="12" anchor="17" weightX="0.0" weightY="0.0"/>
3.13 @@ -175,6 +178,7 @@
3.14 <Component class="javax.swing.JTextField" name="fileTextField">
3.15 <Properties>
3.16 <Property name="columns" type="int" value="100"/>
3.17 + <Property name="editable" type="boolean" value="false"/>
3.18 </Properties>
3.19 <Constraints>
3.20 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
3.21 @@ -196,6 +200,7 @@
3.22 </Component>
3.23 <Component class="javax.swing.JTextField" name="lineTextField">
3.24 <Properties>
3.25 + <Property name="editable" type="boolean" value="false"/>
3.26 <Property name="horizontalAlignment" type="int" value="4"/>
3.27 </Properties>
3.28 <Constraints>
3.29 @@ -226,7 +231,7 @@
3.30 </Properties>
3.31 <Constraints>
3.32 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
3.33 - <GridBagConstraints gridX="-1" gridY="-1" gridWidth="7" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="11" insetsLeft="0" insetsBottom="0" insetsRight="12" anchor="10" weightX="0.0" weightY="0.0"/>
3.34 + <GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="11" insetsLeft="0" insetsBottom="0" insetsRight="12" anchor="10" weightX="0.0" weightY="0.0"/>
3.35 </Constraint>
3.36 </Constraints>
3.37 </Component>
4.1 --- a/tasklist.usertasks/src/org/netbeans/modules/tasklist/usertasks/EditTaskPanel.java Fri Feb 21 16:51:38 2003 +0000
4.2 +++ b/tasklist.usertasks/src/org/netbeans/modules/tasklist/usertasks/EditTaskPanel.java Fri Feb 21 17:35:17 2003 +0000
4.3 @@ -58,6 +58,9 @@
4.4 // Create a new item with the given suggested parent
4.5 this.parent = parent;
4.6 initComponents();
4.7 +
4.8 + priorityComboBox.setSelectedIndex(3);
4.9 +
4.10 format = new SimpleDateFormat();
4.11
4.12 // Initialize the Categories list
4.13 @@ -292,12 +295,19 @@
4.14 add(opt2Label, gridBagConstraints);
4.15
4.16 fileCheckBox.setText(NbBundle.getMessage(EditTaskPanel.class, "AssociatedFile")); // NOI18N);
4.17 + fileCheckBox.addItemListener(new java.awt.event.ItemListener() {
4.18 + public void itemStateChanged(java.awt.event.ItemEvent evt) {
4.19 + EditTaskPanel.this.fileCheckBoxItemStateChanged(evt);
4.20 + }
4.21 + });
4.22 +
4.23 gridBagConstraints = new java.awt.GridBagConstraints();
4.24 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
4.25 gridBagConstraints.insets = new java.awt.Insets(11, 0, 0, 12);
4.26 add(fileCheckBox, gridBagConstraints);
4.27
4.28 fileTextField.setColumns(100);
4.29 + fileTextField.setEditable(false);
4.30 gridBagConstraints = new java.awt.GridBagConstraints();
4.31 gridBagConstraints.gridwidth = 7;
4.32 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
4.33 @@ -312,6 +322,7 @@
4.34 gridBagConstraints.insets = new java.awt.Insets(11, 0, 0, 12);
4.35 add(lineLabel, gridBagConstraints);
4.36
4.37 + lineTextField.setEditable(false);
4.38 lineTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
4.39 gridBagConstraints = new java.awt.GridBagConstraints();
4.40 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
4.41 @@ -335,7 +346,6 @@
4.42 dueDateTextField.setEditable(false);
4.43 dueDateTextField.setEnabled(false);
4.44 gridBagConstraints = new java.awt.GridBagConstraints();
4.45 - gridBagConstraints.gridwidth = 7;
4.46 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
4.47 gridBagConstraints.insets = new java.awt.Insets(11, 0, 0, 12);
4.48 add(dueDateTextField, gridBagConstraints);
4.49 @@ -358,8 +368,8 @@
4.50 gridBagConstraints = new java.awt.GridBagConstraints();
4.51 gridBagConstraints.gridx = 0;
4.52 gridBagConstraints.gridy = 7;
4.53 + gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
4.54 gridBagConstraints.insets = new java.awt.Insets(11, 0, 0, 12);
4.55 - gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
4.56 add(addLabel, gridBagConstraints);
4.57
4.58 beginningToggle.setText(NbBundle.getMessage(EditTaskPanel.class, "BeginningList")); // NOI18N();
4.59 @@ -388,6 +398,12 @@
4.60
4.61 }//GEN-END:initComponents
4.62
4.63 + private void fileCheckBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_fileCheckBoxItemStateChanged
4.64 + boolean s = fileCheckBox.isSelected();
4.65 + fileTextField.setEditable(s);
4.66 + lineTextField.setEditable(s);
4.67 + }//GEN-LAST:event_fileCheckBoxItemStateChanged
4.68 +
4.69 /**
4.70 * Callback function to enable / disable the due-date fields
4.71 * @param evt the callback event