File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Problem related to java.awt.package" Watch "Problem related to java.awt.package" New topic

Problem related to java.awt.package


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.
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
To adjust the Button's according to your will :
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
I agree. Here's the link:
subject: Problem related to java.awt.package
It's not a secret anymore!