Results 1 to 4 of 4
  1. #1
    singhkanhaiya is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default Not able to add text using xvkbd keyboard of Linux/Ubuntu on JRE6

    I am trying to add text in JTextField using Linux/Ubuntu "xvkbd" keyboard.

    Please follow the below steps to reproduce this issue.

    1. If not having xvkbd keyboard please install with below command
    apt-get install xvkbd
    2. After installation type xvkbd command on terminal. It will open the xvkdb keyboard.
    3. Run the below code textFieldText.java file.
    4. Click on the focus button of xvkbd keyboard and after that click in text field
    5. Trying entering some text in JtextField by clicking on xvkbd keyboard

    Observe that on JRE5 it is working fine but not on JRE6. Please suggest something to solve this issue.

    Below is the sample code.

    package com.focus;
    import javax.swing.JFrame;
    import javax.swing.JTextField;

    public class textFieldText {

    public static void main(String args[])
    {
    JFrame jf = new JFrame();
    JTextField txtF = new JTextField();
    jf.add(txtF);
    jf.pack();
    jf.setSize(200, 200);
    jf.setVisible(true);
    }
    }



    Regards,

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    This isn't really a Java problem. The problem is between the Java virtual machine, which is itself an application, and Linux, the operating system. Somehow, the JVM is not able to interpret this keyboard's input, as interpreted by Linux. I'd check on the Sun and Ubuntu forums.
    Last edited by Steve11235; 07-26-2009 at 05:08 AM. Reason: fix typo

  3. #3
    singhkanhaiya is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default

    Any idea to solve this issue. This issue is very critical for us.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,301
    Rep Power
    20

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  2. SWT is not working on ubuntu
    By shreedharghare in forum SWT / JFace
    Replies: 0
    Last Post: 12-17-2008, 05:21 PM
  3. Eclipse in Ubuntu
    By detcader in forum Eclipse
    Replies: 3
    Last Post: 12-13-2008, 01:23 AM
  4. Log rotation in ubuntu
    By sarah11 in forum New To Java
    Replies: 0
    Last Post: 11-04-2008, 07:46 AM
  5. Keyboard key are not working in solaris and linux.
    By dinesh kaushik in forum AWT / Swing
    Replies: 1
    Last Post: 12-22-2007, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •