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



Home Answers Viewqa Java-Beginners in javax.swing package setBounds
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Venkatasitaramayya
in javax.swing package setBounds
1 Answer(s)      3 years and 6 months ago
Posted in : Java Beginners


Hello some body has given the solution to my setBounds problem .But i didnot mean to tell how it is used in the program,but what do u mean of values refer to in SetBounds().For ex ample in SetBounds(30,30,30,30)in that what the values 30 refer to be in the sense is it first value 30 tells horizontalgap like that.


Advertisement
View Answers

June 27, 2011 at 10:52 AM


The method setBounds(int x,int y,int width,int height) consists od four parameters which denotes the following :

x - the new x-coordinate of this component
y - the new y-coordinate of this component
width - the new width of this component
height - the new height of this component

This method moves and re sizes the component. The new location of the top-left corner is specified by x and y, and the new size is specified by width and height.


Related Tutorials/Questions & Answers:
in javax.swing package setBounds
in javax.swing package setBounds  Hello some body has given the solution to my setBounds problem .But i didnot mean to tell how it is used in the program,but what do u mean of values refer to in SetBounds().For ex
javax.swing - Java Beginners
javax.swing  how to add or remove component at run time ( while execution) not compile time?  Hi Friend, Try the following code: import javax.swing.*; import java.awt.event.*; public class SwingProgram extends
Advertisements
Package
Package  Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package
Package
Package  Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package
package:
package:  i hv created created a package and save it into D... in a package world. The we specify the keyword package with the name of the package. package world; public class HelloWorld { public static void main(String
package:
package:  i hv created created a package and save it into D... in a package world. The we specify the keyword package with the name of the package. package world; public class HelloWorld { public static void main(String
package
package  by what name we can save a java file that contain a package {i.e package p;} and several public classes {i.e public class abc} but not a main method
package
package  hello, What is a package?   hello, To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability
package
can allow types in one package to have unrestricted access to one another, still restricting the access for the types outside the package
package
package  write a package for games which have two classes indoor... specifier and also use the finalize() method   We have created a package... class, we have imported this package and using a function display(), we have
package
package  Smith has created a package named ApplianceDetails that contains the Appliance class.Now he wants to create a class named NewAppliance that stores the details of the newly launched appliances.He uses the following syntax
package
package  Smith has created a package named ApplianceDetails that contains the Appliance class.Now he wants to create a class named NewAppliance that stores the details of the newly launched appliances.He uses the following syntax
package in java
package in java  when i run a package it give a error exception in thread "main" java.lang.NoClassDefFoundError what i do
package creation
package creation  program to create package having four different class in java
Package in Applet
Package in Applet  How do I use this technique for applets
Java package
Java package  Which package is always imported by default
Java package
Java package  What restrictions are placed on the location of a package statement within a source code file
Package in Servlet
Package in Servlet  How Create Package in Servlet ?   package packagename ; import java.io.*; import javax.servlet.*; import..."); PrintWriter out = response.getWriter(); out.println("Hello,Package Example
What is a package?
What is a package?  hi, What is a package? thanks   Hi, The Package is a mechanism for organizing the group of related files... programming language, A package is group of related types of classes & interfaces
Package categories in Java
Package categories in Java     ... hierarchy structure shown above. Note that, the package "java" also has subpackages in which the package "awt" is further has a subpackage called
Java.io package
Java.io package  List the names of various classes supported by Java.io package to handle character stream.   Reader and Writer classes and their subclasses
problem with package
problem with package  Dear sir, i have created one java file with package com.net; and i compiled the program.it showing the .class file... message as can not access package class methods
userdefined package
userdefined package  package javap; class HelloWorld { public... declare a package then in command prompt i set the classpath.After that i compiled the class and run the package then i got the error C:\Users
Java Interview Questions - Page 9
;    Question: Which package has light weight components? Answer:  javax.Swing package. All components in Swing, except... to have package or friendly access. This means that the class can only be accessed
Java package
of the package importing the javax.swing package. import ...;In the above example,  a Java Package "javax.swing" is a buid-in package... Java package      
add new package java
add new package java  How to add new package in Java
The package keyword
The package keyword       The package in java programming language is a keyword that is used to define a package that includes the java classes. Keywords are basically reserved words
package - Java Beginners
Creating a package in Java  Create a package called My Package. In this, create a class call Marks that specifies the name of student, the marks in three subjects and the total of these marks. Displays the details of three
package javax.ws.rs does not exist
package javax.ws.rs does not exist  Hi, Which jar file should I add to remove "package javax.ws.rs does not exist" error? Thanks
Which package is imported by default?
Which package is imported by default?  hi, Which package... package is imported by default? The java.lang package is imported by default even without a package declaration. In Java class has been imported in the following
import package - JSP-Servlet
import package  how to import a package into a jsp page...pls reply with an example..  Hi friend, To import a package in Jsp use the import Attribute of page Directive In JSP The package name folder is putted
Advertisements
 

 

 

DMCA.com