Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

How to install Input Methods

Thread view: 
icepac - 20 Aug 2006 04:08 GMT
Greetings everybody,
I need to install input methods so they can be used by my swing
components.
I got some very nice chinese InputMethod from the following address :

http://www.chinesecomputing.com/programming/java.html#input

I get the library and I add the link to my project but I have no idea
how to use them in my project. From what I read, they should be used
automatically by any swing components whenever I switch to the
Simplified_Chinese locale.  But it doesn't seem to work.

Is there anything special I need to do to make them work ? Do I need to
implements any special events or stuff in my swing component ?
right now the only thing I do is change the locale using SetLocale.

Another strange detail.  When I use the GetInputContext method from my
swing component it returns null ... Is that normal ?

Any help appreciated, do not hesitate to ask for more details btw :)

Pascal
steve - 20 Aug 2006 07:32 GMT
> http://www.chinesecomputing.com/programming/java.html#input

why don't you try reading teh contents of hte web page you posted , instead
of just looking at it.

All the info you require is on the page.

Steve
icepac - 20 Aug 2006 16:07 GMT
> > http://www.chinesecomputing.com/programming/java.html#input
>
[quoted text clipped - 4 lines]
>
> Steve

Steve,
Of course I read and tried what is on that page.  In fact I even
contacted the author.  From what he's saying I should be able to access
the InputContext of my component by using getInputContext.  However
getInputContext returns null in my app...
Can anyone tell me what would cause getInputContext to return null and
how can I fix it ?

Thanx for the answers, plz keep it up ! I wanna solve this...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.