I need to print text from my JFrame to a dot matrix printer. I want to print it directly without asking confirmation dialog.
I want to print on the paper whose width is 3 inch and height may vary because I am going to use it for super market software where item list may content 2 items or 500 items. It depends on items.
Port of printer may be LPT 1, serial, Usb, etc anything. I want my code to be use for any printer.
Also I want to know that for this purpose I should set the size of page through code or it will automatically? Actually I prefer automatic. So please suggest me solution on that way.