In the beginning of my Java code I have:
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.*;
import javax.swing.*;
And then I have the following:
public class KeyEventDemo extends JFrame
implements KeyListener,
ActionListener
I am trying to understand what the code does. And I started from the beginning. For example I want to know there the class JFrame is defined (I think it belong either to "java.awt.event" or "javax.swing" package. I also would like to see hot the interface KeyListener is defined.
My problem is that I do not know where to find the corresponding source code. I tried the following:
locate event | grep awt
Nothing was found. Can anybody help we with that, pleas.