in reply to Re^4: Help with JComboBox
in thread Help with JComboBox
$mode must be undefined and as a result, issues that warning.my $mode = $cw->cget('-validate'); if ($mode =~ /match/) { $cw->configure(-validate => 'none'); }
And that will fix the warning. If you are using -validate make sure you aren't pointing to an undef value. All the code does is set -validate to 'none' if it is set to 'match'. It is in the SetSelectedIndex subroutine.my $mode = $cw->cget('-validate'); if (defined $mode && $mode =~ /match/) { # <== change $cw->configure(-validate => 'none'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Help with JComboBox
by rcseege (Pilgrim) on Feb 16, 2005 at 10:52 UTC | |
by TonyDonker (Novice) on Feb 16, 2005 at 12:50 UTC | |
by rcseege (Pilgrim) on Feb 16, 2005 at 22:25 UTC | |
by JamesNC (Chaplain) on Feb 17, 2005 at 02:19 UTC | |
by Rob Seegel (Initiate) on Feb 17, 2005 at 11:36 UTC | |
|
Re^6: Help with JComboBox
by TonyDonker (Novice) on Feb 15, 2005 at 07:57 UTC |