Java component class

Java component class

Which method of the Component class is used to set the position and size of a component?
View Answers

October 27, 2010 at 1:05 PM

Hi,

Here is the answer.

setBounds() Method of the Component class is used to set the position and size of a component.

Thanks.









Related Tutorials/Questions & Answers:
Java component class
Java component class  Which method of the Component class is used to set the position and size of a component
Java component
Java component  What is the preferred size of a component
Advertisements
Component gui - Java Beginners
Component gui  Can you give me an example of Dialog in java Graphical... class DialogPaneDemo { public static void main(String[] args...://www.roseindia.net/java/example/java/swing/ Thanks
Java class
Java class  What is the purpose of the Runtime class
Container or Component - Java Beginners
about the realtionship between Components and Containers in Java GUI? 1) a component is a subclass of a container which means any container can hold a component 2) a component is allowed to hold other components including containers. 3
java class
java class  write a java program to display a msg "window closing" when the user attempts to close the window.(a) create a window class (b) create frame within the window class (c) extends window adapter class to display the msg
java class
java class  please send me the answer of the question which i have send according of java class assoon as possible . Write a java program to display.... a. Create a window class. b. Create frame within the window class. c. Extend
JSlider Component of Java Swing
JSlider Component of Java Swing     ... component of Java Swing. A Slider is a Swing tool which you can use for selecting.... In this program, events on the JSlider component have also been shown. If you increase
Java inner class and static nested class
Java inner class and static nested class  Java inner class and static nested class
Making a component drag gable in java
Making a Component Draggable in Java   ... components should be the swing component. This class is helpful to copy from one...(): This is the method of the TransferHandler class which makes the component able
Create a JComboBox Component in Java
Create a JComboBox Component in Java   ... Component of swing in java. The JComboBox is used to display drop-down list...(Color) and setForeground(Color) method of the JComboBox class. When you select
Java Class Size
Java Class Size  How to determine size of java class
Java inner class
Java inner class  What are inner class and anonymous class
class method in java
class method in java  How to write a class method in Java?   You must read Java - Class, Object and Methods in Java
Java dictionary class
Java dictionary class  What is the Dictionary class
Java adapter class
Java adapter class  What is adapter class
Create a JSpinner Component in Java
Create a JSpinner Component in Java   ... a JSpinner component of swing. The JSpinner provides the up-down arrow buttons which... an appropriate JSpinner component on the frame. The following figure shows that:ADS
Example of HashMap class in java
Example of HashMap class in java. The HashMap is a class in java collection framwork. It stores values in the form of key/value pair. It is not synchronized
Java class file
Java class file  How do i open a java class file using eclipse
java anonymous class
java anonymous class  Can an anonymous class be declared as implementing an interface and extending a class
Version of com.craterdog.maven-parent-poms>java-component dependency
List of Version of com.craterdog.maven-parent-poms>java-component dependency
Java nested class example
Java nested class example  Give me any example of Nested Class.   Nested Class: Class defined within another class is called nested class. Nested class is divided into two parts- 1.Static 2.Non-static Static
converting java class to java fx class
converting java class to java fx class   i am working on a java project which would convert text to speech and speech to text. i have developed a java file that would work for text to speech. it is working fine as a .java file
java object class methods
java object class methods  What are the methods in Object class?  There are lots of methods in object class. the list of some methods are as- clone equals wait finalize getClass hashCode notify notifyAll
Java System class
Java System class  What is the purpose of the System class
abstact class - Java Beginners
abstact class  write a java program to implement an animal abstact class
Java math class
Java math class  Can you instantiate the Math class
java Math class
java Math class  Why are the methods of the Math class static
Java file class
Java file class  What is the purpose of the File class
Java abstract class
Java abstract class  Can an abstract class be final
java class - Java Beginners
java class  How to run a java class(Mail.java) automatically in tomcat server for a particular time
What is Calendar class in Java?
What is Calendar class in Java?  Hi, What is Calendar class in Java? I want to learn about this class to make use of it in Java programs. Thanks   Hi, java.util.Calendar is an abstract class in Java and its static
The nested class - Java Beginners
The nested class  Hi, What is nested class in Java? What is the benefits of nested class? Write examples of nested class. Thanks   .../java/n/java-nested-class.shtml Thanks
to create a java class and methods
to create a java class and methods  How to create a java class without using the library class to represent linked lists of integers and also provide it with methods that can be used to reverse a list & append two lists.Also
Abstract class and interface in Java
Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between an interface and an abstract class: At the same time multiple interfaces can
How to create a class in java
How to create a class in java  I am a beginner in programming and tried to learn how to do programming in Java. Friends please explain how can I create a class in Java
Class and method question, Java?
Class and method question, Java?  Consider a Java class that you could use to get an acceptable integer value from the user. An object of this class.... implement the class in Java c. Write some Java statements that test the class
Create a JList Component in Java
Create a JList Component in Java   ... which contains items. This class extends the JComponent class in java swing... component of swing. JList is a component of GUI. It provides the multiple items
abstract class - Java Beginners
abstract class  what exactly is abstract class and in which cases its... and if possible send simple java programs showing its use.  Hi friend, In java programming language, abstract classes are those that works only
with out class - Java Beginners
with out class  can we write a program with out a class in core java?if yes,give example
Abstract class - Java Beginners
Abstract class  Why can use abstract class in java.?when abstract class use in java.plz Explain with program.   abstract class abs{ public void display(){ } public abstract void display1(); } public class win
compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get
compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get
class - Java Beginners
Class java.lang.nullpointerexception  When the class java.lang.nullpointerexception occurs
Java Nested Class
Java Nested Class         In Java programming language, when a class is defined within another... you execute a class with the Java interpreter, the runtime system starts
java class - Java Beginners
java class  Define a class product with the following data members 1.Product number int(Auto generated) 2.Product name char [20] 3.Price float... program to execute the above class ad functions for 5 products
Example of HashSet class in java
Example of HashSet class in java. In this part of tutorial, we will introduce you to about the HashSet class.  It is collection. It stores only unique. You can not store duplicate value. Java hashset example. How
class Calendar - Java Beginners
class Calendar  Design the class Calender so that the program can... add the appropriate number of days to Monday, January1, 1500. for the class... the problem visit to : http://www.roseindia.net/java/java-get-example
class static - Java Beginners
class static  When do we declare a member of a class static?  Hi friend, public class HowToAccessStaticMethod{ int i; static int j... information on Static in Java visit to : http://www.roseindia.net/java/beginners
How to add icons on a button or any component in java - Java Beginners
How to add icons on a button or any component in java  How to add icons on a button or any component in java?  Hi, import javax.swing.*; import java.awt.*; public class IconButtonDemo{ public static void

Ads