You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/05/15 02:04:09 UTC
cvs commit: xml-batik/sources/org/apache/batik/apps/svgbrowser JSVGViewerFrame.java AboutDialog.java
vhardy 01/05/14 17:04:09
Modified: sources/org/apache/batik/apps/svgbrowser
JSVGViewerFrame.java AboutDialog.java
Log:
Work around KDE limitations with JWindows.
Revision Changes Path
1.39 +4 -2 xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
Index: JSVGViewerFrame.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- JSVGViewerFrame.java 2001/05/14 22:27:47 1.38
+++ JSVGViewerFrame.java 2001/05/15 00:04:05 1.39
@@ -132,7 +132,7 @@
* This class represents a SVG viewer swing frame.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: JSVGViewerFrame.java,v 1.38 2001/05/14 22:27:47 vhardy Exp $
+ * @version $Id: JSVGViewerFrame.java,v 1.39 2001/05/15 00:04:05 vhardy Exp $
*/
public class JSVGViewerFrame
extends JFrame
@@ -582,7 +582,9 @@
public void actionPerformed(ActionEvent e){
AboutDialog dlg = new AboutDialog(JSVGViewerFrame.this);
- dlg.setVisible(true);
+ dlg.setSize(dlg.getPreferredSize()); // Work around pack() bug on some platforms
+ dlg.setLocationRelativeTo(JSVGViewerFrame.this);
+ dlg.show();
}
}
1.4 +4 -4 xml-batik/sources/org/apache/batik/apps/svgbrowser/AboutDialog.java
Index: AboutDialog.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/AboutDialog.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AboutDialog.java 2001/05/14 21:53:14 1.3
+++ AboutDialog.java 2001/05/15 00:04:07 1.4
@@ -43,7 +43,7 @@
* The dialog can be dismissed by click or by escaping.
*
* @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
- * @version $Id: AboutDialog.java,v 1.3 2001/05/14 21:53:14 vhardy Exp $
+ * @version $Id: AboutDialog.java,v 1.4 2001/05/15 00:04:07 vhardy Exp $
*/
public class AboutDialog extends JWindow
implements GridBagConstants{
@@ -169,7 +169,7 @@
JTextArea contributors
= new JTextArea(Resources.getString(LABEL_CONTRIBUTORS)){
- {setLineWrap(true); setWrapStyleWord(true); setEnabled(false);}
+ {setLineWrap(true); setWrapStyleWord(true); setEnabled(false); setRows(7); }
};
contributors.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10));
@@ -188,8 +188,8 @@
// getContentPane().setLayout(new FlowLayout());
getContentPane().add(p);
- pack();
- pack(); // This is not a mistake but a work-around.
+ // pack();
+ // pack(); // This is not a mistake but a work-around.
// The layout is not done properly on the first pack();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org