Monday 28 November 2016

Script for DB

CREATE TABLE STUDENT
       ( 
PID INT Primary key generated always as identity (start with 1,increment by 1), 
        SNAME VARCHAR(30), 
        DEPT VARCHAR(30), 
        MARKS INT 
); 
INSERT INTO STUDENT (SNAME,DEPT, MARKS) VALUES('Fatima',  'IT', 86);
INSERT INTO STUDENT (SNAME,DEPT, MARKS) VALUES('Amjad',  'IT', 95); 
INSERT INTO STUDENT (SNAME,DEPT, MARKS) VALUES('Fahad',  'ENG', 90); 
INSERT INTO STUDENT (SNAME,DEPT, MARKS) VALUES('Zeshan',  'IT', 77); 
INSERT INTO STUDENT (SNAME,DEPT, MARKS) VALUES('Zahid',  'MATH', 73); 

INSERT INTO STUDENT (SNAME,DEPT, MARKS) VALUES('Samra',  'MATH', 61); 

Sunday 27 November 2016

Thursday 24 November 2016



database base application with jar file r2xml.  just create a data base in your netbeans

database. base name.   basic
table name           tab
colum names.   SERIAL,NAME,AGE,ADDRESS.  
and add a jar file by downloading from internet r2xml easily available over internet and include it in a away that sir has shown to you all]

check the link for code unzip it and import it in netbeans

any query will be answer

https://www.dropbox.com/s/ye1adbo9rxuihye/midtermtraining.zip?dl=0

Wednesday 23 November 2016

Converting a ResultSet object a TableModel object using rs2xml.jar file

You can include rs2xml.jar file in your project like below.
Here's the Download Link for rs2xml.jar file.

Once you include the rs2xml.jar file in your project you can convert a resultSet into a TableModel with one statement instead of writing the whole function yourself. You will have to call resultSetToTableModel() method of DbUtils class for this purpose. You will pass a ResultSet object to this method and it will return you a TableModel Object which later you can set as your JTable's model. here's an example where rs is a ResultSet object.

TableModel model = DbUtils.resultSetToTableModel(rs);

Can anyone contribute in it and upload a demo project for this ? Your contribution will give you earns you marks as I told you so keep sharing.

Monday 21 November 2016

In a database application i design a frame where user insert data and data is inserted in database user can also delete update for retrival i have make another frame on which there is a table which contain data from database now i wanted to add itemlistener on the table that when i click any data in table it shows me on text fieds...............in different frame.......
here links of my code

Simple Threaded demo

Here's the demo code for today's Thread Application. As you can see results below. It will be printed like below.Download



Your contribution in this blog earns you 5 sessional marks. So keep giving your inputs here. 

Welcome

                                 welcome dear fellows .

     Discuss your problems here, related to java 
or any other subject . cooperate with each other and create an educational environment so that everyone can get benefit.