• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to save a JScrollPane

 
Arshabh Agarwal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a java applicaton wherein i can import images

i can edit the image

the image can be large so i added the Jpanel into a Scrollpane and
set the content pane of JFrame as the scrollPane
now the problem is i cannot save the whole image
i think the problem is because i am converting the frame as Buffered image and then saving it
can any body give a idea so that i save the image with scroll bars.
this would really help me
 
Darryl Burke
Bartender
Posts: 5155
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Arshabh, and welcome to the Ranch! To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. Not all of your code, just the part where you're having problems saving the image -- but compilable and executable.
 
Rob Camick
Ranch Hand
Posts: 2701
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Screen Image allows you to create an image of any component.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!