freelanceprogrammers.org Forum Index » Java

Setting the Boundary of a Frame


View user's profile Post To page top
airbon Posted: Thu Feb 21, 2002 1:37 pm


Joined: 16 Feb 2002

Posts: 18
Setting the Boundary of a Frame
How do we create a border so that the button will
be center of the frame. I am using Panel and Frame
and BorderLayout. What is the use of Insets?<br>HOw
do we implement it in a
program?<br><br>Regards,<br>Arick
Reply with quote
Send private message
View user's profile Post To page top
dnp7 Posted: Thu Feb 21, 2002 4:58 pm


Joined: 19 Feb 2002

Posts: 22
Setting the Boundary of a Frame
You can try FlowLayout with setVgap(int i) method.<br><br>Good Luck,<br>Dmitry
Reply with quote
Send private message
View user's profile Post To page top
airbon Posted: Thu Feb 21, 2002 10:27 pm


Joined: 16 Feb 2002

Posts: 18
Setting the Boundary of a Frame
what if I am using GridLayout
Reply with quote
Send private message
View user's profile Post To page top
airbon Posted: Thu Feb 21, 2002 10:31 pm


Joined: 16 Feb 2002

Posts: 18
Setting the Boundary of a Frame
I just wanna separate the BorderLayout.NORTH from the CENTER with gap and from
the boundary of the Frame as well<br><br>Regards,<br>Arick<br>p.s. Thank in
advance
Reply with quote
Send private message
View user's profile Post To page top
spooge21 Posted: Fri Feb 22, 2002 12:10 am


Joined: 14 Feb 2002

Posts: 50
Setting the Boundary of a Frame
The BorderLayout class includes methods for
setting the horizontal and vertical gaps. If you want to
do anything more complicated (i.e. using Insets)
then you will need to use the GridBagLayout. You can
find out more information on all of the layouts from
the Java API documentation. If you haven`t already,
download a copy of the JDK documentation and keep it handy
- you will use it a
lot.<br><br>Sincerely,<br>Anthony Eden
Reply with quote
Send private message
View user's profile Post To page top
airbon Posted: Sun Feb 24, 2002 11:19 pm


Joined: 16 Feb 2002

Posts: 18
Setting the Boundary of a Frame
I had download the Documentation but had a hard
time understanding it. Why isn`t there any example
where i can follow.. can anyone tell me how to uses
those information. cos i really find it hard to
understand<br><br>regards,<br>Arick
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help