Jump to content
We've recently updated our Privacy Statement, available here ×

How to remove objects of JrViewer


vctlzac

Recommended Posts

I need to remove objects from a JrViewer.
I got to remove print bar using the removal with the index, with command jrv.remove (0).

Now I need to remove two other objects.
  
The first is the scrollpane. My report is on a small scale thus bypassing the scrollpane.
  
The second is the bar that tells the amount of pages.
  
Below is a picture to facilitate understanding:

http://yfrog.com/jmimagemsaoj

 

Thanks.



Post Edited by vctlzac at 07/10/2010 00:35



Post Edited by vctlzac at 09/12/2010 01:04
Link to comment
Share on other sites

  • 2 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The solution is to cover all components of the object JrViewer a JScrollPane and when to change the properties:

setHorizontalScrollBarPolicy (JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);

setVerticalScrollBarPolicy (JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...