Results 1 to 1 of 1
- 01-19-2012, 06:55 PM #1Member
- Join Date
- May 2011
- Rep Power
Problem in printing receipt in swing application.
I have created general bill maker application on swing in which i've to print receipts as the output.
Basically i am not able to understand how can show the list of items on the panel so that it is able to print?
I am using PrintUtilities.java to print
the receipt panel.
What i am trying is to use a JTable for listing item details but if number of items is more than scrollpane viewport hieght than the rest of extra items are not shown and thus unable to print.
What can b the other way if i do not use JTable?
Or a solution with JTable use itself.
What i want is to extend my whole dialog vertically if no. of items exceeded rather than using autoscrolls.
I hope i am clear to my question.
Image of my receipt dialog is:
- By Taron in forum AWT / SwingReplies: 3Last Post: 10-23-2012, 03:38 PM
- By gilboy in forum New To JavaReplies: 4Last Post: 10-26-2011, 02:10 PM
- By Vibh in forum New To JavaReplies: 1Last Post: 09-08-2011, 08:38 AM
- By Vishal-pd in forum Java 2DReplies: 0Last Post: 08-30-2011, 04:36 PM
- By dhaivat in forum AWT / SwingReplies: 8Last Post: 03-04-2010, 04:55 PM