<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.byte-welt.net/index.php?action=history&amp;feed=atom&amp;title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen</id>
	<title>Breite von Tabellenspalten automatisch am Zelleninhalt anpassen - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.byte-welt.net/index.php?action=history&amp;feed=atom&amp;title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen"/>
	<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;action=history"/>
	<updated>2026-07-31T10:07:24Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Byte-Welt Wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=7820&amp;oldid=prev</id>
		<title>L-ectron-X am 28. März 2018 um 08:33 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=7820&amp;oldid=prev"/>
		<updated>2018-03-28T08:33:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 28. März 2018, 08:33 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l175&quot;&gt;Zeile 175:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 175:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Java]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Swing]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Swing]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java-Codeschnipsel]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java-Codeschnipsel]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:JTable]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:JTable]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bytewelt_wiki:diff:1.41:old-7621:rev-7820:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>L-ectron-X</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=7621&amp;oldid=prev</id>
		<title>L-ectron-X am 8. März 2018 um 09:59 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=7621&amp;oldid=prev"/>
		<updated>2018-03-08T09:59:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 8. März 2018, 09:59 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Zeile 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dieser im folgenden vorgestellte Java-Code demonstriert, wie man ein solches Verhalten erreichen kann:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dieser im folgenden vorgestellte Java-Code demonstriert, wie man ein solches Verhalten erreichen kann:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * AutofitTableColumns.java&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * AutofitTableColumns.java&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l173&quot;&gt;Zeile 173:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 173:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>L-ectron-X</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=7056&amp;oldid=prev</id>
		<title>L-ectron-x: L-ectron-x verschob die Seite Breite von von Tabellenspalten automatisch am Zellinhalt anpassen nach Breite von Tabellenspalten automatisch am Zelleninhalt anpassen, ohne dabei eine Weiterleitung anzulegen</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=7056&amp;oldid=prev"/>
		<updated>2017-04-20T12:56:59Z</updated>

		<summary type="html">&lt;p&gt;L-ectron-x verschob die Seite &lt;a href=&quot;/index.php?title=Breite_von_von_Tabellenspalten_automatisch_am_Zellinhalt_anpassen&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Breite von von Tabellenspalten automatisch am Zellinhalt anpassen (Seite nicht vorhanden)&quot;&gt;Breite von von Tabellenspalten automatisch am Zellinhalt anpassen&lt;/a&gt; nach &lt;a href=&quot;/index.php/Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&quot; title=&quot;Breite von Tabellenspalten automatisch am Zelleninhalt anpassen&quot;&gt;Breite von Tabellenspalten automatisch am Zelleninhalt anpassen&lt;/a&gt;, ohne dabei eine Weiterleitung anzulegen&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 20. April 2017, 12:56 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>L-ectron-x</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=6405&amp;oldid=prev</id>
		<title>L-ectron-x: hat „AutofitTableColumns“ nach „Breite von von Tabellenspalten automatisch am Zellinhalt anpassen“ verschoben: Titel war nichts sagend</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=6405&amp;oldid=prev"/>
		<updated>2014-05-08T09:46:18Z</updated>

		<summary type="html">&lt;p&gt;hat „&lt;a href=&quot;/index.php/AutofitTableColumns&quot; class=&quot;mw-redirect&quot; title=&quot;AutofitTableColumns&quot;&gt;AutofitTableColumns&lt;/a&gt;“ nach „&lt;a href=&quot;/index.php?title=Breite_von_von_Tabellenspalten_automatisch_am_Zellinhalt_anpassen&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Breite von von Tabellenspalten automatisch am Zellinhalt anpassen (Seite nicht vorhanden)&quot;&gt;Breite von von Tabellenspalten automatisch am Zellinhalt anpassen&lt;/a&gt;“ verschoben: Titel war nichts sagend&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 8. Mai 2014, 09:46 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>L-ectron-x</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=5197&amp;oldid=prev</id>
		<title>L-ectron-x am 29. Dezember 2012 um 12:52 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=5197&amp;oldid=prev"/>
		<updated>2012-12-29T12:52:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 29. Dezember 2012, 12:52 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Oftmals möchte man, dass sich die Breite von von Tabellenspalten (JTable) automatisch an den (längsten) Zellinhalt anpasst.&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dieser im folgenden vorgestellte Java-Code demonstriert, wie man ein solches Verhalten erreichen kann:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code=java&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code=java&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>L-ectron-x</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=5002&amp;oldid=prev</id>
		<title>AndreUhres am 28. Januar 2012 um 07:21 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=5002&amp;oldid=prev"/>
		<updated>2012-01-28T07:21:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 28. Januar 2012, 07:21 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l175&quot;&gt;Zeile 175:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 175:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Swing]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Swing]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java-Codeschnipsel]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java-Codeschnipsel]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:JTable]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndreUhres</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=4846&amp;oldid=prev</id>
		<title>AndreUhres am 24. September 2011 um 23:09 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=4846&amp;oldid=prev"/>
		<updated>2011-09-24T23:09:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 24. September 2011, 23:09 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l171&quot;&gt;Zeile 171:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 171:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/code=java&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/code=java&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Java]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Swing]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Java-Codeschnipsel]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndreUhres</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=4845&amp;oldid=prev</id>
		<title>AndreUhres: Die Seite wurde neu angelegt: „&lt;code=java&gt; /*  * AutofitTableColumns.java  * @author: omcgovern  * 23.06.2007 added &quot;fit&quot;-option: uhrand (André Uhres)  */  import java.awt.*; import javax.swin…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Breite_von_Tabellenspalten_automatisch_am_Zelleninhalt_anpassen&amp;diff=4845&amp;oldid=prev"/>
		<updated>2011-09-24T23:08:03Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;code=java&amp;gt; &lt;span class=&quot;autocomment&quot;&gt;* AutofitTableColumns.java  * @author: omcgovern  * 23.06.2007 added &amp;quot;fit&amp;quot;-option: uhrand (André Uhres): &lt;/span&gt;  import java.awt.*; import javax.swin…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;code=java&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * AutofitTableColumns.java&lt;br /&gt;
 * @author: omcgovern&lt;br /&gt;
 * 23.06.2007 added &amp;quot;fit&amp;quot;-option: uhrand (André Uhres)&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
import javax.swing.*;&lt;br /&gt;
import javax.swing.text.*;&lt;br /&gt;
import javax.swing.table.*;&lt;br /&gt;
&lt;br /&gt;
public class AutofitTableColumns {&lt;br /&gt;
&lt;br /&gt;
    private static final int DEFAULT_COLUMN_PADDING = 5;&lt;br /&gt;
    /*&lt;br /&gt;
     * @param JTable aTable, the JTable to autoresize the columns on&lt;br /&gt;
     * @param boolean includeColumnHeaderWidth, use the Column Header width as a minimum width&lt;br /&gt;
     * @returns The table width, just in case the caller wants it...&lt;br /&gt;
     */&lt;br /&gt;
&lt;br /&gt;
    public static int autoResizeTable(JTable aTable, boolean includeColumnHeaderWidth) {&lt;br /&gt;
        return (autoResizeTable(aTable, includeColumnHeaderWidth, DEFAULT_COLUMN_PADDING));&lt;br /&gt;
    }&lt;br /&gt;
    /*&lt;br /&gt;
     * @param JTable aTable, the JTable to autoresize the columns on&lt;br /&gt;
     * @param boolean includeColumnHeaderWidth, use the Column Header width as a minimum width&lt;br /&gt;
     * @param int columnPadding, how many extra pixels do you want on the end of each column&lt;br /&gt;
     * @returns The table width, just in case the caller wants it...&lt;br /&gt;
     */&lt;br /&gt;
&lt;br /&gt;
    public static int autoResizeTable(JTable aTable, boolean includeColumnHeaderWidth, int columnPadding) {&lt;br /&gt;
        return (autoResizeTable(aTable, includeColumnHeaderWidth, columnPadding, false));&lt;br /&gt;
    }&lt;br /&gt;
    /*&lt;br /&gt;
     * @param JTable aTable, the JTable to autoresize the columns on&lt;br /&gt;
     * @param boolean includeColumnHeaderWidth, use the Column Header width as a minimum width&lt;br /&gt;
     * @param int columnPadding, how many extra pixels do you want on the end of each column&lt;br /&gt;
     * @param boolean fit, if you want the whole visible Area to be used&lt;br /&gt;
     * @returns The table width, just in case the caller wants it...&lt;br /&gt;
     */&lt;br /&gt;
&lt;br /&gt;
    public static int autoResizeTable(JTable aTable, boolean includeColumnHeaderWidth, int columnPadding, boolean fit) {&lt;br /&gt;
        // NOTE: the &amp;quot;fit&amp;quot;-option has been added by uhrand&lt;br /&gt;
        int columnCount = aTable.getColumnCount();&lt;br /&gt;
        int currentTableWidth = aTable.getWidth();&lt;br /&gt;
        int tableWidth = 0;&lt;br /&gt;
        Dimension cellSpacing = aTable.getIntercellSpacing();&lt;br /&gt;
        if (columnCount &amp;gt; 0) // must have columns !&lt;br /&gt;
        {&lt;br /&gt;
            // STEP ONE : Work out the column widths&lt;br /&gt;
            int columnWidth[] = new int[columnCount];&lt;br /&gt;
            for (int i = 0; i &amp;lt; columnCount; i++) {&lt;br /&gt;
                columnWidth[i] = getMaxColumnWidth(aTable, i, true, columnPadding);&lt;br /&gt;
                tableWidth += columnWidth[i];&lt;br /&gt;
            }&lt;br /&gt;
            // account for cell spacing too&lt;br /&gt;
            tableWidth += ((columnCount - 1) * cellSpacing.width);&lt;br /&gt;
            // STEP TWO : Dynamically resize each column&lt;br /&gt;
            // try changing the size of the column names area&lt;br /&gt;
            JTableHeader tableHeader = aTable.getTableHeader();&lt;br /&gt;
            Dimension headerDim = tableHeader.getPreferredSize();&lt;br /&gt;
            // headerDim.height = tableHeader.getHeight();&lt;br /&gt;
            headerDim.width = tableWidth;&lt;br /&gt;
//            tableHeader.setPreferredSize( headerDim );//commented out by uhrand (caused resize bug)&lt;br /&gt;
            Dimension interCellSpacing = aTable.getIntercellSpacing();&lt;br /&gt;
            Dimension dim = new Dimension();&lt;br /&gt;
            int rowHeight = aTable.getRowHeight();&lt;br /&gt;
            if (rowHeight == 0) {&lt;br /&gt;
                rowHeight = 16;    // default rowheight&lt;br /&gt;
            }&lt;br /&gt;
            dim.height = headerDim.height + ((rowHeight + interCellSpacing.height) * aTable.getRowCount());&lt;br /&gt;
            dim.width = tableWidth;&lt;br /&gt;
            // aTable.setPreferredSize ( dim );&lt;br /&gt;
            int viewWidth = currentTableWidth;          //uhrand&lt;br /&gt;
            Component parent = aTable.getParent();      //uhrand&lt;br /&gt;
            if (parent instanceof JViewport) {            //uhrand&lt;br /&gt;
                JViewport port = (JViewport) parent;     //uhrand&lt;br /&gt;
                viewWidth = port.getExtentSize().width; //uhrand&lt;br /&gt;
            }                                           //uhrand&lt;br /&gt;
            if (fit &amp;amp;&amp;amp; tableWidth != viewWidth) {         //uhrand&lt;br /&gt;
                int corr = (viewWidth - //uhrand&lt;br /&gt;
                        tableWidth) / columnCount;      //uhrand&lt;br /&gt;
                tableWidth = 0;                         //uhrand&lt;br /&gt;
                for (int i = 0; i &amp;lt; columnCount; i++) {  //uhrand&lt;br /&gt;
                    columnWidth[i] += corr;             //uhrand&lt;br /&gt;
                    tableWidth += columnWidth[i];       //uhrand&lt;br /&gt;
                }                                       //uhrand&lt;br /&gt;
                if (tableWidth != viewWidth) {            //uhrand&lt;br /&gt;
                    columnWidth[columnCount - 1] += //uhrand&lt;br /&gt;
                            (viewWidth - tableWidth);   //uhrand&lt;br /&gt;
                    tableWidth = viewWidth;             //uhrand&lt;br /&gt;
                }                                       //uhrand&lt;br /&gt;
            }                                           //uhrand&lt;br /&gt;
            TableColumnModel tableColumnModel = aTable.getColumnModel();&lt;br /&gt;
            TableColumn tableColumn;&lt;br /&gt;
            for (int i = 0; i &amp;lt; columnCount; i++) {&lt;br /&gt;
                tableColumn = tableColumnModel.getColumn(i);&lt;br /&gt;
//                System.out.println(tableColumn.getHeaderValue()+&amp;quot; &amp;quot;+columnWidth[i]);&lt;br /&gt;
                tableColumn.setPreferredWidth(columnWidth[i]);&lt;br /&gt;
            }&lt;br /&gt;
            aTable.invalidate();&lt;br /&gt;
            aTable.doLayout();&lt;br /&gt;
            aTable.repaint();&lt;br /&gt;
        }&lt;br /&gt;
        return (tableWidth);&lt;br /&gt;
    }&lt;br /&gt;
    /*&lt;br /&gt;
     * @param JTable aTable, the JTable to autoresize the columns on&lt;br /&gt;
     * @param int columnNo, the column number, starting at zero, to calculate the maximum width on&lt;br /&gt;
     * @param boolean includeColumnHeaderWidth, use the Column Header width as a minimum width&lt;br /&gt;
     * @param int columnPadding, how many extra pixels do you want on the end of each column&lt;br /&gt;
     * @returns The maximum Column Width&lt;br /&gt;
     */&lt;br /&gt;
&lt;br /&gt;
    private static int getMaxColumnWidth(JTable aTable, int columnNo,&lt;br /&gt;
            boolean includeColumnHeaderWidth,&lt;br /&gt;
            int columnPadding) {&lt;br /&gt;
        TableColumn column = aTable.getColumnModel().getColumn(columnNo);&lt;br /&gt;
        Component comp = null;&lt;br /&gt;
        int maxWidth = 0;&lt;br /&gt;
        if (includeColumnHeaderWidth) {&lt;br /&gt;
            TableCellRenderer headerRenderer = column.getHeaderRenderer();&lt;br /&gt;
            if (headerRenderer != null) {&lt;br /&gt;
                comp = headerRenderer.getTableCellRendererComponent(aTable, column.getHeaderValue(), false, false, 0, columnNo);&lt;br /&gt;
                if (comp instanceof JTextComponent) {&lt;br /&gt;
                    JTextComponent jtextComp = (JTextComponent) comp;&lt;br /&gt;
                    String text = jtextComp.getText();&lt;br /&gt;
                    Font font = jtextComp.getFont();&lt;br /&gt;
                    FontMetrics fontMetrics = jtextComp.getFontMetrics(font);&lt;br /&gt;
                    maxWidth = SwingUtilities.computeStringWidth(fontMetrics, text);&lt;br /&gt;
                } else {&lt;br /&gt;
                    maxWidth = comp.getPreferredSize().width;&lt;br /&gt;
                }&lt;br /&gt;
            } else {&lt;br /&gt;
                try {&lt;br /&gt;
                    String headerText = (String) column.getHeaderValue();&lt;br /&gt;
                    JLabel defaultLabel = new JLabel(headerText);&lt;br /&gt;
                    Font font = defaultLabel.getFont();&lt;br /&gt;
                    FontMetrics fontMetrics = defaultLabel.getFontMetrics(font);&lt;br /&gt;
                    maxWidth = SwingUtilities.computeStringWidth(fontMetrics, headerText);&lt;br /&gt;
                } catch (final ClassCastException ce) {&lt;br /&gt;
                    // Can&amp;#039;t work out the header column width..&lt;br /&gt;
                    maxWidth = 0;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        TableCellRenderer tableCellRenderer;&lt;br /&gt;
        int cellWidth = 0;&lt;br /&gt;
        for (int i = 0; i &amp;lt; aTable.getRowCount(); i++) {&lt;br /&gt;
            tableCellRenderer = aTable.getCellRenderer(i, columnNo);&lt;br /&gt;
            comp = tableCellRenderer.getTableCellRendererComponent(aTable, aTable.getValueAt(i, columnNo), false, false, i, columnNo);&lt;br /&gt;
            if (comp instanceof JTextComponent) {&lt;br /&gt;
                JTextComponent jtextComp = (JTextComponent) comp;&lt;br /&gt;
                String text = jtextComp.getText();&lt;br /&gt;
                Font font = jtextComp.getFont();&lt;br /&gt;
                FontMetrics fontMetrics = jtextComp.getFontMetrics(font);&lt;br /&gt;
                int textWidth = SwingUtilities.computeStringWidth(fontMetrics, text);&lt;br /&gt;
                maxWidth = Math.max(maxWidth, textWidth);&lt;br /&gt;
            } else {&lt;br /&gt;
                cellWidth = comp.getPreferredSize().width;&lt;br /&gt;
                // maxWidth = Math.max ( headerWidth, cellWidth );&lt;br /&gt;
                maxWidth = Math.max(maxWidth, cellWidth);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        return (maxWidth + columnPadding);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private AutofitTableColumns() {&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code=java&amp;gt;&lt;/div&gt;</summary>
		<author><name>AndreUhres</name></author>
	</entry>
</feed>