Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Shans sat

Greenhorn
+ Follow
since Jan 24, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shans sat

This is very useful for me..
Thanks Ulf Dittmer..
Yes.. I posted the same in http://www.java-forums.org/awt-swing/15563-problem-printing-jtable-values.html but I didn't get any reply for my thread. So that I posted here to get the help.
13 years ago
Dear Friends,
I'm using JTable in my application. It has 4 columns and rows are fetched from database. 1st column contains JCheckBox to select the particular row in the table. 1st column header also contains JCheckBox. All rows in the table are selected and unselected by check and uncheck the column header JCheckBox.

The problem is,
If I check anyone of the row JCheckBox then the particular row got selected and If I check the column header JCheckBox then that check box is checked and all rows are selected.

But If I check the 1st row JCheckBox then the 1st row got selected and If I check the Column header JCheckBox then column header JCheckBox is chekced but no rows are selected (1st row also deselected).

I tested the same scenario for 2nd and 3rd rows but everything works fine. Only 1st row gives this problem.

My Code is,




APUCheckBoxHeader class :




MyItemListener class :





Could anyone please tell me how to solve this issue?



Thanks in advance,
Shans


13 years ago
Dear Friends,
I have to print the JTable values (on paper using print dialogue box).
I'm using jtableObj.print to print the table values. But jtableObj.print takes more time to print the table values because it prints the values as a image(approximately 5 mins to print 10 pages).

My code is ,


Could anyone please tell me how to reduce the time?


Thanks in advance
13 years ago
Dear Friends,
I have to print the JTable values (on paper using print dialogue box).
I'm using jtableObj.print to print the table values. But jtableObj.print takes more time to print the table values because it prints the values as a image(approximately 5 mins to print 10 pages).

My code is ,




Could anyone please tell me how to reduce the time?


Thanks in advance
13 years ago
For that I used print() method to print the table values (on paper).




But, the time taken for displaying print dialouge box so late and printing operation is done very slowly.

Could anyone please tell me is there any better way and fastest way to print the table values?
13 years ago
I really mean to printing on a paper.
13 years ago
Dear friends,
I'm having ArrayList collection. That ArrayList contains Employee object. The Employee object contains Id, Name, Dept, DOJ, Address properties.
I have to print this ArrayList in a table format.

Could anyone please tell me how to display the print dialogue box and print the ArrayList values in table format?




Thanks in advance,
Shans
13 years ago
Thank you very much for your valuable suggestion. Now it's working fine.


Thanks and Regards,
Shans
13 years ago




MyCellRenderer class:




When I execute this code, all cells in column0 is displayed in red color and I'm unable to check / uncheck the JCheckBoxes in the column0.

But I need to change the row1 - row5 rows in red color.

Could anyone please help me in this?


Thanks in advance.
13 years ago
Thanks for your reply. But it's not working as i expect. If i try to change the color of the particular cell then the entire coloum color got changed. If i try to create the border of th particular cell then the entire column has a border though i specified the row and column numbers.
13 years ago
Dear Friends,
I created table in my application using JTable. In this table most of the cells has JCheckBoxes (which has created by using Boolean.class). In this table some of JCheckBox cells alone to be looked differently either by changing background color or by created border to that cell.
Could anyone please tell me how to set the background color for a particular cell or create the border for a particular cell?


Thanks in advance,
Shanmugam
13 years ago