jbutton

  1. A

    Working with Panel in Java

    I have written a Java code.The following is my code... import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.*; public class Game extends Frame{ public Panel x; Panel pi,pi1,pi2,pi3,pi4; public Game(){ pi=new Panel(); add(pi); pi1=...
  2. abhinav_bipnesh

    Adding Keyboard Event to JButton

    Hi Guy, I have started learning Swing programming in java and for that i am creating a sample calculator application. For this i have made the JtextField a non focus object so when i click any of JButton textField take the input without any problem. Now i want to add keyboard event to these...
Top Bottom