1. Passing events to parent stackoverflow.comI'd like to create an app where some events are supposed to be handled as if they were delivered to parent containers. For example I've got a JPanel which contains JLabel. ... |
2. Allowing parent to process mouse event if event was not consumed by child stackoverflow.comI have this frame: Here is what happens:
|
3. Java inline class calling method in parent class stackoverflow.comI'm working on a little Swing application and am in need of some assistance. I have an inline class for a MouseListener and inside one of the methods I would like ... |
4. Dynamic child communication stackoverflow.comBackground: I have a JPanel (PanelCarga extends JPanel) that displays as many sub-JPanels (DatosArchivo extends JPanel) as files I wish to open (n DatosArchivo panels) in my program for diferent purposes. ... |
5. Handling Child events in Parent? coderanch.comseems several options are possible: panel1 "show panel2" button . implement actionlistener as anonymous inner class . implement special actionListener class . associate an AbstractAction-derived class . etc parent can also be the listener for this component... possible panel2 display strategy . if layout/screen real estate is fixed, you could instantiate an invisible panel2, and have the button trigger _setVisible can ... |
6. Parent class event listener coderanch.comI have a main gui that calls out a form for the user to fill out as a child class. I want the parent class(main gui) to know when the user clicks a button, so I was wondering if it's possible to create an event listener connected to the button from the parent class. I made the button public and could ... |
7. Events for addition/deletion of components from their parents coderanch.comHello, I looking for a way to receive events when components are added/removed from their containers. Hopefully in the swing event will contain the component being added and their parent component. This is going to be a 3rd party tool (monitoring application) and thus extending JPanel/JFrame/JDialog and overriding the add/delete/remove methods of those classes is not possible. Thanks, Jim |
8. want to forward MouseEvents from child to parent component coderanch.comCould someone please help me with this little sample app. I'm trying to figure out how to forward MouseEvents from a child component (JTextArea) to the parent component (the contentPane). The contentpane is simply noting xy coordinates. When I move my cursor over the child component, it gets the focus and thinks I want to provide input. But I don't! I ... |
9. Pass Events to another child of parent coderanch.com |
10. How to invoke action in parent coderanch.comHi. I seeking how to implement this beahavior: I have form, with JTextField(s). I added some new beahvior to text field (MyJTextField) - it turns yellow, after any edit and it can be asked if it was edited. But I don't want to ask if the field was edited myself and then do some action - for example disable navigate buttons. ... |