InputMethodWindow / linux focus managment

I created an InputMethod which uses context.createInputMethodWindow("my input method")
to create a window that holds a virtual keyboard.
On windows2000, everything work great.
When the user types a key on the virtual keyboard, the keyboard does not get the focus
(which is what I expect) and so I can find the current focus owner (such as a JTextfield),
generate a KeyEvent which I dispatch through the focus manager.
However, on linux, it doesn't work.
When the user types a key, the focus is taken away from the current focus owner (such as
a JTextField). The virtual keyboard in the input method window doesn't get the focus.
Instead it tells me that nothing has focus.
Does anyone know if this is due to the Xwindow manager (KDE) or is it due to a bug
in the virtual machine? Any ideas of how to work around it?
I was hoping to use linux in our deployed system.
Thanks,
Paul Bade

i am doing the same work. Can you post the code of virtual keyboard and how you are finding which window is having focus among all the visible windows? I am having the same focus problems with linux OS
i would appreciate please send a mail to [email protected]
thanks

Similar Messages

  • Focus Management Problems in JDK 1.4.0

    Hallo all,
    I have a severe problem in focus management. I inherited an applet designed in JDK 1.2.2 using focus events to generate calls in the correcponding server application. Now I'm trying to port this applet to JDK 1.4.0 for some good reasons such as character sets for eastern europe. But the focus management is complety changed and all attempts where stopped by bugs and workarounds for bugs in JDK 1.2.2 which are not valid in JDK 1.4.0.
    At the moment I'm searching a way to veto all focus events generated before "now" but accepting all generated after "now". Unfortunately no time stamps were supported for FocusEvents. By the way, "now" is the situation I find the server call while executing a focusLost on a component.
    Have anybody an idea how I can build a VetoableChangeListener blocking all FocusEvents generated before a special moment?
    Thanks for kinds of hints or answers!
    Werner

    The problem you are having is that jdev doesn't support the new beta..I have the same problem and I am currently compiling and executing from the command line
    I heard there is a workaround but I have never found it
    sorry

  • [flexcoders] Error #2025 - UIMovieclip and Focus Manager

    Hello Everybody,
    I'm getting a runtime Error #2025 when I try to use an UIMovieclip into a Flex Application.
    The issue happens when the key tab is pressed and It seems has being caused by the Focus Manager.
    I found some threads over the internet but nothing really concret that could give me some idea about how to solve it.
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/getChildIndex()
    at mx.core::Container/getChildIndex()
    at mx.containers::Panel/getChildIndex()
    at fl.managers::FocusManager/::getChildIndex()
    at fl.managers::FocusManager/::sortByDepth()
    at fl.managers::FocusManager/::sortByTabIndex()
    at Array$/Array::_sort()
    at Array/http://adobe.com/AS3/2006/builtin::sort()
    at fl.managers::FocusManager/::sortFocusableObjectsTabIndex()
    at fl.managers::FocusManager/::sortFocusableObjects()
    at fl.managers::FocusManager/::keyDownHandler()
    Any help will be welcome
    Best Regards,
    Eduardo Dias

    I don't know if we've figured this out yet.  If you can come up with a simple test case, file a bug so we can take a look.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Focus manager - transfer focus problem

    Hi,
    Have three main components in my application that handles the tab and shift tab orders through a focus manager
    The problem arises when I open a dialog window and have a bunch of TextFields and the focus manager is looking at my tabs. My Dialog components is nothing to do with my main components so I had to return true or false for my handleTab and handleShiftControlTab methods to tell me weather it's one of my main components. In other words, return ture if one of my main focused component and false otherwise
    In the processKeyEvent method, the code for transfer focus doesn't work.
    I'am trying to say if it's one of my main handle focus components, consume the key event because it was handle by the tab methods, otherwise the focus component should transfer focus to the next component
    The problem is focusedComponent.transferFocus() is not doing anything.
    What could be the problem?
    Thanks
    Abraham Khalil
    public class MyFocusManager extends FocusManager {
       public MyFocusManager() {
          super();
       private StoreTree getStoreTree() {
          return MainFrame.getInstance().getStoreTree();
       private MessageTable getMessageTable() {
          return MainFrame.getInstance().getMessageTable();
       private MailContentPanel getMailContentPanel() {
          return MainFrame.getInstance().getMailContentPanel();
       private void setStoreTreeFocus() {
          StoreTree storeTree = getStoreTree();
          storeTree.requestFocus();
          storeTree.selectLastSelection();
       private boolean setMessageTableFocus() {
          MessageTable messageTable = getMessageTable();
          if (messageTable.getRowCount() > 0) {
             messageTable.setSelections(true);
             messageTable.requestFocus();
             return true;
          else {
             return false;
       private void setMailContentPanelFocus() {
          MailContentPanel mailContentPanel = getMailContentPanel();
          mailContentPanel.requestFocus();
       private boolean handleTab(Component focusedComponent) {
          if (focusedComponent instanceof StoreTree) {
             if (!setMessageTableFocus()) {
                focusedComponent.requestFocus();
             return true;
          else
          if (focusedComponent instanceof MessageTable) {
             setMailContentPanelFocus();
             return true;
          else
          if (focusedComponent instanceof MailContentPanel) {
             setStoreTreeFocus();
             return true;
          else {
             return false;
       private boolean handleShiftControlTab(Component focusedComponent) {
          if (focusedComponent instanceof StoreTree) {
             setMailContentPanelFocus();
             return true;
          else
          if (focusedComponent instanceof MailContentPanel) {
             if (!setMessageTableFocus()) {
                focusedComponent.requestFocus();
             return true;
          else
          if (focusedComponent instanceof MessageTable) {
             setStoreTreeFocus();
             return true;
          else {
             return false;
        * Override processKeyEvent() to force the tab/shift-tab to the next/previous
        * component that I desire in the application
       public void processKeyEvent(Component focusedComponent, KeyEvent e) {
          if (e.getKeyChar() == KeyEvent.VK_TAB && e.getID() == KeyEvent.KEY_TYPED) {
             boolean myHandleFocusComponent = false;
             if (e.isShiftDown() || e.isControlDown()) {
                myHandleFocusComponent = handleShiftControlTab(focusedComponent);
             else {
                myHandleFocusComponent = handleTab(focusedComponent);
             if (myHandleFocusComponent) {
                e.consume();
             else {
                // Doesn't do transfer to next component?
                focusedComponent.transferFocus();
          else {
             super.processKeyEvent(focusedComponent, e);

    Can you please do some screen grabs to illustrate the problem?
    My thoughts go to the possibility of your editing a JPEG that JPEG decompression "block" artifacts, or maybe a pattern of noise in your image.
    I just tried selecting a subject using the new feature then doing a Refine Edge and didn't see a problem...
    -Noel

  • WBFS Manager Errors (wiithon / linux-wbfs-manager)

    I am trying to get these applications to run in order to manage my Wii backups but am having trouble.
    Wiithon returns what i believe is a python error :
    An exit code of 1 was returned from /usr/share/wiithon/wiithon.py
    There was no output
    There was no error message
    linux-wbfs-manager runs ok without privelages, but then i cant access my drives.
    when i try and run as sudo or root it returns:
    No protocol specified
    (wbfs_gtk:1632): Gtk-WARNING **: cannot open display: :0.0
    i think i read its a permissions error, but I am never sure which to set and how properly to do it. 
    Ive seen
    chmod
    and export=<something er other>
    Last edited by jewnersey (2011-12-25 14:06:59)

    fixed it.
    found another thread that export XAUTHORITY..... and it worked after.
    can someone explain

  • Custom Focus Manager implementation

    Is there an example anywhere that demonstrates creating your
    own Focus Manager for a container so that you can control focus
    management at the conatiner level?

    cat8888,
    In general, tab-order is usaually the order you've added to the Panel / JPanel. When Panel is added to Panel and that to Panel and so on, sometimes the order can become less clear. When "trapped" inside a TextArea / JTextArea, the tab key takes on it's own meaning and now it wants to tab inside the TextArea. For this, you'll need special coding. For example, you might try adding code like this:
    myTextAreaObject.addKeyListener( new KeyAdapter() {
    public void keyPressed(KeyEvent ke) {
    if ( ke.getKeyCode() == ke.VK_TAB ) {
    myNextButtonObject.requestFocus();
    ... which effectively forces focus on - in this case - the JButton following the JTextArea.
    Not sure if this is what you mean, but HTH. And by the way, if someone has a neater way t odo this, I'd also like to know.
    ~Bill

  • OES Linux DHCP Management Quesiton

    Previously, under Netware, I could use the DNS/DHCP console to match ip to machine hostname; however, I'm noticing that I do not have this ability under OES Linux's DHCP management utility. I looked in the leases file on the linux server but to my dismay it only displays the mac address.
    What are my options?

    Originally Posted by gwcisco
    Previously, under Netware, I could use the DNS/DHCP console to match ip to machine hostname; however, I'm noticing that I do not have this ability under OES Linux's DHCP management utility. I looked in the leases file on the linux server but to my dismay it only displays the mac address.
    What are my options?
    Your only option (as far as I am aware--and if I understand you correctly) is to go with OES 2 SP 3, follow TID 7006450, and that is about it. The information is coming from the leases file itself. Unfortunately, you can't get 100% of what you were used to on NetWare on OES. Many things have been ported over, but some things have not.

  • Linux WWAN manager needed for Satellite M505-S4945

    Hi
    I am searching software wwan manager M505 -S4945 for a Linux. Because my modem is not detect in ubuntu. If you can soft for Linux..i really needed...thank's

    Hello
    From Toshiba there is no software for Linux because only Windows is supported but maybe external programs will work and you can find something for your modem and Ubuntu.
    Everything what I have found is an article about useful Linux websites. Maybe its useful:
    [Do you know some useful website for Linux support on PC? |http://forums.computers.toshiba-europe.com/forums/ann.jspa?annID=14]

  • X4200 Linux - RAID Management Utility?  CLI?

    Hello,
    Is anyone aware of any utility or CLI tool, for Linux, to view/manage the current configuration/settings of the RAID on an X4200 running Linux?
    I've looked around, but haven't been able to find anything... Might it be from Sun, or LSI Logic, or anywhere else. There's drivers available for the LSISAS1064, but that seems to be it.
    Having to reboot to view this information is just a tad annoying. ;)
    Regards,

    In case anyone might be interested...
    Sun's answer to the question basically is: LSI has not released any utility that allows RAID configuration from within Linux, so the only thing that can be done, is basically for LSi to release something... Sun took care of Solaris x86 (raidctl), but for Linux/Windows, it's up to LSI.
    sigh Oh well.
    Message was edited by:
    pmorin411

  • Focus manager is not working in Flash lite 4.0

    Hi,
    I am working on development of UI components in flash lite 4.0. And i am using Focusmanger class to handle focus of all components present in the stage. I don't have any issues when the component is running in flash player 10. But i am getting some issues if i test the same component in deceive central.
    Eg: I will place 2 combobox component on a stage. Focus first combobox and click enter list items will open.
    I will try to navigate between the combo item. At the last combo item focus is going outside the component. As per the requirement focus should not go outside until user clicks enter again. Looking for valuable solution for this.

    There is no way to know what will change in the future. This
    is the solution that works now. It will probably remain in place
    for the reasonable future.

  • How to create a custom focus manager in jdk1.4

    Dear All,
    I'm now trying to create a form for user to submit data. The key tab are easily to tab between textfields in html, you can set whatever order you want. But when I tried to create a form using java, I found very hard to do so. Any reference link and examples are appreciate.
    Thanks in advance
    Kitty

    cat8888,
    In general, tab-order is usaually the order you've added to the Panel / JPanel. When Panel is added to Panel and that to Panel and so on, sometimes the order can become less clear. When "trapped" inside a TextArea / JTextArea, the tab key takes on it's own meaning and now it wants to tab inside the TextArea. For this, you'll need special coding. For example, you might try adding code like this:
    myTextAreaObject.addKeyListener( new KeyAdapter() {
    public void keyPressed(KeyEvent ke) {
    if ( ke.getKeyCode() == ke.VK_TAB ) {
    myNextButtonObject.requestFocus();
    ... which effectively forces focus on - in this case - the JButton following the JTextArea.
    Not sure if this is what you mean, but HTH. And by the way, if someone has a neater way t odo this, I'd also like to know.
    ~Bill

  • Installation Error Linux Metadata Management XI 3.1

    Hi everybody
    I have a situation when install the BOMM on linux.
    Enter the SAP BusinessObjects Enterprise installation directory:
    > /bobj/boxi/
    ERROR
      No installation of SAP BusinessObjects Enterprise XI 3.1 could be found at the specified path.Please try again.
    the path
    /bobj/boxi/
    Version
    BOE XI 3.1 SP3
    BOMM XI 3.1
    Thanks you for your help.

    BOMM Unix Installer is not able to detect the BOE Version for SP3, you can try the following workaround
    go to enterprise120 directory and take backup of the ProductId.txt file
    and modify the BuildVersion to following
    BuildVersion=12.2.0.290.BOE_Titan_SP_REL
    run the BOMM Installer, it will work, on completion restore the original productId.txt
    take necessary backup
    or the best thing would be to file a case with Support, looks like BOMM is not certified with BOE SP3 on Linux/Unix
    I don't see this issue on windows

  • Focus management for JTable (J2SE 1.4)

    hi,
    I am using J2SE 1.4 currently. Java 1.4 defines JTables as FocusCycleRoots. That is, when they are tabbed into, focus becomes "trapped" within them, so the Tab key in a JTable causes the focus to traverse to the next cell. But I want give the focus to the next component (e.g JButton, JTextField, etc.), not one of its cells.
    Anybody knows how solve this problem? Thanks a lot.

    isManagingFocus is deprecated in 1.4 so it's probably best not to use that.
    Also, JTable isn't actually a focus cycle root. It's simply operating on the key bindings that it has by default. That is, TAB moves the selection from cell to cell and Ctrl-TAB moves to the next focusable component (after the JTable).
    I think the recommended way to approach it is to set the focus traversal keys something like this
    // get your table from somewhere
    JTable table = new JTable();
    // use java.awt.AWTKeyStroke to set up the appropriate focus
    // traversal keys
    AWTKeyStroke tab = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_TAB, 0);
    AWTKeyStroke shiftTab = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_TAB, KeyEvent.SHIFT_DOWN_MASK);
    AWTKeyStroke ctrlTab = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_TAB, KeyEvent.CTRL_DOWN_MASK);
    AWTKeyStroke ctrlShiftTab = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_TAB, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK);
    // create a java.util.Set for forwards and backwards focus traversal
    // keys. The actual concrete Set you use probably doesn't matter.
    // I've used a java.util.HashSet
    HashSet forwardKeys = new HashSet();
    HashSet backwardKeys = new HashSet();
    // add the appropriate keys to the appropriate sets
    forwardKeys.add(tab);
    forwardKeys.add(ctrlTab);
    backwardKeys.add(shiftTab);
    backwardKeys.add(ctrlShiftTab);
    // set the focus traversal keys on the table.
    table.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, forwardKeys);
    table.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, backwardKeys);

  • Focus management problem

    i have got a textarea . I am setting the focus in it by doing textarea.grabFocus() . but sometimes it gets the focus and some times it doesnt . Please help me out in this.

    if still not working try textArea.setRequestFocusEnabled(true); and then try requestFocus();

  • [1.1.0.22.71 - Linux] Focus lost when prompting for password

    Hi,
    I used to have the same problem on 1.0 from time to time, but with 1.1 it happens every time.
    The problem: When I try to open a connection whose password has NOT been saved, I get two windows: one "progress bar" titled "Connecting to ...", and another dialog titled "Connection Information" prompting me to enter the password. However, the cursor is nowhere to be seen; the keyboard doesn't work at all (neither Enter nor ESC close the dialog); clicking on the edit boxes or blind typing has no effect. Clicking OK then inevitably results in a message saying "A password is required" so the only way out is by clicking "Cancel".
    The only workaround I've found so far was pasting the password using the mouse (middle button).
    There are no exceptions on the console.
    SQL Developer is running on RH Linux:
    os.version     2.4.21-9.ELsmp
    I'm working on an HP/UX workstation and using an X session to the Linux server.
    I've never experienced this problem on the WindowsXP laptop.
    Looking forward to your help,
    Flado

    Marcus,
    is this a standard numeric data, or is this 5502.73 in local form with the"," instead of the "."
    B
    I want to try and get this today as there was another post on exporting in territories other than AMERICA

Maybe you are looking for

  • Trace back item category in service order

    Hi all a few days ago I came across an issue which I presume is PP related. the issue is , while doing 'dp90'(intially gets created with 'iw31') , I got an error message saying combination of zdr leis sein and l2w does not define an item category.  I

  • Payment term baseline date in SD

    Hi, all:    In the configuration of payment term, there are four criteria for baseline date:    no defalut date; entry date; docuemnt date; posting date.    For SD receivable items, what the "entry date" and "docuemtn date" respectively stand for whe

  • Safari download problem with Safari but not with Internet Explorer.

    When I drag photos from web-sites via Int.Explorer they end up on my desktop as little pictures. I can see what they are. When I do it with Safari they end up as pages with a turned corner & JPEG at the bottom. The only way to see what they are is to

  • LEGACY TO IDOC

    •     Legacy to SAP interface: Developed the Interface in XI where in (Legacy) is sending invoice data to SAP. Using File/idoc adapters Here, the actual content of the invoice data is in the text format for which I have to send it to SAP system so I

  • User Properties and registration

    Hi 1) Is possible add properties to the user details directly with a wizard or i must write pl/sql code to make the form to do this ?? 2) Exits in the Standard portal a registration Form or i must write pl/sql code to make the form to do this ?? thks