Return « Event « Java Swing Q&A





1. data return between actionPerformed    coderanch.com

Hi, I has a main program which is JFrame, when a button click, I call another class to exlpore a Jframe which contain a textfield. My idea is when enter something in that textfield, the value can be stored,then that Jframe close, and then main program can get that value. However, this is not practical because the function in main class ...

2. KeyEvent.getKeyCode() returning 0    coderanch.com

3. no return- problem with actionlistener    java-forums.org

I'm trying to write a program that calculates tax for user inputted income and filing status. i've wrote everything so that the compiler proceeds without error, but upon running the program, nothing is returned. i'm thinking it is a problem with my action listener. help? Java Code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class Trying extends JFrame implements ...