Resizing a jpanel and the objects on it????????

S

steve smith

Hi here is the problem i have i have created a jpanel, and on that
panel are various components, if i resize that panel then the
components will then move to different places on the panel. Say if i
have a text box right at the bottom of a panel, if i extend the panel
i want the text box to remain at the bottom, how can this be done? I
also want the components and the panel to remain the same when it is
being run off different machines with different resolutions, how can
this be done?

another problem i have is that i am creating a program which wil then
draw a number of objects on the panel, the size of the objects is
fixed as is the distance between them, the problem i ahve is if i draw
to many objects then they just run off the panel, is there anyway in
which i can contain all the objects on the panel? Perhaps in some way
resizing the objects etc? Any help much appreciated thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top