[Schmitzm-commits] r122 - in trunk/src: schmitzm/geotools/gui skrueger/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 19 19:16:14 CEST 2009


Author: alfonx
Date: 2009-05-19 19:16:13 +0200 (Tue, 19 May 2009)
New Revision: 122

Modified:
   trunk/src/schmitzm/geotools/gui/JMapPane.java
   trunk/src/skrueger/swing/TranslationAskJDialog.java
Log:
* Removed some logging JMapPane
* Improved Layout in TAJD.java

Modified: trunk/src/schmitzm/geotools/gui/JMapPane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/JMapPane.java	2009-05-18 14:15:42 UTC (rev 121)
+++ trunk/src/schmitzm/geotools/gui/JMapPane.java	2009-05-19 17:16:13 UTC (rev 122)
@@ -547,7 +547,7 @@
 	 *         Kr&uuml;ger</a>
 	 */
 	public void setAntiAliasing(final boolean aa) {
-		LOGGER.info("Setting AntiAliasing for this JMapPane to " + aa);
+//		LOGGER.info("Setting AntiAliasing for this JMapPane to " + aa);
 		RenderingHints java2DHints = getRenderer().getJava2DHints();
 		if (java2DHints == null)
 			java2DHints = GeoTools.getDefaultHints();

Modified: trunk/src/skrueger/swing/TranslationAskJDialog.java
===================================================================
--- trunk/src/skrueger/swing/TranslationAskJDialog.java	2009-05-18 14:15:42 UTC (rev 121)
+++ trunk/src/skrueger/swing/TranslationAskJDialog.java	2009-05-19 17:16:13 UTC (rev 122)
@@ -13,6 +13,7 @@
 
 import javax.swing.AbstractAction;
 import javax.swing.Action;
+import javax.swing.BorderFactory;
 import javax.swing.Box;
 import javax.swing.JButton;
 import javax.swing.JComponent;
@@ -155,13 +156,16 @@
 		SwingUtil.centerFrameOnScreen(this);
 		Box box = Box.createVerticalBox();
 		for (JComponent panel : translationEditJPanelsOrJustComponents) {
+			panel.setAlignmentX(java.awt.Component.LEFT_ALIGNMENT);
+			panel.setBorder( BorderFactory.createEmptyBorder(5, 6, 5, 6));
 			box.add(panel);
+			
 		}
 		JPanel cp = new JPanel(new BorderLayout());
-		cp.add(box, BorderLayout.CENTER);
+		cp.add(box, BorderLayout.WEST);
 		cp.add(getButtons(), BorderLayout.SOUTH);
 		setContentPane(cp);
-
+		
 		setTitle(RESOURCE.getString("translation_dialog_title")); // i8n
 		setModal(true);
 		pack();



More information about the Schmitzm-commits mailing list