I have seen this in a slide but I couldn't get that when and why we use this?
Asked
Active
Viewed 2.3k times
2 Answers
3
null layout means absolute positioning - you have to do all the work in your code. No layout manager to help you out.

duffymo
- 305,152
- 44
- 369
- 561
3
Why don't you start by reading the Swing tutorial? There is a section that explains all about Layout Management as well as well what "absolute positioning" is. It also explains when you would use abolute positioning versus using a layout manager.
Generally the only time you would use it is when you need to support drag components to a random position.
The tutorial also has lots of other basic examples of using Swing components.

camickr
- 321,443
- 19
- 166
- 288
-
camickr, welcome. Are you still hitting the Sun Java Forum as well? – duffymo Aug 22 '09 at 11:29
-
Yes, I browse a few different forums just to see if the questions are any different. – camickr Aug 24 '09 at 04:17