From: Sasa M. <sa...@us...> - 2004-05-25 07:49:39
|
Update of /cvsroot/jrobin/src/org/jrobin/mrtg/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5269/org/jrobin/mrtg/client Modified Files: GraphFrame.java Log Message: Minor changes Index: GraphFrame.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/mrtg/client/GraphFrame.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GraphFrame.java 1 Mar 2004 13:11:26 -0000 1.3 --- GraphFrame.java 25 May 2004 07:49:28 -0000 1.4 *************** *** 331,334 **** --- 331,340 ---- graphBytes = client.getPngGraph(routerInfo, linkInfo, start, end); ImageIcon icon = new ImageIcon(graphBytes, "PNG graph"); + if(icon.getIconWidth() != GRAPH_SIZE.getWidth() || + icon.getIconHeight() != GRAPH_SIZE.getHeight()) { + GRAPH_SIZE = new Dimension(icon.getIconWidth(), icon.getIconHeight()); + graphLabel.setPreferredSize(GRAPH_SIZE); + pack(); + } graphLabel.setIcon(icon); if(start.getTime() <= now.getTime() && now.getTime() < end.getTime()) { |