This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes Problem related to java.awt.package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Problem related to java.awt.package" Watch "Problem related to java.awt.package" New topic
Author

Problem related to java.awt.package

waleed
Greenhorn

Joined: Sep 22, 2001
Posts: 3
I'm studying the java.awt.package and in Layout manager the problem which i'm facing is
"Suppose i want to make a Form in which i want to adjust the Button's according to my own will or simply i want to adjust anywhere so which code i will use for the adjustment of Button's" .I have already Applied GridLayout,BorderLayout and FlowLayout manager in my code but their is a special command for the Adjusment of button .If any one knows about this plz guide me properly.
Thanks"
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
To adjust the Button's according to your will :
setLayout(null);
now use,
setBound() method to place components anywhere u want.
But this is not recommended at all for various reasons like:
even if it looks good on our platform ,it could ackward on some other platform.
Hope this helps
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Waleed,
I'm going to move this over to the AWT forum as the question is not related to Mock Exam Errata.
Also, please read the JavaRanch Name Policy and re-register using a name that complies with the rules.
Thanks for your cooperation.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
 
subject: Problem related to java.awt.package
 
Similar Threads
Persistence Unit Scoping
Problem related to java.awt.package
Java server faces navigation problem
how to delete an object from heap ?
Making components look the way you want them to