ComponentListener « Event « Java Swing Q&A





1. Why/When ComponentListener.componentShown() get invoked?    stackoverflow.com

Why this code never prints "Hello2" ?

public class Test4 {

    public static void main(String[] args) {
        JFrame f = new ...

2. Java - Swing / AWT ComponentListener unexpected behaviour    stackoverflow.com

Got a problem with ComponentListener. I'm using it to check if a certain component is resized, and to update some stuff if it is. The code looks like this though this probably ...

3. How to listen componentShown/componentHidden events better than ComponentListener?    stackoverflow.com

I want to be informed if componentShown/componentHidden event occured. I use ComponentListener, but it doesn't work as good as I need. I have found this information in official Swing tutorial:

...

4. Swing ComponentListener.componentShown is not fired    stackoverflow.com

I would like to get the (Graphics g) when the WorldPanel is shown. Thanks to stackoverflow I saw the answer where should I use the getGraphics method (ComponentListener.componentShown), but somehow my ...

5. ComponentListener()    coderanch.com

6. Issue with ComponentListener    coderanch.com