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

    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 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.setSize(200, 200);


  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    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 06:08 AM. Reason: fix typo

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


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

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 05:05 AM
  2. SWT is not working on ubuntu
    By shreedharghare in forum SWT / JFace
    Replies: 0
    Last Post: 12-17-2008, 06:21 PM
  3. Eclipse in Ubuntu
    By detcader in forum Eclipse
    Replies: 3
    Last Post: 12-13-2008, 02:23 AM
  4. Log rotation in ubuntu
    By sarah11 in forum New To Java
    Replies: 0
    Last Post: 11-04-2008, 08: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, 05: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