Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

AWT

Posted on 2002-04-05
2
Medium Priority
?
294 Views
Last Modified: 2010-03-31
In AWT Frame when we set the layout as FlowLayout Manager
how can we arrange different panels at the desired position inside the frame instead of each panel adding besides the other panel implicitly.

When I used the setBounds() method on the panel, the panel is not positioned according to the given values
but it is just getting added beside an exisitng panel.
0
Comment
Question by:yrrm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Expert Comment

by:mzimmer74
ID: 6921452
Well, that's the way FlowLayout works.  If you want to position panels you'll need to use a different layout.  Depending on how detailed you want to be I'd suggest GridLayout, BorderLayout, or GridBagLayout going from least to most detailed.
0
 

Accepted Solution

by:
cini_gm earned 200 total points
ID: 6922442
If u want to set ur component positions using setBounds, then u must use setLayout(null). ie, If u r setting as null, then u can position ur components where ever u want. Any other layout places ur components in a fixed way.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question