1. GUI in java, private classes for listener not working stackoverflow.comI am trying to make a GUI in Java, using something along these lines:
|
2. Java KeyListener in inner class doesn't get the event for some reason stackoverflow.comI have a class that has a KeyListener class nested into it, but the event doesn't seem to register. I am pretty new to Java, so i might be doing something ... |
3. Listener inner class confusion coderanch.comHi All! I'm implementing a tree selection listener, and I want the anonymous inner class I created to call a method of the outer class. There's nothing in "getting in touch with your inner class" about calling methods of the outer class. When I try to call the method, the compiler complains that my inner class has no such method. What ... |
4. Why implement actionlistener as an inner class coderanch.comHello, I am trying to learn about implementing JavaHelp in a program by reading the JavaHelp demo programs. I do not understand why they are doing something in particular. I am not experienced with listeners or inner classes and hope it is apparent to someone who is, why they implemented it this way. Here is one part of the code that ... |
5. Two separate classes (not inner classes) and ActionListener question coderanch.comCould someone tell me if the following is possible? And if it is, could you help explain what needs to be done? /* * TabDemo.java */ import java.awt.*; public class TabDemo { public static void main(String[] args) { ... } class DeleteButtonListener extends ActivityTab implements ActionListener { public void actionPerformed(ActionEvent eD) { JOptionPane.showMessageDialog(null,"worked!"); } } } The deletebutton is in the ... |
6. Events from inner components. coderanch.com |
7. Calling 2 methods in an inner class using ActionListener coderanch.comHi, I am currently writing a small program for an assignment.I have it working fine but i have a question regarding inner classes implementing ActionListener . I am basically wondering if this is ok to do, although it works, i think it looks a bit strange? class TimerListener implements ActionListener { @Override // opens karteSchliessen() and whoIsPlaying(); public void actionPerformed(ActionEvent e) ... |