accent problem on Searchable components

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

accent problem on Searchable components

Postby andrednasoftware » Wed Nov 28, 2012 7:03 am

Hi,

When try to type a character like " á é â " in a Searchable component, the accent is ommited.
It only appear if is the first typed character to search.
It seems to occur only on Windows platform, i've tried on Unix (Ubuntu 12.04) and it works.

//code used to make a searchable combobox
SearchableUtils.installSearchable(someJComboBox);
andrednasoftware
 
Posts: 18
Joined: Fri Jul 01, 2011 4:42 pm

Re: accent problem on Searchable components

Postby JIDE Support » Wed Nov 28, 2012 9:50 am

Please try to invoke Searchable#setCaseSensitive(true) or override Searchable#compare(Object, String) to alter the default behavior. You could use the following code to get the Searchable instance.
Code: Select all
        new ComboBoxSearchable(combobox);

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: accent problem on Searchable components

Postby andrednasoftware » Wed Nov 28, 2012 10:17 am

I've tried to setCaseSensitive(true), but no success.
I don't know what to do with Searchable#compare(Object, String), my problem seems to be on the moment that i've typed the text to search.
Try the following:

1- Open an application with a Searchble ComboBox instance;
2- Click on it to gain focus;
3- Type any character and then type an '^' followed by 'a'. Normally it will produce a 'â' character, but it doesn't happen.

Thanks,
andrednasoftware
 
Posts: 18
Joined: Fri Jul 01, 2011 4:42 pm

Re: accent problem on Searchable components

Postby JIDE Support » Wed Nov 28, 2012 11:39 am

Could you please let me know the keyboard you are using? I could use ` + 'a' to type in à with United States International Keyboard but not the way how you input â. Also did you ever input it correctly in other Swing components like JTextField?

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: accent problem on Searchable components

Postby andrednasoftware » Wed Nov 28, 2012 11:57 am

My keyboard layout is Portuguese (Brazil - ABNT2).
I never had problem inputting characters like this in other Swing components.
This behavior only happened on Windows (in my case Windows XP SP3), testing in Unix (Ubuntu) works fine.
andrednasoftware
 
Posts: 18
Joined: Fri Jul 01, 2011 4:42 pm

Re: accent problem on Searchable components

Postby JIDE Support » Wed Nov 28, 2012 1:57 pm

Reproduced and will keep you posted when we figure out how we could solve the issue.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: accent problem on Searchable components

Postby andrednasoftware » Thu Jan 31, 2013 12:08 pm

Hi,

Just to know if there is a prevision for solving this problem.
Thanks.
andrednasoftware
 
Posts: 18
Joined: Fri Jul 01, 2011 4:42 pm

Re: accent problem on Searchable components

Postby JIDE Support » Thu Jan 31, 2013 1:02 pm

Sorry that no progress here yet.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 13 guests