Followers

Monday, April 19, 2010

Playing with GridBagLayout

/******************NEW POST********************************/
Hi guys,

This time we're gonna see how to make life easy while working with Swing in java.

Final Year students using java for their BE project, may find this article to be of usage.

  • All of us at some stage(while working with java), decide to build a standalone gui based application.
  • Now, we al like good and organized GUIs, but making one via swing can prove to be a bit tricky !!!
  • To place different items on a window frame in java, we hava something called as Layouts.
  • We've the different layouts like FlowLayout, Border Layout, CardLayout etc..
  • also worth mentioning are Gridlayout and GridBagLayout.
  • Now, I am saying that :-
Instead of using Other layouts or using setLayout(null) kind of things, it is best to use :

The GridBaglayout:-

/**************************************************************/

No comments:

Post a Comment