Swinging on-screen keyboard

I am working on a KIOSK system in Java on Windows XP. And you need to make an on-screen keyboard. I have no idea how to do this. So guys please help me do this. Someone has an idea about this. thanks

+5
source share
2 answers

I implemented OSK in SWT and AWT for my company.

We initialize the OSk layout using an ini file, you can define the keyboard layout (size, font, how the keyboard looks, the key and the action of the key)

, ini . . , . , , .

- . OSK- . Robot FocusManager .

SWT , AWT .

+4

, java/swing... - , , , , :

public class FullScreen extends JWindow {

    public FullScreen()
    {

      getContentPane().add(new JLabel("A JFrame Kiosk"), BorderLayout.NORTH);

      JButton closeButton = new JButton("Close");

      closeButton.addActionListener( new ActionListener()
          {
              public void actionPerformed( ActionEvent ae )
              {
                  System.out.println("Close button Pressed");
                  FullScreen.this.setVisible(false);
                  System.exit(0);
              }
          });
      getContentPane().add(closeButton, BorderLayout.CENTER);
    }

    public static void main(String[] args) throws Exception {

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {      
                GraphicsEnvironment.
                    getLocalGraphicsEnvironment().
                        getDefaultScreenDevice().
                            setFullScreenWindow(new FullScreen());
              }
        });
    }
}
-1

All Articles