Tuesday, March 22, 2011

Green Mucus And Period

Swingx Grid (Part 2)

Hi


For the part we create a model which will serve to display data in our table of swing is very simple we just have to do the following:


1 .- Let's create a JFrame where will place our JPanelGrid, netbeans has a quick and easy way to do File / New File / Swing GUI Forms / Files option in select types and next
JFrameForm




will see a panel where they have to put class name for this example is called JFramePrincipal.



Now we have a window where we put our JPanelGrid, but before we add it to the table properties jXTable1 his name is in the properties is a model called
we have this and remove all the columns and rows, then we click on OK button in the image below show how.

compiled with F9
After our class called JPanelGrid and adhere to our JFramePrincipal only need to drag our Class JPanelGrid in JFramePricipal this in design mode.

To test that everything here is going great just need to execute (Run File) JFramePrincipal class and we have to open a window with an empty grid.

0 comments:

Post a Comment