Plz Help Me -Printing JTablePrinting JTable without GridLines
Page 1 of 1
10 Replies - 864 Views - Last Post: 23 September 2009 - 05:09 AM
#1
Plz Help Me -Printing JTable
Posted 16 September 2009 - 07:10 AM
Does anyone know how to print a JTable without gridlines
Plz help
Thanks
HP
Replies To: Plz Help Me -Printing JTable
#2
Re: Plz Help Me -Printing JTable
Posted 16 September 2009 - 07:15 AM
jTable1.setShowVerticalLines(false);
#3
Re: Plz Help Me -Printing JTable
Posted 16 September 2009 - 07:29 AM
nelson64, on 16 Sep, 2009 - 06:15 AM, said:
jTable1.setShowVerticalLines(false);
Thanks for your help.
If I use jTable1.setShowHorizontalLines(false) statement it will display the table without horizontal gridlines in the screen.I dont want to change my table on the screen.Only for the printing purpose I need to take the gridlines off.
Is there any way to do that?
Thanks
HP
#4
Re: Plz Help Me -Printing JTable
Posted 16 September 2009 - 04:27 PM
#5
Re: Plz Help Me -Printing JTable
Posted 17 September 2009 - 03:29 AM
#6
Re: Plz Help Me -Printing JTable
Posted 17 September 2009 - 03:59 PM
#7
Re: Plz Help Me -Printing JTable
Posted 21 September 2009 - 06:57 AM
pbl, on 17 Sep, 2009 - 02:59 PM, said:
Thanks for your help.
I have got a problem with your code.When I try to print my Table in Landscape(Orientaion) using using your code it still print the table in Portrait.I want to print my table in Landscape.
I am Printing my table without the table Headers.so I am getting an outline for my table.How do I print my table without the outline.
Thanks in advance
HP
#8
Re: Plz Help Me -Printing JTable
Posted 22 September 2009 - 01:39 AM
I have got a problem with printing the JTable.I am using Printmode Normal.The Table has got 30 columns.When I print them the last column in each page gets splitted.How do I stop this.I dont want to split the column.If the column doesnt have enough space it should move to the new page.It shouldnt split the colum.
Any Ideas how to do it?
Thanks in advance.
HP
#9
Re: Plz Help Me -Printing JTable
Posted 22 September 2009 - 04:04 PM
Topic merged
The code I provide let you select if landcape or not a manage to do not split a column
#10
Re: Plz Help Me -Printing JTable
Posted 23 September 2009 - 01:25 AM
pbl, on 22 Sep, 2009 - 03:04 PM, said:
Topic merged
The code I provide let you select if landcape or not a manage to do not split a column
Sorry I didnt get you.Are you saying I can select the landscape orientation from printdialouge.
How do I print my Table in Landscpae using your code?
Thanks
HP
#11
Re: Plz Help Me -Printing JTable
Posted 23 September 2009 - 05:09 AM
HP_, on 23 Sep, 2009 - 12:25 AM, said:
pbl, on 22 Sep, 2009 - 03:04 PM, said:
Topic merged
The code I provide let you select if landcape or not a manage to do not split a column
Sorry I didnt get you.Are you saying I can select the landscape orientation from printdialouge.
How do I print my Table in Landscpae using your code?
Thanks
HP
Told you to search for "printable" you couldn't found it and I had to do the search for you....
Now did you read the code ? Somewhere in the code there is that line
* @param pageFormat the size and orientation of the page being drawn
|
|

New Topic/Question
This topic is locked




MultiQuote



|