in reply to Re^5: Help with JComboBox
in thread Help with JComboBox

Yes, this is one way of going about fixing it - I have also suggested doing something like:

my $mode = $cw->cget('-validate') || "none";

To ensure that there was a value. The thing is it should never have been left to default to undef like it had. I think my preferred fix would be to set a default from the very start ... say at line 207:

-validate => [qw/METHOD validate Validate none/],

It's worth mentioning that the newer versions of JComboBox don't have this problem. The newer version also has features that look like they would have helped folks who have posted here before.

This is probably the first time I've ever checked perlmonks for problems encountered with JComboBox -- I find it a little odd that the questions weren't posted to comp.lang.perl.tk, but I'm glad that folks were able to get help with it, or find better solutions.

Rob

Replies are listed 'Best First'.
Re^7: Help with JComboBox
by TonyDonker (Novice) on Feb 16, 2005 at 12:50 UTC
    Hi Rob,

    I am using "0.02" version of JCombobox.pm. Which is the latest version - right?

    Ton

      No - 1.02 is the latest version on CPAN. You might browse the documentation on CPAN, to see if it's worth your time to upgrade. There's even a section in the docs that mentions alternatives to JComboBox.

        This may also be an issue of which perl. I think most folks that are Win32 users will use ppm to download modules. I only have Theory and the ActiveState reps, and no one has upgraded that module for 5.8 build. I am wiser about looking on CPAN now, and if I have issues build it myself if the module doesn't work, but not everyone can. And, the user needs to beware that not all of the modules that are on the repositories work like they are supposed to either.