Jump to content
JasperReports Library 7.0 is now available ×

IR 130 Repaint Issue with SQL Queries


sure919

Recommended Posts

While working with IR130 and SQL Queries (using PostgreSQL), I am facing repaint issue.

While i am trying to executing some basic SQL queries through ReportQueryDialog i am facing repainting issue, i am unable to see the ok, cancel, Read fields button.

 

Or if i open any dialog (say add/modify parameter dialog) the screen doesnt get refreshed until i click the minimize button and restore it back.

 

Any help over it would be of great help.

 

Thanks,

Sure

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Hi Giulio,

Thanks, its refreshing the screens now but i got this error(pasted below).

When Iopen any crosstab report I dont see any problem, but later when i close all my jrxml files and open a new crosstab report i found that i was unable to modify my reports.

 

Looking forward for your help.

 

Regards,

Sure

 

 

 

 

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at java.awt.Component.setBounds(Component.java:1976)

at it.businesslogic.ireport.gui.JMDIFrame.setMaximum(JMDIFrame.java:277)

at com.sun.java.swing.plaf.windows.WindowsDesktopManager.activateFrame(WindowsDesktopManager.java:59)

at javax.swing.plaf.basic.BasicInternalFrameUI.activateFrame(BasicInternalFrameUI.java:559)

at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.propertyChange(BasicInternalFrameUI.java:1542)

at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)

at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)

at java.awt.Component.firePropertyChange(Component.java:7159)

at javax.swing.JInternalFrame.setSelected(JInternalFrame.java:1050)

at javax.swing.plaf.basic.BasicInternalFrameUI$BorderListener.mousePressed(BasicInternalFrameUI.java:652)

at java.awt.Component.processMouseEvent(Component.java:5485)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)

at java.awt.Component.processEvent(Component.java:5253)

at java.awt.Container.processEvent(Container.java:1966)

at java.awt.Component.dispatchEventImpl(Component.java:3955)

at java.awt.Container.dispatchEventImpl(Container.java:2024)

at java.awt.Component.dispatchEvent(Component.java:3803)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)

at java.awt.Container.dispatchEventImpl(Container.java:2010)

at java.awt.Window.dispatchEventImpl(Window.java:1774)

at java.awt.Component.dispatchEvent(Component.java:3803)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Link to comment
Share on other sites

Hi Guilio,

 

I had already performed the steps that you have suggested. though it fixed the repaint issue but throws a new exception when i try to re-open any jrxml file or "open any jrxml file after closing the jrxml that ive open when the application was stated".

i see a disabled JMDIFrame and whenever i perform any mouse clicks it raises that error.

 

i found some temporary solution(while debugging the code, though i sounds dirty. it works)

in JMDIFrame setMaximum() i harcoded the value for b(true) and it didnt throw any error.

i m sure you definitely might have some idea of a better solution/logic.

 

Further, if i try opening multiple jrxmls its not maximizing them.

 

Looking forward for your suggestion/guidance

 

Regards,

sure

Link to comment
Share on other sites

Hi Guilio,

 

I had already performed the steps that you have suggested. though it fixed the repaint issue but throws a new exception when i try to re-open any jrxml file or "open any jrxml file after closing the jrxml that ive open when the application was stated".

i see a disabled JMDIFrame and whenever i perform any mouse clicks it raises that error.

 

i found some temporary solution(while debugging the code, though i sounds dirty. it works)

in JMDIFrame setMaximum() i harcoded the value for b(true) and it didnt throw any error.

i m sure you definitely might have some idea of a better solution/logic.

 

Further, if i try opening multiple jrxmls its not maximizing them.

 

Looking forward for your suggestion/guidance

 

Regards,

sure

Link to comment
Share on other sites

Hi Giulio,

 

I modified the line 277 of JMDIFrame.java setMaximum()and it resolved my issue.

 

I didnt know to what values the bounds to be set so did this.

 

do let me know your comments about the changes.

 

Regards,

sure [file name=JMDIFrame.txt size=13499]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/JMDIFrame.txt[/file]

Post edited by: sure919, at: 2007/01/30 11:27

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...