Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Java component class
1 Answer(s)      4 years and a month ago
Posted in : Java Interview Questions


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

Advertisement
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
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
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
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
Making a component drag gable in java
Making a Component Draggable in Java   ... be the swing component. This class is helpful to copy from one component... of the TransferHandler class which makes the component able to transfer the specified part
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
Create a JList Component in Java
Create a JList Component in Java   ... items. This class extends the JComponent class in java swing. There has been... component of swing. JList is a component of GUI. It provides the multiple items
component creation - Java Server Faces Questions
component creation  Hi, How to create components in JSF. I need a table component,i want to use this component in morethan 2 forms. Give me solution. Thanks in advance.   Hi friend, I am sending you a link
Java class
Java class  What is the purpose of the Runtime class
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
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
Setting the Dimensions of an Item in a JList Component in Java
Setting the Dimensions of an Item in a JList Component in Java..., you will learn about setting the dimensions of the List component in java... in a List Component. This provides setting the dimension of items present
Adding a Rollover and Pressed Icon to a JButton Component in Java
Adding a Rollover and Pressed Icon to a JButton Component in Java... about adding event i.e. the rollover and click icon to a JButton component of swing in java. Rollover means moving mouse pointer above the icon on the button. 
Create a JRadioButton Component in Java
Create a JRadioButton Component in Java   ... it once. Here, you will see the JRadioButton component creation procedure in java... button in java swing. Radio Button is like check box. Differences between check
java class - Java Beginners
java class  How to run a java class(Mail.java) automatically in tomcat server for a particular time
Java Class Size
Java Class Size  How to determine size of java class
Introduction To Enterprise Java Bean(EJB). Developing web component.
Developing web component  ...   Introduction To Java Beans... components, web component and the enterprise bean. Web
Java inner class and static nested class
Java inner class and static nested class  Java inner class and static nested class
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
To render imageicon to image component - Java Server Faces Questions
To render imageicon to image component  Hi, I am trying to retrieve an image from SQL Server database and render the corresponding image icon to an image component in visual web jsf component. But, I am not able to display
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
Customize the Icon in a JCheckBox Component of Java Swing
Customize the Icon in a JCheckBox Component of Java Swing... to customize the icon in a check box component. That means any icon can be shown where...(Icon): This is the method of the JCheckBox class which sets the icon in the check
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
Java class file
Java class file  How do i open a java class file using eclipse
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
 

 

 

DMCA.com