User Profile
Collapse
-
JOptionPane and KeyListener / keyPress???
I have changed my code since the last question. I get a dialog box and ShowDialogMessa ge popups. I have a loop that runs to take user input and does a calculation. While running the loop, It di=oesn't detect the keypressed or keyReleased , however if I run the program without the loop, it detects the keypressed and keyReleased and ends the program properly.I need to be pointed in the right direction so that intries in the popup boxes are handled... -
I want to change this code to take just the keypress of
...Code:package main; import java.awt.event.*; import javax.swing.*; import java.awt.*; /** * @author 16023 * */ public class Calc implements KeyListener{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub for (int repeat =1;
No activity results to display
Show More