User Profile

Collapse

Profile Sidebar

Collapse
LeoDurf
LeoDurf
Last Activity: May 2 '20, 04:17 PM
Joined: May 1 '20
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • LeoDurf
    started a topic JOptionPane and KeyListener / keyPress???
    in Java

    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...
    See more | Go to post

  • 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;
    ...
    See more | Go to post
    Last edited by gits; May 2 '20, 09:45 AM. Reason: added code tags
No activity results to display
Show More
Working...