Show the Database table on the GUI Frame:Step by step.

1)Create a GUI JFrame form.(pic 1)

Image

pic1

2)Drag and drop the table from palette to your JFrame.(pic 2)

Image

pic2

3)Right click on the frame.Select Properties.You will get the property table.(pic 3)

Image

pic3

4)Select “model”.You will get the “model frame” .(pic 4)

Image

pic4

5)Increase the number of coloumns from the bottom of the “model frame”.

6)Just rename the columns and their type(datatype). Click ok.(pic 5)

Image

pic5

7)Again right click on the frame and select the  properties->binding->elements.(pic 6)

Image

pic6

8)You will get bind jtable properties.Click on  “import data to form”.(pic 7)

Image

pic7

9)Click on the preferred database connection and then database table.(pic 8)

Image

pic8

10)Then click ok.You will get another window their you  can select the desired

columns for displaying.

11)Now you can run your frame and see the updated table  in the frame.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s