Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GridBagLayout and "total control"

Status
Not open for further replies.

brownie124

Programmer
Sep 19, 2002
61
US
Hi,

Being new to Java and coming from doing Windows API development where you do truly have total control over placement of items, I am finding control/component placement extremely challenging in Java.

If I have a window that is 400 x 200 and I want to place a check box or any other control for that matter at x=40, y=40, how would I do that?! Even with the GridBagLayout manager I cannot do it. If I have a window with one item, I can put it in the very center, north, west, east, or south, but how dow I specifically place it at particular coordinates?

Because of some development constraints, I cannot use Swing.

Thanks,
- Michael
 
My bad. I have done some more research and found that you do not have to use a layout manager. If you don't, you truly do have control but give up some platform indepenence.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top