Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an assignment in which I have to make to keyboards using netbeans in java
one is for urudu and other for English letters
Posted
Comments
Richard MacCutchan 30-Nov-15 4:37am    
And what is your question?
Member 12175319 30-Nov-15 4:50am    
my sir told me to make onscreen keyboard on netbeans using java
there should be two keyboards one for English other for urdu
Richard MacCutchan 30-Nov-15 4:52am    
You already told us that. So, I ask again, what is your question?

1 solution

C#
import javax.swing.*; 
 import java.awt.event.*; 
 public class YQuestions extends JFrame implements KeyListener 
 { 
 YQuestions(){ 
 setDefaultCloseOperation(EXIT_ON_CLOSE); 
 setSize(500,500); 
 addKeyListener(this); 
 setVisible(true); 
 } 
 public void keyPressed(KeyEvent ke){ 
 if(ke.isAltDown() && ke.getKeyCode()==KeyEvent.VK_R){ 
 new JOptionPane().showMessageDialog(this, "You pressed Alt-R"); 
 } 
 } 
 public void keyReleased(KeyEvent ke){} 
 public void keyTyped(KeyEvent ke){} 
 public static void main(String[] args){ 
 new YQuestions(); 
 } 
 } 

I took this from yahoo answers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900