gillgates
asked on
Jave web component that can display data from a database, (like .NET's DataGrid) that can lock the first column so when you scroll right all the columns scroll but the first.
Java web component that can display data from a database, (like .NET's DataGrid) that can lock the first column so when you scroll right all the columns scroll but the first.
For example. Column 1 has name and the rest of the columns are data about a person so when you scrool to the right you would want the name column to stay in view to the user while they look at the other data.
I am looking for a solution for jsp and javascript.
Code examples are welcomed.
For example. Column 1 has name and the rest of the columns are data about a person so when you scrool to the right you would want the name column to stay in view to the user while they look at the other data.
I am looking for a solution for jsp and javascript.
Code examples are welcomed.
ASKER
Hello,
I don't think that is what I am looking for... I want an object that has its own scroll bars and not the pages. So you scroll with the object and the first column (or whatever column I say) doesn't move but the other do.
I don't think that is what I am looking for... I want an object that has its own scroll bars and not the pages. So you scroll with the object and the first column (or whatever column I say) doesn't move but the other do.
Sorry that one was bogus . . .
Accessing Database through JSP :
http://java.sun.com/developer/qow/archive/73/index.html
Here is the correct one. An example of creating a table using servlets :
http://www.stardeveloper.com:8080/articles/display.html?article=2001062501&page=1
Here is another helpfull J2EE Tutorial :
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
Hope that helps . . .
Javatm
Accessing Database through JSP :
http://java.sun.com/developer/qow/archive/73/index.html
Here is the correct one. An example of creating a table using servlets :
http://www.stardeveloper.com:8080/articles/display.html?article=2001062501&page=1
Here is another helpfull J2EE Tutorial :
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
Hope that helps . . .
Javatm
ASKER
I already know hot to access a database in java. I am asking for the existance of an object that has its own scroll bars and not the pages. So you scroll with the object and the first column (or whatever column I say) doesn't move but the other do.
ASKER
Anyone understand what I am talking about? I am increasing the point value. 150 -> 500
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
armoghan
So if I used a java applet instead of jsp or javascript you think there would be a component? You don't happen to know what component would do what I am asking?
So if I used a java applet instead of jsp or javascript you think there would be a component? You don't happen to know what component would do what I am asking?
> So if I used a java applet instead of jsp or javascript you think there would be a component?
A component that you can use for applet would be JTable.
A component that you can use for applet would be JTable.
ASKER
I checked http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.sun.api.doc/javax/swing/JTable.html and didn't see anything that would allow me to lock a column so it wouldn't scroll.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Many examples of manulipating Table are here
http://javaalmanac.com/egs/javax.swing.table/pkg.html
Copy a Row or Column.
http://javaalmanac.com/egs/javax.swing.table/CopyRow.html
http://javaalmanac.com/egs/javax.swing.table/pkg.html
Copy a Row or Column.
http://javaalmanac.com/egs/javax.swing.table/CopyRow.html
ASKER
I guess you can't do this... I will have to use two jtables...
Thanks for the help.
Thanks for the help.
Think this is what you need, An example of creating a table from a database in JSP :
http://webdesign.ittoolbox.com/groups/groups.asp?v=java-l&i=529362
Hope that helps . . .
Javatm