GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 115 of 923    Print  
How can a GUI component handle its own events
A component can handle its own events by implementing the required event-listenerinterface and adding itself as its own event listener.


  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

The preferred size of a component is the minimum component size that will allow thecomponent to display normally. 
Latest Answer : The preferred size of a component is the minimum component size that will allow the component to display normally. ...

It uses those low order bytes of the result that can fit into the size of the type allowed bythe operation. 
Latest Answer : In java there is no point of overflow and underflow, it was there in C. For avoiding that java introduces type casting. Java will allow some more space from the defult space of primtive type. ...

setBounds() 
Latest Answer : component.setBounds(-,-,-,-); ...

Name three Component subclasses that support painting.The Canvas, Frame, Panel, and Applet classes support painting.

Most of the AWT-related events of the event-delegation model are defined in thejava.awt.event package. The AWTEvent class is defined in the java.awt package. 

Name three subclasses of the Component class.Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, orTextComponent

The event-delegation model has two advantages over the event-inheritance model. First,it enables event handling to be handled by objects other than the ones that generate the events (or their containers). 

A component can handle its own events by implementing the required event-listenerinterface and adding itself as its own event listener. 

Component 

What is the difference between the JDK 1.02 event model and the event-delegationmodel introduced with JDK 1.1
The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model,components are required to handle their own events. If they do not handle a particularevent, the event is inherited 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Component Assembly Model

Introduction Before the concept of SDLC, different software programs were built to cater to different business and consumer needs. That was decades ago and it’s safe to say that millions of programs have been created for different reasons, for different needs. Developers always work on a
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

JavaScript Events Handling

JavaScript Events Handling In this JavaScript tutorial you will learn about handling events in JavaScript what is event handling in JavaScript events in JavaScript events associated with mouse onmousemove onclick ondblclick onmouseout onmouseover events associated with keyboard onkeydown onkeyup onk
 

Java Technology Trends

Technology Trends Involving Java Java is an object oriented programming language OOP for Web browsers It is organized around data rather than actions and supports polymorphism which allows the same code to be written generically so it can function with different datatypes inheritance which allows on
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape