GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java Swing
Go To First  |  Previous Question  |  Next Question 
 Java Swing  |  Question 59 of 73    Print  
Which method is used to set the text of a Label object?
A) setText( )
B) setLabel( )
C) setTextLabel( )
D) setLabelText( )



  
Total Answers and Comments: 2 Last Update: October 26, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 31, 2006 21:59:00   
seemaprak        

RE: Which method is used to set the text of a Label ob...
A) setText( )

 
Is this answer useful? Yes | No
October 26, 2006 01:15:09   
MANISHA PATHAK        

RE: Which method is used to set the text of a Label ob...
setText() method is used to set the text of Label object
 
Is this answer useful? Yes | No

 Related Questions

A) java.awt.AWTEventB) java.awt.EventC) java.util.eventObjectD) javax.swing.ObjectExplanation: The java.awt.AWTEvent class is the highest-level class in the AWT event class hierarchy. 
Latest Answer : This is kind of a dicy question:But in Java the event heirarchy goes like :java.lang.object -> java.util.EventObject -> java.awt.AWTEvent.So the java.util.EventObject is the superclass of all events.But java.awt.AWTEvent is the superclass of all ...

A) A Canvas objectB) A Graphics objectC) An Image objectD) A paint object 
Latest Answer : Answer : > B) A Graphic Objecte.g public void paint(Graphics g)     {                g.drawString(20,20,"Hello");      } ...

A) CanvasB) ImageC) FrameD) Graphics  
Latest Answer : Canvasimage ...

A) North, South, East, WestB) Assign a row/column grid referenceC) Pass a X/Y percentage parameter to the add methodD) Do nothing, the FlowLayout will position the component 
Latest Answer : D ...

A) The default layout manager for an Applet is FlowLayoutB) The default layout manager for an application is FlowLayoutC) A layout manager must be assigned to an Applet before the setSize method is calledD) 
Latest Answer : Answer A) ...

A) setReadOnly()B) setEditOnly()C) setEditable()D) setTextReadOnly() 
Latest Answer : setEditable(false) ...

A) drawLine(int, int, int, int)B) drawImage(Image, int, int, ImageObserver)C) drawString(String, int, int)D) add(Component);E) setVisible(boolean);F) setLayout(Object); 
Latest Answer : Answer : > A),B),C) ...

A) The event-inheritance model has replaced the event-delegation model.B) The event-inheritance model is more efficient than the event-delegation model.C) The event-delegation model uses event listeners 
Latest Answer : C ...

When two or more objects are added as listeners for the same event, which listener is first invoked to handle the event?
A) The first object that was added as listener.B) The last object that was added as listener.C) There is no way to determine which listener will be invoked first.D) It is impossible to have more than one 

A) A component may handle its own events by adding itself as an event listener.B) A component may handle its own events by overriding its event-dispatching method.C) A component may not handle oits own 


 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
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

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
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

JavaScript Date Object

JavaScript Date Object In this JavaScript tutorial you will learn about date object and methods of date object explained along with syntax and example mosgoogle center JavaScript Date Object Usage of Date Object Date object of Java Script is used to work with date and times General syntax for defini
 

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape