• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to print, material inside Jsrollpane

 
Kapil Keskar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys
i am having problem with printing.
i am printing using java. it works fine with.
but i am using jscrollpane to display my lenthy labels inside JPanel.
whenever i tries to print the material inside scrollpane, it show's it's limited length i.e- of page size(A4)
i have even tried to LANDSCAPE but nothing works out. in that case also it dsiplays limited output.
As it's property that java is printing anything inside JPanel i have also used it.
but it prints only the visible part to us, & not the other part hided inside scrollpane.
please help me out
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you figure this out?
It actualy sounds about like what the ScrollPane should do... Normaly when a Container prints it acts as though its size is the size of the graphics it is given, does its layout and then draws like it should to the screen. The problem is that you probably don't want a scrolable printed image.
I would say this is a bug in Java. b/c a scrollable printed image makes no sense. You could work around it by putting the contents in some other Container and pringing that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!