|
-
General question about interface
Hi Guys!
I have been studying Java for a month by book and its going prety well (until now... ). I just started to learn about interface in general and the MouseListener biside, but I think I didnt get to the bottom yet.
They wrote an applet for example and I have a question about it: the idie is to make a little square where the mouse is clicked. They made two .java files, one for the Listener and one for the main applet. in the Listener they made a class that extends the MouseAdapter (???).
My questions are:
1. Why did they had to use 2 files and couldnt made just one?
2. what is this MouseAdapter? (I guess its an object, but what is it excactly??)
3. Does anyone know where can I read more about Interface?
* I didnt want to write the code lines because its prety long, but I will do it if it helps.
Thanks!
Itay.
Similar Threads
-
Replies: 9
Last Post: 04-18-2002, 05:15 PM
-
By SINNI in forum VB Classic
Replies: 3
Last Post: 06-18-2001, 12:35 PM
-
Replies: 2
Last Post: 05-14-2001, 09:52 AM
-
By Aravind in forum VB Classic
Replies: 1
Last Post: 05-02-2001, 04:29 PM
-
By Kevin Burton in forum .NET
Replies: 12
Last Post: 10-09-2000, 10:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks