View Full Version : placing components in java
peyoush_thakur
10-03-2008, 03:04 PM
hi! can anybody tell me,with a small example, how to place components (buttons, labels, etc) at desired position in java. I m using j2sdk1.4
ray|raven
10-03-2008, 03:08 PM
Firstly upgrade to 1.6.
A Lot of new swing features came in 1.5 and 1.6
Secondly, you can place objects in quite a few different ways.
Read here :http://java.sun.com/docs/books/tutorial/ui/features/index.html
If you are lazy, you could always install NetBeans and get the drag-n-drop ui builder.
But I wouldnt recommend it.
+1 for netbeans drag-n-drop supports
Though i prefer to do it manually, study the layout managers carefully and u can smoke some air ;)
PS: Upgrade to 1.6 its the latest one.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.