From b48903459877b5a0bb25c59697567df5fcf38267 Mon Sep 17 00:00:00 2001 From: amontano Date: Sun, 7 Sep 2003 03:39:08 +0000 Subject: [PATCH] Fixed a call to a deprecated method --- source/org/thdl/tib/input/ConvertDialog.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/org/thdl/tib/input/ConvertDialog.java b/source/org/thdl/tib/input/ConvertDialog.java index 1177c0c..a89ea95 100644 --- a/source/org/thdl/tib/input/ConvertDialog.java +++ b/source/org/thdl/tib/input/ConvertDialog.java @@ -71,12 +71,10 @@ class ConvertDialog extends JDialog public void theRealActionPerformed(ActionEvent e) { ConvertDialog.this.theRealActionPerformed(e); }}; - private void updateWarningLevels() { - if (choices.getSelectedItem() == ACIP_TO_UNI_TEXT - || choices.getSelectedItem() == ACIP_TO_TMW) - this.warningLevels.enable(); - else - this.warningLevels.disable(); + private void updateWarningLevels() + { + this.warningLevels.setEnabled(choices.getSelectedItem() == ACIP_TO_UNI_TEXT + || choices.getSelectedItem() == ACIP_TO_TMW); } private void init() {