<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How the heck do I center something in SWT??</title>
	<atom:link href="http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/</link>
	<description>Macs, Java, software development, IT related books and things I do for a living.</description>
	<lastBuildDate>Thu, 21 Jul 2011 18:32:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeroen</title>
		<link>http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/comment-page-1/#comment-65</link>
		<dc:creator>Jeroen</dc:creator>
		<pubDate>Fri, 28 Jul 2006 12:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/#comment-65</guid>
		<description>Note to self, plan a visit to the optician.

You&#039;re right, I did take a look at the API docs. It&#039;s beyond me why I didn&#039;t see it for myself. lol</description>
		<content:encoded><![CDATA[<p>Note to self, plan a visit to the optician.</p>
<p>You&#8217;re right, I did take a look at the API docs. It&#8217;s beyond me why I didn&#8217;t see it for myself. lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/comment-page-1/#comment-64</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 28 Jul 2006 12:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/#comment-64</guid>
		<description>The constructor does exist, I use it all the time: &lt;a href=&quot;http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/layout/GridData.html#GridData(int, int, boolean, boolean)&quot; rel=&quot;nofollow&quot;&gt;GridData API docs&lt;/a&gt;. GridData.CENTER is just a deprecated alternative for SWT.CENTER.

If the toolbar is filled by contribution items at createControl time this should not  be any different from a statically filled toolbar. If it is filled dynamically it&#039;s still not a big deal: just call layout() on the parent element after you altered the toolbar items to re-align the control.</description>
		<content:encoded><![CDATA[<p>The constructor does exist, I use it all the time: <a href="http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/layout/GridData.html#GridData(int, int, boolean, boolean)" rel="nofollow">GridData API docs</a>. GridData.CENTER is just a deprecated alternative for SWT.CENTER.</p>
<p>If the toolbar is filled by contribution items at createControl time this should not  be any different from a statically filled toolbar. If it is filled dynamically it&#8217;s still not a big deal: just call layout() on the parent element after you altered the toolbar items to re-align the control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen</title>
		<link>http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/comment-page-1/#comment-63</link>
		<dc:creator>Jeroen</dc:creator>
		<pubDate>Thu, 27 Jul 2006 22:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/#comment-63</guid>
		<description>Well, that constructor does not exist. But GridData.CENTER does. I&#039;ll have to try if it works. I&#039;m not sure, but I do think I tried it with this.

I didn&#039;t mention that the control that has to be centered is a toolbar filled with actions by contribution items. It does complicate things a bit. ;)</description>
		<content:encoded><![CDATA[<p>Well, that constructor does not exist. But GridData.CENTER does. I&#8217;ll have to try if it works. I&#8217;m not sure, but I do think I tried it with this.</p>
<p>I didn&#8217;t mention that the control that has to be centered is a toolbar filled with actions by contribution items. It does complicate things a bit. <img src='http://blog.leenarts.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/comment-page-1/#comment-62</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 27 Jul 2006 22:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/27/how-the-heck-do-i-center-somthing-in-swt/#comment-62</guid>
		<description>control.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true)); ?</description>
		<content:encoded><![CDATA[<p>control.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true)); ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

