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

Mac OSX frame resize workaround


Recommended Posts

By: Gary Nunes - gary_nunes

Mac OSX frame resize workaround

2004-03-23 00:36

This is a tip for anyone who might be running iReport under Mac OSX with Java version 1.4.1_01 or earlier (OSX 10.2.8 -- I don't know whether it applies to later versions of Java or Mac OSX).

 

You may notice that you are unable to resize the iReports window vertically. This is a bug in the version of Java mentioned above on Mac OSX (it may also exist on other Mac OSX / Java versions).

 

There is a workaround. Override the method getMinimumSize() in the offending Frame. For example, place the following code at the end of file MainFrame.java (in src/it/businesslogic/ireport/gui/):

 

...(headers omitted)...

 

public class MainFrame extends javax.swing.JFrame implements ReportListener, Runnable

{

...(lots of code omitted)...

 

public java.awt.Dimension getMinimumSize() {

return new java.awt.Dimension(50, 50); // arbitrary minimum size value

}

}//end class MainFrame

 

and recompile using the ant build provided with iReport (ant compile). You should now be able to resize the main iReport window.

 

Hope this helps someone (it helped me),

Gary Nunes

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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