B4J Library QuickTextSelect - Based on Levenshtein Distance

Discussion in 'B4J Libraries & Classes' started by jmon, May 26, 2016.

  1. jmon

    jmon Well-Known Member Licensed User

    Hello,

    Preview.jpg

    I found the autoCompleteText function from controlsFX library a bit too slow, so I wrote this class. This class can be attached to any control, is very fast, and is based on the Levenshtein Distance algorithm.

    You can use the UP/DOWN arrows to select the text, then press ENTER to validate. If the text doesn't exist in the list, it will return the new text.

    Comment & critics welcomed!

    Jmon

     

    Attached Files:

    Last edited: May 27, 2016
    keirS, Peter Simpson, giga and 5 others like this.
  2. jmon

    jmon Well-Known Member Licensed User

  3. giga

    giga Well-Known Member Licensed User

    Good Work jmon! I will give it a try.
     
    jmon likes this.
  4. jmon

    jmon Well-Known Member Licensed User

    I attached the compiled library in the first post.
     
  5. AHilton

    AHilton Active Member Licensed User

    I'm not getting a scroll of the list with the up or down arrow keys.
     
  6. gyulaszabo

    gyulaszabo New Member Licensed User

    What did I do wrong ?

    B4J version: 4.70
    Parsing code. Error
    Error parsing program.
    Error description: Unknown type: reflector
    Are you missing a library reference?
    Occurred on line: 60 (QuickTextSelect)
    Dim Obj As Reflector
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    You need to download jReflection library and check it in the libraries tab.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice