3 Replies - 989 Views - Last Post: 12 August 2012 - 06:20 AM Rate Topic: -----

#1 Siddhugeo  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 7
  • Joined: 09-August 12

Error in jasper viewer

Posted 11 August 2012 - 03:20 AM

Hi,

I am creating a java desktop application and i want to create several reports for that. i am using jasper report to create report. if i create a report it was viewed in a jasper viewer. if i create more than one report then 'n' number of jasper viewer will open. i want to view only one jasper viewer at a time.[b]if we generate a new report then old report viewer should be closed. Jasper viewer was like a frame.so i try dispose() to close the old viewer, but still remains in the screen.

Is This A Good Question/Topic? 0
  • +

Replies To: Error in jasper viewer

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2651
  • View blog
  • Posts: 11,186
  • Joined: 20-September 08

Re: Error in jasper viewer

Posted 12 August 2012 - 03:28 AM

Sounds like you should be doing something less chaotic-sounding, such as displaying all reports in one frame, using something like CardLayout or a tabbed pane
Was This Post Helpful? 0
  • +
  • -

#3 Siddhugeo  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 7
  • Joined: 09-August 12

Re: Error in jasper viewer

Posted 12 August 2012 - 05:54 AM

I am using tabbedpane only..
Was This Post Helpful? 0
  • +
  • -

#4 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2651
  • View blog
  • Posts: 11,186
  • Joined: 20-September 08

Re: Error in jasper viewer

Posted 12 August 2012 - 06:20 AM

In that case, there should only be one frame. Maximum windows should probably be

a. application frame
b. dialog containing tabbed panes containing reports

IOW, maximum 2 windows
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1