| Author |
printing a JTable
|
Jhedzkie Skies
Ranch Hand
Joined: Oct 28, 2009
Posts: 118
|
|
hi there guys...
i came up with another thing that hinders my way into finishing my project.. >_>
i need to print the JTable rows and cols..
well, i mean, i have a JTable and its components. then i want to print it, or at least, print preview it..
it aims to be like this one....
i tried to study the API but i guess i really am still lacking at some things in java..
helps please...
|
 |
santhosh varala kumar
Greenhorn
Joined: Nov 05, 2009
Posts: 25
|
|
By using
a) javax.print API
b) java.awt.paint
c) javax.swing.RepaintManager
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8562
|
|
|
Have you gone through the examples given here http://java.sun.com/docs/books/tutorial/uiswing/misc/printtable.html
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Jhedzkie Skies
Ranch Hand
Joined: Oct 28, 2009
Posts: 118
|
|
oh! thanks. I missed this one. :O
|
 |
Jhedzkie Skies
Ranch Hand
Joined: Oct 28, 2009
Posts: 118
|
|
ok, i read some of the codes, and i am lead up to this.. and it has an error..
it cant find JPrintPreviewPane anywhere.. :O
help please...
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
Where did you get that class from?
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: printing a JTable
|
|
|