<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>http://wiki.dcae.pub.ro/index.php?action=history&amp;feed=atom&amp;title=Graphical_User_Interface_%28GUI%29_-_Java_Swing</id>
	<title>Graphical User Interface (GUI) - Java Swing - Revizia istoricului</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.dcae.pub.ro/index.php?action=history&amp;feed=atom&amp;title=Graphical_User_Interface_%28GUI%29_-_Java_Swing"/>
	<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;action=history"/>
	<updated>2026-05-28T19:20:10Z</updated>
	<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=3953&amp;oldid=prev</id>
		<title>Zhascsi: /* Example */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=3953&amp;oldid=prev"/>
		<updated>2015-12-05T01:59:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 5 decembrie 2015 01:59&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-l165&quot; &gt;Linia 165:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 165:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Rezultatul arată așa&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;The GUI appears like that&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:testframe.png|The execution result of the code above]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:testframe.png|The execution result of the code above]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zhascsi</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1623&amp;oldid=prev</id>
		<title>Rhobincu: a redenumit Graphical User Interface (GUI) - Java Swing and JavaFX în Graphical User Interface (GUI) - Java Swing</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1623&amp;oldid=prev"/>
		<updated>2013-12-23T14:29:40Z</updated>

		<summary type="html">&lt;p&gt;a redenumit &lt;a href=&quot;/index.php/Graphical_User_Interface_(GUI)_-_Java_Swing_and_JavaFX&quot; class=&quot;mw-redirect&quot; title=&quot;Graphical User Interface (GUI) - Java Swing and JavaFX&quot;&gt;Graphical User Interface (GUI) - Java Swing and JavaFX&lt;/a&gt; în &lt;a href=&quot;/index.php/Graphical_User_Interface_(GUI)_-_Java_Swing&quot; title=&quot;Graphical User Interface (GUI) - Java Swing&quot;&gt;Graphical User Interface (GUI) - Java Swing&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ro&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:29&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ro&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Nicio diferență)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1622&amp;oldid=prev</id>
		<title>Rhobincu: /* JavaFX */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1622&amp;oldid=prev"/>
		<updated>2013-12-23T14:29:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;JavaFX&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:29&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;Linia 171:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 171:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;To create more complex frames, you need use other types of &amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039; classes, elements of type [http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html javax.swing.JScrollPane], or, you can use an integrated developing environment (IDE) like [http://netbeans.org/kb/docs/java/quickstart.html Netbeans] to visually create the interface.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;To create more complex frames, you need use other types of &amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039; classes, elements of type [http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html javax.swing.JScrollPane], or, you can use an integrated developing environment (IDE) like [http://netbeans.org/kb/docs/java/quickstart.html Netbeans] to visually create the interface.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;&amp;lt;!--&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;== JavaFX ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;== JavaFX ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l404&quot; &gt;Linia 404:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 405:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;Pentru JavaFX există o aplicație care permite dezvoltarea vizuală de interfețe grafice, numită [http://www.oracle.com/technetwork/java/javafx/tools/index.html JavaFX Scene Builder].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;Pentru JavaFX există o aplicație care permite dezvoltarea vizuală de interfețe grafice, numită [http://www.oracle.com/technetwork/java/javafx/tools/index.html JavaFX Scene Builder].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1621&amp;oldid=prev</id>
		<title>Rhobincu: /* Exemplu */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1621&amp;oldid=prev"/>
		<updated>2013-12-23T14:27:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Exemplu&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:27&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-l72&quot; &gt;Linia 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 72:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;More about handlers in the [http://docs.oracle.com/javase/tutorial/uiswing/events/index.html Oracle tutorial].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;More about handlers in the [http://docs.oracle.com/javase/tutorial/uiswing/events/index.html Oracle tutorial].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Exemplu &lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Example &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Vom descrie un &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;care conține două &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;două &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;un &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;și un &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Când se apasă butonul&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cele două &amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039; se vor încărca cu valorile dimensiunii &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;-ului și se va scrie un caracter &amp;#039;&lt;/del&gt;&amp;#039;x&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039; în &amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039;&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;We will write a &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that contains two&lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;two &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;one &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and one &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;When the button is pressed&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the two text fields will be loaded with the dimensions of the frame and an &lt;/ins&gt;&amp;#039;x&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;character will be appended to the text area&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 lang=&amp;quot;java&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 lang=&amp;quot;java&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l166&quot; &gt;Linia 166:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 167:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;Rezultatul arată așa:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;Rezultatul arată așa:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:testframe.png|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Codul de mai sus, rulat&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:testframe.png|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The execution result of the code above&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Pentru a crea frame-uri mai complexe&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;trebuie să folosiți alte tipuri de &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;elemente de tip &lt;/del&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html javax.swing.JScrollPane], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sau&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;puteți utiliza un mediu de dezvoltare, gen &lt;/del&gt;[http://netbeans.org/kb/docs/java/quickstart.html Netbeans] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pentru a crea în mod vizual interfața&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;To create more complex frames&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;you need use other types of &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;classes&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;elements of type &lt;/ins&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html javax.swing.JScrollPane], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;you can use an integrated developing environment (IDE) like &lt;/ins&gt;[http://netbeans.org/kb/docs/java/quickstart.html Netbeans] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;to visually create the interface&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;== JavaFX ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;== JavaFX ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1620&amp;oldid=prev</id>
		<title>Rhobincu: /* Event Handlers */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1620&amp;oldid=prev"/>
		<updated>2013-12-23T14:23:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Event Handlers&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:23&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-l63&quot; &gt;Linia 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Event Handlers ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Event Handlers ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Fiecare &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JComponent&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;suportă o listă de evenimente la care e sensibil&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Fiecărui eveniment i se poate asociaza o acțiune care se execută când acel eveniment se declanșează&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;De exemplu&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;când un buton este apăsat&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sau când cursorul de la &lt;/del&gt;mouse &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a intrat în zona ocupată de componentă&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sau când s-&lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;tastat ceva într-o zonă de &lt;/del&gt;text, etc. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Aceste &amp;#039;&amp;#039;handler&amp;#039;&amp;#039;-e sunt&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;de fapt&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;niște metode&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;definite în anumite interfețe&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Aceste metode se excută în paralel cu programul principal (ca și thread-uri) în momentul în care evenimentul se declanșează&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Metodele care adaugă un &amp;#039;&amp;#039;handler&amp;#039;&amp;#039; unui obiect sunt de forma&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Every &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JComponent&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;supports a list of events which it is sensitive to&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;To each event, an action can be associated which is executed when that event is triggered&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;For example&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;then a button is pressed&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or when the &lt;/ins&gt;mouse &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;moves over the component&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or when something is typed in &lt;/ins&gt;a text &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;component&lt;/ins&gt;, etc. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;These handlers are&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in fact&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;methods&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;defined in certain interfaces&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;These methods are executed in parallel with the main program, as threads, in the moment when the event is triggered&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Methods that add a handled to a component look like this&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;public void addActionListener(ActionListener _listener)&amp;#039;&amp;#039; - &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pentru evenimente de tip &lt;/del&gt;&amp;#039;&amp;#039;action&amp;#039;&amp;#039;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;adică activarea unui &lt;/del&gt;component (click &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pe un buton&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;enter într-un &lt;/del&gt;text field, etc.);&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;public void addActionListener(ActionListener _listener)&amp;#039;&amp;#039; - &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;for &lt;/ins&gt;&amp;#039;&amp;#039;action&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;type events&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;meaning activating a &lt;/ins&gt;component (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;like &lt;/ins&gt;click &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;on a button&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;writing a text in a &lt;/ins&gt;text field, etc.);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;public void addMouseListener(MouseListener _listener)&amp;#039;&amp;#039; - &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pentru evenimente legate de &lt;/del&gt;mouse;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;public void addMouseListener(MouseListener _listener)&amp;#039;&amp;#039; - &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;for events related to the &lt;/ins&gt;mouse;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;* etc.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;* etc.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Același &lt;/del&gt;handler &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;poate fi asociat mai multor elemente&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;iar în acest caz&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pentru a știi care obiect a generat evenimentul&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;se folosește metoda &lt;/del&gt;&amp;#039;&amp;#039;getSource()&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;definită în clasa &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;java.util.EventObject&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;care este superclasă pentru toate obiectele primite ca argumente de metode de tip &lt;/del&gt;handler ([http://docs.oracle.com/javase/7/docs/api/java/awt/event/ActionEvent.html java.awt.event.ActionEvent], [http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseEvent.html java.awt.event.MouseEvent], etc.). &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Metoda &lt;/del&gt;&amp;#039;&amp;#039;getSource()&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;întoarce o referință de tip &lt;/del&gt;Object &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;la componenta de interfață care a generat evenimentul&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;The same &lt;/ins&gt;handler &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;can be associated to multiple elements&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in which case&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in order to know which element triggered the event&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the method &lt;/ins&gt;&amp;#039;&amp;#039;getSource()&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is used, defined in class &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;java.util.EventObject&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;which is the superclass for all objects received as arguments by &lt;/ins&gt;handler &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;methods &lt;/ins&gt;([http://docs.oracle.com/javase/7/docs/api/java/awt/event/ActionEvent.html java.awt.event.ActionEvent], [http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseEvent.html java.awt.event.MouseEvent], etc.). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Method &lt;/ins&gt;&amp;#039;&amp;#039;getSource()&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;returns a reference of type &lt;/ins&gt;Object &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;to the component that generated the event&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Mai multe despre handler-e, în &lt;/del&gt;[http://docs.oracle.com/javase/tutorial/uiswing/events/index.html tutorial&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-ul Oracle&lt;/del&gt;].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;More about handlers in the &lt;/ins&gt;[http://docs.oracle.com/javase/tutorial/uiswing/events/index.html &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oracle &lt;/ins&gt;tutorial].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Exemplu ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Exemplu ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1619&amp;oldid=prev</id>
		<title>Rhobincu: /* Layouts */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1619&amp;oldid=prev"/>
		<updated>2013-12-23T14:16:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Layouts&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:16&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-l40&quot; &gt;Linia 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;O altă serie de clase necesară pentru implementarea unei interfețe grafice este setul de clase care extind interfața [http://docs.oracle.com/javase/7/docs/api/java/awt/LayoutManager.html java.awt.LayoutManager]. Aceste clase descriu modul în care elementele se așează într-un &amp;#039;&amp;#039;&amp;#039;Container&amp;#039;&amp;#039;&amp;#039;. Cele mai importante sunt:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;O altă serie de clase necesară pentru implementarea unei interfețe grafice este setul de clase care extind interfața [http://docs.oracle.com/javase/7/docs/api/java/awt/LayoutManager.html java.awt.LayoutManager]. Aceste clase descriu modul în care elementele se așează într-un &amp;#039;&amp;#039;&amp;#039;Container&amp;#039;&amp;#039;&amp;#039;. Cele mai importante sunt:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;Another series of classes required for implementing a GUI is the set of classes implementing interface [http://docs.oracle.com/javase/7/docs/api/java/awt/LayoutManager.html java.awt.LayoutManager]. These classes describe how elements are placed in a container. Some of them are:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/FlowLayout.html java.awt.FlowLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/FlowLayout.html java.awt.FlowLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;FlowLayout&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este utilizat pentru a așseza elementele pe orizontală&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;până când nu mai încap&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;în care situație se trece pe rândul următor&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Acesta este cel mai simplu tip de &lt;/del&gt;layout.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;FlowLayout&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is used to place elements horizontally&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;until they don&amp;#039;t fit anymore&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in which case, subsequent components are placed on the next line&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This is the simplest type of &lt;/ins&gt;layout.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/GridLayout.html java.awt.GridLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/GridLayout.html java.awt.GridLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;GridLayout&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este utilizat pentru &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;așseza elementele într-o matrice cu număr configurabil de linii și coloane&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;GridLayout&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is used to place components in &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;matrix with configurable size&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/BorderLayout.html java.awt.BorderLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/BorderLayout.html java.awt.BorderLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;BorderLayout&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este utilizat pentru a așseza elementele dealungul celor patru margini și în centru, adică &lt;/del&gt;NORTH, SOUTH, EAST, WEST &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;și &lt;/del&gt;CENTER. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Un singur &lt;/del&gt;element &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;poate fi plasat în fiecare din aceste poziții&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;BorderLayout&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is used to place elements along the four borders and in center: &lt;/ins&gt;NORTH, SOUTH, EAST, WEST &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;CENTER. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Only one &lt;/ins&gt;element &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;can be placed in either of the five positions&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/CardLayout.html java.awt.CardLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/java/awt/CardLayout.html java.awt.CardLayout] ====  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;CardLayout&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este utilizat pentru &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;adăuga mai multe componente unui &amp;#039;&amp;#039;&amp;#039;Container&amp;#039;&amp;#039;&amp;#039; din care doar unul este vizibil la un moment dat&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Acest tip de &amp;#039;&amp;#039;&lt;/del&gt;layout&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039; este util pentru generarea de aplicații tip &amp;#039;&amp;#039;&lt;/del&gt;wizard&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039; în care utilizatorul trece de la o fereastră la alta cu ajutorul unor butoane &lt;/del&gt;&amp;#039;&amp;#039;Next&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;și &lt;/del&gt;&amp;#039;&amp;#039;Previous&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;CardLayout&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is used to add more components to &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;container, from which only one is visible at any given time&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This type of &lt;/ins&gt;layout &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is useful to generate &lt;/ins&gt;wizard &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;type applications in which the user skips from one screen to the next and back by using &lt;/ins&gt;&amp;#039;&amp;#039;Next&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;&amp;#039;&amp;#039;Previous&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;buttons&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Mai multe despre elemente de tip Layout, în &lt;/del&gt;[http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html tutorial&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-ul Oracle&lt;/del&gt;].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;More about layouts in the &lt;/ins&gt;[http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oracle &lt;/ins&gt;tutorial].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Event Handlers ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Event Handlers ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1618&amp;oldid=prev</id>
		<title>Rhobincu: /* Components */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1618&amp;oldid=prev"/>
		<updated>2013-12-23T14:09:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Components&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:09&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-l19&quot; &gt;Linia 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html javax.swing.JPanel] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html javax.swing.JPanel] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JPanel&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este un &lt;/del&gt;container &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;generic care poate conține alte elemente&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Poate fi vizibil&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;schimbându-i-se culoarea &lt;/del&gt;background&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-ului&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sau modelul marginii&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sau invizibil&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;folosit doar pentru ierarhizarea conținutului&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Este indicat să nu plasați alte obiecte direct pe un &amp;#039;&amp;#039;&amp;#039;&lt;/del&gt;JFrame&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ci doar un &amp;#039;&amp;#039;&amp;#039;&lt;/del&gt;JPanel&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039;&amp;#039; care să conțină restul de elemente&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Acest lucru este foarte util și când aveți nevoie să schimbați complet elementele dintr-un &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, înlocuiți doar &amp;#039;&amp;#039;&amp;#039;JPanel&amp;#039;&amp;#039;&amp;#039;-ul&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JPanel&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is a generic &lt;/ins&gt;container &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that can hold other elements&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;It can be visible&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;changing the &lt;/ins&gt;background &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;color&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the image model or having a border&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or be invisible&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;only used for the hierarchy of the content&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;It is recommended not to place elements directly in a &lt;/ins&gt;JFrame, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;but in a &lt;/ins&gt;JPanel &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that is placed in a JFrame&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This is particularly useful when reusing a panel&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JLabel.html javax.swing.JLabel] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JLabel.html javax.swing.JLabel] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este un &lt;/del&gt;component &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;utilizat pentru &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;afișa text sau imagini într-un &lt;/del&gt;container.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is a &lt;/ins&gt;component &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;used to display text or image in &lt;/ins&gt;a container.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JButton.html javax.swing.JButton] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JButton.html javax.swing.JButton] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cum îi spune și numele&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;un buton&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Acesta poate avea afișat un &lt;/del&gt;text &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sau o imagine&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;De cele mai multe ori este utilizat asociindu-i-se un &lt;/del&gt;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;Event Handler&amp;#039;&amp;#039; de tip &lt;/del&gt;&amp;#039;&amp;#039;ActionListener&amp;#039;&amp;#039; (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;vezi &lt;/del&gt;[[#Event Handlers]]) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;care se declanșează când acesta este apăsat (se dă click pe el)&lt;/del&gt;.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as the name says&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a button&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This can have either a &lt;/ins&gt;text &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or an image displayed on top&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;It&lt;/ins&gt;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;s used by specifying an event handler of type &lt;/ins&gt;&amp;#039;&amp;#039;ActionListener&amp;#039;&amp;#039; (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;see &lt;/ins&gt;[[#Event Handlers]]) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;which is triggered when the button is clicked&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextField.html javax.swing.JTextField] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextField.html javax.swing.JTextField] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reprezintă o zonă în care se poate introduce &lt;/del&gt;text &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;scurt&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;de o singură linie&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Și acestul element i se poate asocia un &amp;#039;&amp;#039;Event Handler&amp;#039;&amp;#039; de tip &lt;/del&gt;&amp;#039;&amp;#039;ActionListener&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;care se declanșează când se apasă tasta &lt;/del&gt;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;în zona de editare&lt;/del&gt;.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is an area where a short &lt;/ins&gt;text &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;can be entered&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;on a single line&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This too can have an associated event handler of type &lt;/ins&gt;&amp;#039;&amp;#039;ActionListener&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;which is triggered when &lt;/ins&gt;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is pressed when the text field is focused&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextArea.html javax.swing.JTextArea] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextArea.html javax.swing.JTextArea] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reprezintă o zonă în care se poate introduce &lt;/del&gt;text &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;de mai multe linii&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is a component where you can add a large &lt;/ins&gt;text &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;on more than one line&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Layouts ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Layouts ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1617&amp;oldid=prev</id>
		<title>Rhobincu: /* Components */</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1617&amp;oldid=prev"/>
		<updated>2013-12-23T14:01:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Components&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 14:01&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-l15&quot; &gt;Linia 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Components ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Components ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Toate obiectele &lt;/del&gt;Swing, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cu excepția clasei &lt;/del&gt;&amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;moștenesc clasa &lt;/del&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/JComponent.html javax.swing.JComponent]&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, care la rândul ei moștenește &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;indirect&lt;/del&gt;) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;clasa &lt;/del&gt;[http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html java.awt.Container]. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Astfel&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;se creează o ierarhie de componente&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;fiecare &lt;/del&gt;element &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(numit &amp;#039;&amp;#039;&lt;/del&gt;parent&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039;) înglobând alte &lt;/del&gt;sub-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;componente (numite &amp;#039;&amp;#039;&lt;/del&gt;children&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;). În continuare se vor prezenta elementele necesare realizării temei &lt;/del&gt;6. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pentru descrierea altor elemente mai avansate&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;citiți &lt;/del&gt;[http://docs.oracle.com/javase/tutorial/uiswing/components/index.html tutorial&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-ul Oracle&lt;/del&gt;].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;All &lt;/ins&gt;Swing &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;objects&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;with the exception of class &lt;/ins&gt;&amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;inherit class &lt;/ins&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/JComponent.html javax.swing.JComponent] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;which in turn inherits &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;indirectly&lt;/ins&gt;) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;class &lt;/ins&gt;[http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html java.awt.Container]. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;So&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;there is a hierarchy of components&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;each &lt;/ins&gt;element &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;called &lt;/ins&gt;parent &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;containing other &lt;/ins&gt;sub-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;components called &lt;/ins&gt;children&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Next, we&lt;/ins&gt;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ll present the elements required for task &lt;/ins&gt;6. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;For a more detailed description&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;read &lt;/ins&gt;[http://docs.oracle.com/javase/tutorial/uiswing/components/index.html &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the Oracle &lt;/ins&gt;tutorial].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html javax.swing.JPanel] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html javax.swing.JPanel] ====&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-l35&quot; &gt;Linia 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextArea.html javax.swing.JTextArea] ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextArea.html javax.swing.JTextArea] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; reprezintă o zonă în care se poate introduce text de mai multe linii.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; reprezintă o zonă în care se poate introduce text de mai multe linii.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Layouts ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;=== Layouts ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1616&amp;oldid=prev</id>
		<title>Rhobincu la 23 decembrie 2013 13:53</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1616&amp;oldid=prev"/>
		<updated>2013-12-23T13:53:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 23 decembrie 2013 13:53&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;Linia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;În multe dintre aplicațiile pe care le veți dezvolta folosing &lt;/del&gt;Java, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;veți avea nevoie și de o interfață grafică adecvată&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ferestre&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;butoane&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;câmpuri de editare&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;checkbox­uri&lt;/del&gt;, etc. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Există mai multe biblioteci de dezvoltare pentru interfețe grafice&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cea mai cunoscută fiind &lt;/del&gt;[http://docs.oracle.com/javase/tutorial/ui/overview/index.html Java Swing] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;și cea mai nouă fiind &lt;/del&gt;[http://docs.oracle.com/javafx/index.html JavaFX].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;In many of the applications that you will develop in &lt;/ins&gt;Java, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;you will also need an adequate graphical interface&lt;/ins&gt;: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;windows&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;buttons&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;edit fields&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;checkboxes&lt;/ins&gt;, etc. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;There are several libraries used for developing graphical interfaces&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the most popular being &lt;/ins&gt;[http://docs.oracle.com/javase/tutorial/ui/overview/index.html Java Swing] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and the most recent being &lt;/ins&gt;[http://docs.oracle.com/javafx/index.html JavaFX].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;== Java Swing ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;== Java Swing ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Pachetul care conține majoritatea claselor pentru aplicațiile &lt;/del&gt;Swing &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;este &lt;/del&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html java.swing] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dar sunt utilizate și multe din clasele din vechea biblotecă GUI&lt;/del&gt;, [http://docs.oracle.com/javase/7/docs/api/java/awt/package-summary.html java.awt]. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Clasa principală pentru aplicații Java Swing este clasa &lt;/del&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html javax.swing.JFrame].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;The package that contains the majority of classes for &lt;/ins&gt;Swing &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;applications is &lt;/ins&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html java.swing], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;some other other classes are used from the older package &lt;/ins&gt;[http://docs.oracle.com/javase/7/docs/api/java/awt/package-summary.html java.awt]. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The main container class for GUI elements is &lt;/ins&gt;[http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html javax.swing.JFrame].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;Frame&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-ul este fereastra principală a unei interfețe grafice&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Este elementul care are asociată bara de deasupra, care conține &lt;/del&gt;icon&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-ul&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;numele aplicației și cele trei butoane: &lt;/del&gt;minimize, maximize&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/del&gt;close:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/ins&gt;Frame &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is the main window of the GUI&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;It&amp;#039;s the element associated with the horizontal bar containing the &lt;/ins&gt;icon, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;application name and the three buttons &lt;/ins&gt;minimize, maximize &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;close:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:emptyframe.png|Exemplu de frame fără elemente]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:emptyframe.png|Exemplu de frame fără elemente]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;În continuare este prezentat un frame ce conține cele mai utilizate componente &lt;/del&gt;Swing:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;This is a JFrame containing the most used elements in &lt;/ins&gt;Swing:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:fullframe.png|Exemplu de frame cu elemente]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Fișier:fullframe.png|Exemplu de frame cu elemente]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Componente &lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Components &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;Toate obiectele Swing, cu excepția clasei &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, moștenesc clasa [http://docs.oracle.com/javase/7/docs/api/javax/swing/JComponent.html javax.swing.JComponent], care la rândul ei moștenește (indirect) clasa [http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html java.awt.Container]. Astfel, se creează o ierarhie de componente, fiecare element (numit &amp;#039;&amp;#039;parent&amp;#039;&amp;#039;) înglobând alte sub-componente (numite &amp;#039;&amp;#039;children&amp;#039;&amp;#039;). În continuare se vor prezenta elementele necesare realizării temei 6. Pentru descrierea altor elemente mai avansate, citiți [http://docs.oracle.com/javase/tutorial/uiswing/components/index.html tutorial-ul Oracle].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;Toate obiectele Swing, cu excepția clasei &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, moștenesc clasa [http://docs.oracle.com/javase/7/docs/api/javax/swing/JComponent.html javax.swing.JComponent], care la rândul ei moștenește (indirect) clasa [http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html java.awt.Container]. Astfel, se creează o ierarhie de componente, fiecare element (numit &amp;#039;&amp;#039;parent&amp;#039;&amp;#039;) înglobând alte sub-componente (numite &amp;#039;&amp;#039;children&amp;#039;&amp;#039;). În continuare se vor prezenta elementele necesare realizării temei 6. Pentru descrierea altor elemente mai avansate, citiți [http://docs.oracle.com/javase/tutorial/uiswing/components/index.html tutorial-ul Oracle].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
	<entry>
		<id>http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1615&amp;oldid=prev</id>
		<title>Rhobincu: Pagină nouă: În multe dintre aplicațiile pe care le veți dezvolta folosing Java, veți avea nevoie și de o interfață grafică adecvată: ferestre, butoane, câmpuri de editare, checkbox­uri...</title>
		<link rel="alternate" type="text/html" href="http://wiki.dcae.pub.ro/index.php?title=Graphical_User_Interface_(GUI)_-_Java_Swing&amp;diff=1615&amp;oldid=prev"/>
		<updated>2013-12-23T13:47:39Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: În multe dintre aplicațiile pe care le veți dezvolta folosing Java, veți avea nevoie și de o interfață grafică adecvată: ferestre, butoane, câmpuri de editare, checkbox­uri...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&lt;/b&gt;&lt;/p&gt;&lt;div&gt;În multe dintre aplicațiile pe care le veți dezvolta folosing Java, veți avea nevoie și de o interfață grafică adecvată: ferestre, butoane, câmpuri de editare, checkbox­uri, etc. Există mai multe biblioteci de dezvoltare pentru interfețe grafice, cea mai cunoscută fiind [http://docs.oracle.com/javase/tutorial/ui/overview/index.html Java Swing] și cea mai nouă fiind [http://docs.oracle.com/javafx/index.html JavaFX].&lt;br /&gt;
&lt;br /&gt;
== Java Swing ==&lt;br /&gt;
&lt;br /&gt;
Pachetul care conține majoritatea claselor pentru aplicațiile Swing este [http://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html java.swing] dar sunt utilizate și multe din clasele din vechea biblotecă GUI, [http://docs.oracle.com/javase/7/docs/api/java/awt/package-summary.html java.awt]. Clasa principală pentru aplicații Java Swing este clasa [http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html javax.swing.JFrame].&lt;br /&gt;
&lt;br /&gt;
Frame-ul este fereastra principală a unei interfețe grafice. Este elementul care are asociată bara de deasupra, care conține icon-ul, numele aplicației și cele trei butoane: minimize, maximize, close:&lt;br /&gt;
&lt;br /&gt;
[[Fișier:emptyframe.png|Exemplu de frame fără elemente]]&lt;br /&gt;
&lt;br /&gt;
În continuare este prezentat un frame ce conține cele mai utilizate componente Swing:&lt;br /&gt;
&lt;br /&gt;
[[Fișier:fullframe.png|Exemplu de frame cu elemente]]&lt;br /&gt;
&lt;br /&gt;
=== Componente ===&lt;br /&gt;
&lt;br /&gt;
Toate obiectele Swing, cu excepția clasei &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, moștenesc clasa [http://docs.oracle.com/javase/7/docs/api/javax/swing/JComponent.html javax.swing.JComponent], care la rândul ei moștenește (indirect) clasa [http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html java.awt.Container]. Astfel, se creează o ierarhie de componente, fiecare element (numit &amp;#039;&amp;#039;parent&amp;#039;&amp;#039;) înglobând alte sub-componente (numite &amp;#039;&amp;#039;children&amp;#039;&amp;#039;). În continuare se vor prezenta elementele necesare realizării temei 6. Pentru descrierea altor elemente mai avansate, citiți [http://docs.oracle.com/javase/tutorial/uiswing/components/index.html tutorial-ul Oracle].&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html javax.swing.JPanel] ====&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JPanel&amp;#039;&amp;#039;&amp;#039; este un container generic care poate conține alte elemente. Poate fi vizibil, schimbându-i-se culoarea background-ului, sau modelul marginii, sau invizibil, folosit doar pentru ierarhizarea conținutului. Este indicat să nu plasați alte obiecte direct pe un &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, ci doar un &amp;#039;&amp;#039;&amp;#039;JPanel&amp;#039;&amp;#039;&amp;#039; care să conțină restul de elemente. Acest lucru este foarte util și când aveți nevoie să schimbați complet elementele dintr-un &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, înlocuiți doar &amp;#039;&amp;#039;&amp;#039;JPanel&amp;#039;&amp;#039;&amp;#039;-ul.&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JLabel.html javax.swing.JLabel] ====&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039; este un component utilizat pentru a afișa text sau imagini într-un container.&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JButton.html javax.swing.JButton] ====&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039; este, cum îi spune și numele, un buton. Acesta poate avea afișat un text sau o imagine. De cele mai multe ori este utilizat asociindu-i-se un &amp;#039;&amp;#039;Event Handler&amp;#039;&amp;#039; de tip &amp;#039;&amp;#039;ActionListener&amp;#039;&amp;#039; (vezi [[#Event Handlers]]) care se declanșează când acesta este apăsat (se dă click pe el). &lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextField.html javax.swing.JTextField] ====&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039; reprezintă o zonă în care se poate introduce text scurt, de o singură linie. Și acestul element i se poate asocia un &amp;#039;&amp;#039;Event Handler&amp;#039;&amp;#039; de tip &amp;#039;&amp;#039;ActionListener&amp;#039;&amp;#039; care se declanșează când se apasă tasta &amp;#039;&amp;#039;Enter&amp;#039;&amp;#039; în zona de editare. &lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextArea.html javax.swing.JTextArea] ====&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; reprezintă o zonă în care se poate introduce text de mai multe linii. &lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
&lt;br /&gt;
O altă serie de clase necesară pentru implementarea unei interfețe grafice este setul de clase care extind interfața [http://docs.oracle.com/javase/7/docs/api/java/awt/LayoutManager.html java.awt.LayoutManager]. Aceste clase descriu modul în care elementele se așează într-un &amp;#039;&amp;#039;&amp;#039;Container&amp;#039;&amp;#039;&amp;#039;. Cele mai importante sunt:&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/java/awt/FlowLayout.html java.awt.FlowLayout] ==== &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;FlowLayout&amp;#039;&amp;#039;&amp;#039; este utilizat pentru a așseza elementele pe orizontală, până când nu mai încap, în care situație se trece pe rândul următor. Acesta este cel mai simplu tip de layout.&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/java/awt/GridLayout.html java.awt.GridLayout] ==== &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;GridLayout&amp;#039;&amp;#039;&amp;#039; este utilizat pentru a așseza elementele într-o matrice cu număr configurabil de linii și coloane.&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/java/awt/BorderLayout.html java.awt.BorderLayout] ==== &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;BorderLayout&amp;#039;&amp;#039;&amp;#039; este utilizat pentru a așseza elementele dealungul celor patru margini și în centru, adică NORTH, SOUTH, EAST, WEST și CENTER. Un singur element poate fi plasat în fiecare din aceste poziții.&lt;br /&gt;
&lt;br /&gt;
==== [http://docs.oracle.com/javase/7/docs/api/java/awt/CardLayout.html java.awt.CardLayout] ==== &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;CardLayout&amp;#039;&amp;#039;&amp;#039; este utilizat pentru a adăuga mai multe componente unui &amp;#039;&amp;#039;&amp;#039;Container&amp;#039;&amp;#039;&amp;#039; din care doar unul este vizibil la un moment dat. Acest tip de &amp;#039;&amp;#039;layout&amp;#039;&amp;#039; este util pentru generarea de aplicații tip &amp;#039;&amp;#039;wizard&amp;#039;&amp;#039; în care utilizatorul trece de la o fereastră la alta cu ajutorul unor butoane &amp;#039;&amp;#039;Next&amp;#039;&amp;#039; și &amp;#039;&amp;#039;Previous&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Mai multe despre elemente de tip Layout, în [http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html tutorial-ul Oracle].&lt;br /&gt;
&lt;br /&gt;
=== Event Handlers ===&lt;br /&gt;
&lt;br /&gt;
Fiecare &amp;#039;&amp;#039;&amp;#039;JComponent&amp;#039;&amp;#039;&amp;#039; suportă o listă de evenimente la care e sensibil. Fiecărui eveniment i se poate asociaza o acțiune care se execută când acel eveniment se declanșează. De exemplu, când un buton este apăsat, sau când cursorul de la mouse a intrat în zona ocupată de componentă, sau când s-a tastat ceva într-o zonă de text, etc. Aceste &amp;#039;&amp;#039;handler&amp;#039;&amp;#039;-e sunt, de fapt, niște metode, definite în anumite interfețe. Aceste metode se excută în paralel cu programul principal (ca și thread-uri) în momentul în care evenimentul se declanșează. Metodele care adaugă un &amp;#039;&amp;#039;handler&amp;#039;&amp;#039; unui obiect sunt de forma:&lt;br /&gt;
* &amp;#039;&amp;#039;public void addActionListener(ActionListener _listener)&amp;#039;&amp;#039; - pentru evenimente de tip &amp;#039;&amp;#039;action&amp;#039;&amp;#039;, adică activarea unui component (click pe un buton, enter într-un text field, etc.);&lt;br /&gt;
* &amp;#039;&amp;#039;public void addMouseListener(MouseListener _listener)&amp;#039;&amp;#039; - pentru evenimente legate de mouse;&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Același handler poate fi asociat mai multor elemente, iar în acest caz, pentru a știi care obiect a generat evenimentul, se folosește metoda &amp;#039;&amp;#039;getSource()&amp;#039;&amp;#039; definită în clasa &amp;#039;&amp;#039;&amp;#039;java.util.EventObject&amp;#039;&amp;#039;&amp;#039; care este superclasă pentru toate obiectele primite ca argumente de metode de tip handler ([http://docs.oracle.com/javase/7/docs/api/java/awt/event/ActionEvent.html java.awt.event.ActionEvent], [http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseEvent.html java.awt.event.MouseEvent], etc.). Metoda &amp;#039;&amp;#039;getSource()&amp;#039;&amp;#039; întoarce o referință de tip Object la componenta de interfață care a generat evenimentul.&lt;br /&gt;
&lt;br /&gt;
Mai multe despre handler-e, în [http://docs.oracle.com/javase/tutorial/uiswing/events/index.html tutorial-ul Oracle].&lt;br /&gt;
&lt;br /&gt;
=== Exemplu ===&lt;br /&gt;
&lt;br /&gt;
Vom descrie un &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039; care conține două &amp;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039;, două &amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039;, un &amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039; și un &amp;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039;. Când se apasă butonul, cele două &amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039; se vor încărca cu valorile dimensiunii &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;-ului și se va scrie un caracter &amp;#039;&amp;#039;x&amp;#039;&amp;#039; în &amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import java.awt.FlowLayout;&lt;br /&gt;
import java.awt.event.ActionEvent;&lt;br /&gt;
import java.awt.event.ActionListener;&lt;br /&gt;
import javax.swing.JButton;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JLabel;&lt;br /&gt;
import javax.swing.JPanel;&lt;br /&gt;
import javax.swing.JTextArea;&lt;br /&gt;
import javax.swing.JTextField;&lt;br /&gt;
&lt;br /&gt;
public class FrameTest extends JFrame implements ActionListener {&lt;br /&gt;
&lt;br /&gt;
    // we define the elements used in&lt;br /&gt;
    // the frame&lt;br /&gt;
    private JPanel mainPanel;&lt;br /&gt;
    private JLabel xLabel;&lt;br /&gt;
    private JLabel yLabel;&lt;br /&gt;
    private JTextField xField;&lt;br /&gt;
    private JTextField yField;&lt;br /&gt;
    private JTextArea textArea;&lt;br /&gt;
    private JButton button;&lt;br /&gt;
    &lt;br /&gt;
public FrameTest(String _title){&lt;br /&gt;
    // calling the constructor for JFrame to set the title&lt;br /&gt;
    super(_title);&lt;br /&gt;
    &lt;br /&gt;
    // initializing the components (method is implemented below)&lt;br /&gt;
    initComponents();&lt;br /&gt;
    &lt;br /&gt;
    // calling pack() defined in superclass to resize the frame according to&lt;br /&gt;
    // contents&lt;br /&gt;
    pack();&lt;br /&gt;
    &lt;br /&gt;
    // displaying the frame&lt;br /&gt;
    setVisible(true);&lt;br /&gt;
    &lt;br /&gt;
    // select the default behaviour when closing the frame by clicking&lt;br /&gt;
    // the X button on the bar: the application will exit&lt;br /&gt;
    setDefaultCloseOperation(EXIT_ON_CLOSE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public static void main(String[] _args){&lt;br /&gt;
    FrameTest _frame = new FrameTest(&amp;quot;Frame Test&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void initComponents() {&lt;br /&gt;
    // setting the layout as FlowLayout&lt;br /&gt;
    setLayout(new FlowLayout());&lt;br /&gt;
    &lt;br /&gt;
    // creating the components&lt;br /&gt;
    &lt;br /&gt;
    // the panel adds the components in&lt;br /&gt;
    // a FlowLayout&lt;br /&gt;
    mainPanel = new JPanel(new FlowLayout()); &lt;br /&gt;
    xLabel = new JLabel(&amp;quot;X size (width):&amp;quot;);&lt;br /&gt;
    yLabel = new JLabel(&amp;quot;Y size (height):&amp;quot;);&lt;br /&gt;
    xField = new JTextField(6); //6 columns (characters)&lt;br /&gt;
    yField = new JTextField(6); //6 columns (characters)&lt;br /&gt;
    textArea = new JTextArea(10, 10); //10 columns, 10 rows&lt;br /&gt;
    button = new JButton(&amp;quot;Click me!&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
    //adding components to panel&lt;br /&gt;
    mainPanel.add(xLabel);&lt;br /&gt;
    mainPanel.add(xField);&lt;br /&gt;
    mainPanel.add(yLabel);&lt;br /&gt;
    mainPanel.add(yField);&lt;br /&gt;
    mainPanel.add(textArea);&lt;br /&gt;
    mainPanel.add(button);&lt;br /&gt;
    &lt;br /&gt;
    //adding scrollPane to frame&lt;br /&gt;
    add(mainPanel);&lt;br /&gt;
    &lt;br /&gt;
    // adding the listener to the button Component&lt;br /&gt;
    button.addActionListener(this);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// this is the handler defined in the ActionListener interface&lt;br /&gt;
public void actionPerformed(ActionEvent _actionEvent) {&lt;br /&gt;
    xField.setText(String.valueOf(this.getWidth()));&lt;br /&gt;
    yField.setText(String.valueOf(this.getHeight()));&lt;br /&gt;
    textArea.append(&amp;quot;x&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
    &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rezultatul arată așa:&lt;br /&gt;
&lt;br /&gt;
[[Fișier:testframe.png|Codul de mai sus, rulat]]&lt;br /&gt;
&lt;br /&gt;
Pentru a crea frame-uri mai complexe, trebuie să folosiți alte tipuri de &amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039;, elemente de tip [http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html javax.swing.JScrollPane], sau, puteți utiliza un mediu de dezvoltare, gen [http://netbeans.org/kb/docs/java/quickstart.html Netbeans] pentru a crea în mod vizual interfața.&lt;br /&gt;
&lt;br /&gt;
== JavaFX ==&lt;br /&gt;
&lt;br /&gt;
JavaFX este cea mai nouă implementare a platformei de dezvoltare pentru interfețe GUI de client. Cu toate că este încă într-un stadiu incipient, are avantaje față de vechiul Swing. Versiunea 2.2, care a fost publicată pe 14 august 2012 este un pas înainte către o nouă generație de aplicații multimedia pe Internet. Conform [http://docs.oracle.com/javafx/2/overview/jfxpub-overview.htm site-ului Oracle], principalele avantaje ale JavaFX sunt:&lt;br /&gt;
* integrare completă cu Java SE și JDK, incepând cu versiunea 7, update 6 (7u6), ceea ce implică faptul că aplicațiile JavaFX vor putea fi dezvoltate și rulate de către orice client cu această verisune de Java;&lt;br /&gt;
* inițial JavaFX a fost un limbaj de scripting, dar acum Oracle pune la dispoziție un [http://docs.oracle.com/javafx/2/api/index.html API] pentru dezvoltarea aplicațiilor direct în Java, pentru un mai bun management și reutilizare a codului;&lt;br /&gt;
* un nou motor (engine) grafic, numit Prism, care face uz de accelerarea hardware oferită de GPU-urile moderne, precum și un nou manager de ferestre (Window Toolkit) numit Glass;&lt;br /&gt;
* un nou limbaj bazat pe XML, numit FXML, folosit pentru descrierea interfețelor grafice, astfel încât să nu fie nevoie de recompilarea codului la fiecare modificare;&lt;br /&gt;
* un nou &amp;#039;&amp;#039;engine&amp;#039;&amp;#039; multimedia, bazat pe [http://en.wikipedia.org/wiki/GStreamer GStreamer], care permite redarea de conținut multimedia;&lt;br /&gt;
* o componentă care poate afișa conținut web și care poate fi integrată în orice interfață grafică JavaFX;&lt;br /&gt;
* o serie de componente noi de interfață, precum grafice, tabele, meniuri și panouri;&lt;br /&gt;
* un sistem de a împacheta aplicațiile astfel încât acestea să fie livrate cu toate bibliotecile necesare execuției;&lt;br /&gt;
* portabilitate pe Linux, Windows și Mac OS X;&lt;br /&gt;
&lt;br /&gt;
Un alt avantaj alt JavaFX spre deosebire de Swing, este faptul că aceeași aplicație poate fi rulată de sine stătător, ca applet, sau ca aplicație de tip [http://docs.oracle.com/javafx/1.3/tutorials/deploy-using-webstart/ Web Start].&lt;br /&gt;
&lt;br /&gt;
În plus, orice component din JavaFX poate fi modificat ca aspect folosind directive [http://en.wikipedia.org/wiki/Cascading_Style_Sheets CSS], conform [http://docs.oracle.com/javafx/2/css_tutorial/jfxpub-css_tutorial.htm].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;regula&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#ff0000&amp;quot;&amp;gt;Atenție:&amp;lt;/font&amp;gt; În laboratorul din sala 2 de calculatoare este instalată o versiune veche de Java care nu permite dezvoltarea aplicațiilor in JavaFX.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Componente ===&lt;br /&gt;
&lt;br /&gt;
Ca și Java Swing, JavaFX se bazează pe o ierarhie de clase care implementează diferite componente și containere ce reprezintă elementele grafice. Analog clasei &amp;#039;&amp;#039;&amp;#039;JFrame&amp;#039;&amp;#039;&amp;#039;, în JavaFX, clasa care descrie fereastra principală a unei aplicații este [http://docs.oracle.com/javafx/2/api/javafx/stage/Stage.html javafx.stage.Stage]. O aplicație JavaFX (spre deosebire de o aplicație Java obișnuită, care pornește cu metoda &amp;#039;&amp;#039;main()&amp;#039;&amp;#039;) trebuie să extindă clasa [http://docs.oracle.com/javafx/2/api/javafx/application/Application.html javafx.application.Application]. Aceasta este o clasă abstractă, deci utilizatorul este obligat să definească metoda &amp;#039;&amp;#039;public void start(Stage _primaryStage)&amp;#039;&amp;#039;, care este metoda de start a aplicației, analog metodei &amp;#039;&amp;#039;main()&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
Un obiect de tip &amp;#039;&amp;#039;&amp;#039;Stage&amp;#039;&amp;#039;&amp;#039; conține, la un moment dat, o singură scenă ([http://docs.oracle.com/javafx/2/api/javafx/scene/Scene.html javafx.scene.Scene]). Această scenă este inițializată dându-i-se dimensiunile scenei și container-ul care conține toate celălalte elemente din fereastră. Acest container este, de cele mai multe ori, un panou. Panoul, pe lângă rolul de container, specifică și modul în care sunt afișate componentele, analog &amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039;-ului din Swing. Vom folosi, pentru exemplu, un [http://docs.oracle.com/javafx/2/api/javafx/scene/layout/FlowPane.html javafx.scene.layout.FlowPane], care este analog clasei &amp;#039;&amp;#039;&amp;#039;FlowLayout&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import javafx.application.Application;&lt;br /&gt;
import javafx.scene.Scene;&lt;br /&gt;
import javafx.scene.layout.FlowPane;&lt;br /&gt;
import javafx.stage.Stage;&lt;br /&gt;
&lt;br /&gt;
public class JavaFXApplicationTest extends Application {&lt;br /&gt;
&lt;br /&gt;
public void start(Stage _primaryStage){&lt;br /&gt;
    // creating the pane for the elements:&lt;br /&gt;
    FlowPane _pane = new FlowPane();&lt;br /&gt;
&lt;br /&gt;
    // creating the scene with the FlowPane as the&lt;br /&gt;
    // container for all elements and dimensions&lt;br /&gt;
    // width = 300 and height = 250 pixels&lt;br /&gt;
    Scene scene = new Scene(_pane, 300, 250);&lt;br /&gt;
&lt;br /&gt;
    // setting the scene in the primary stage&lt;br /&gt;
    primaryStage.setScene(scene);&lt;br /&gt;
&lt;br /&gt;
    // setting the title of the stage&lt;br /&gt;
    primaryStage.setTitle(&amp;quot;Empty pane&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    //displaying the stage&lt;br /&gt;
    primaryStage.show();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * The main() method is ignored in correctly deployed JavaFX application.&lt;br /&gt;
 * main() serves only as fallback in case the application can not be&lt;br /&gt;
 * launched through deployment artifacts, e.g., in IDEs with limited FX&lt;br /&gt;
 * support. NetBeans ignores main().&lt;br /&gt;
 */&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
    launch(args);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rezultatul:&lt;br /&gt;
&lt;br /&gt;
[[Fișier:javafx_empty.png|O scenă fără elemente în JavaFX]]&lt;br /&gt;
&lt;br /&gt;
Alte componente care pot fi folosite într-un scene:&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/Label.html javafx.scene.control.Label] - analog &amp;#039;&amp;#039;&amp;#039;JLabel&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/Button.html javafx.scene.control.Button] - analog &amp;#039;&amp;#039;&amp;#039;JButton&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/TextField.html javafx.scene.control.TextField] - analog &amp;#039;&amp;#039;&amp;#039;JTextField&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/TextArea.html javafx.scene.control.TextArea] - analog &amp;#039;&amp;#039;&amp;#039;JTextArea&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/RadioButton.html javafx.scene.control.RadioButton] - analog &amp;#039;&amp;#039;&amp;#039;JRadioButton&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/CheckBox.html javafx.scene.control.CheckBox] - analog &amp;#039;&amp;#039;&amp;#039;JCheckBox&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/ComboBox.html javafx.scene.control.ComboBox] - analog &amp;#039;&amp;#039;&amp;#039;JComboBox&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Un exemplu analog cu cel de la Swing:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import javafx.application.Application;&lt;br /&gt;
import javafx.scene.Scene;&lt;br /&gt;
import javafx.scene.control.Button;&lt;br /&gt;
import javafx.scene.control.Label;&lt;br /&gt;
import javafx.scene.control.TextArea;&lt;br /&gt;
import javafx.scene.control.TextField;&lt;br /&gt;
import javafx.scene.layout.FlowPane;&lt;br /&gt;
import javafx.stage.Stage;&lt;br /&gt;
&lt;br /&gt;
public class JavaFXApplicationTest extends Application {&lt;br /&gt;
    &lt;br /&gt;
    private Label labelx;&lt;br /&gt;
    private Label labely;&lt;br /&gt;
    private TextField fieldx;&lt;br /&gt;
    private TextField fieldy;&lt;br /&gt;
    private TextArea area;&lt;br /&gt;
    private Button button;&lt;br /&gt;
    &lt;br /&gt;
public void start(Stage primaryStage) {&lt;br /&gt;
&lt;br /&gt;
    FlowPane _pane = new FlowPane();&lt;br /&gt;
&lt;br /&gt;
    //creating the components:&lt;br /&gt;
    labelx = new Label(&amp;quot;Width:&amp;quot;);&lt;br /&gt;
    labely = new Label(&amp;quot;Height:&amp;quot;);&lt;br /&gt;
    fieldx = new TextField();&lt;br /&gt;
    fieldy = new TextField();&lt;br /&gt;
    area = new TextArea();&lt;br /&gt;
    button = new Button(&amp;quot;Click me!&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    //adding the elements to pane:&lt;br /&gt;
    _pane.getChildren().add(labelx);&lt;br /&gt;
    _pane.getChildren().add(fieldx);&lt;br /&gt;
    _pane.getChildren().add(labely);&lt;br /&gt;
    _pane.getChildren().add(fieldy);&lt;br /&gt;
    _pane.getChildren().add(area);&lt;br /&gt;
    _pane.getChildren().add(button);&lt;br /&gt;
    &lt;br /&gt;
    Scene scene = new Scene(_pane, 300, 250);&lt;br /&gt;
&lt;br /&gt;
    primaryStage.setTitle(&amp;quot;Test pane&amp;quot;);&lt;br /&gt;
    primaryStage.setScene(scene);&lt;br /&gt;
    primaryStage.show();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * The main() method is ignored in correctly deployed JavaFX application.&lt;br /&gt;
 * main() serves only as fallback in case the application can not be&lt;br /&gt;
 * launched through deployment artifacts, e.g., in IDEs with limited FX&lt;br /&gt;
 * support. NetBeans ignores main().&lt;br /&gt;
 */&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
    launch(args);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cu rezultatul:&lt;br /&gt;
&lt;br /&gt;
[[Fișier:javafx_full.png|O scenă cu diverse elemente în JavaFX]]&lt;br /&gt;
&lt;br /&gt;
=== Panouri ===&lt;br /&gt;
&lt;br /&gt;
Analog diferitelor tipuri de &amp;#039;&amp;#039;&amp;#039;LayoutManager&amp;#039;&amp;#039;&amp;#039; din Swing și JavaFX dispune de o serie de panouri:&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/layout/GridPane.html javafx.scene.layout.GridPane] - &amp;#039;&amp;#039;&amp;#039;GridLayout&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/layout/StackPane.html javafx.scene.layout.StackPane] - &amp;#039;&amp;#039;&amp;#039;CardLayout&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/layout/BorderPane.html javafx.scene.layout.BorderPane] - &amp;#039;&amp;#039;&amp;#039;BorderLayout&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Tot panouri sunt și alte tipuri de elemente care în Java Swing aveau propriul tip de clasă, doar că aceste nu fac parte din pachetul &amp;#039;&amp;#039;&amp;#039;javafx.scene.layout&amp;#039;&amp;#039;&amp;#039; ci &amp;#039;&amp;#039;&amp;#039;javafx.scene.control&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/ScrollPane.html javafx.scene.control.ScrollPane] - &amp;#039;&amp;#039;&amp;#039;JScrollPane&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://docs.oracle.com/javafx/2/api/javafx/scene/control/SplitPane.html javafx.scene.control.SplitPane] - &amp;#039;&amp;#039;&amp;#039;JSplitPane&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Event Handlers ===&lt;br /&gt;
&lt;br /&gt;
Ca și în Swing, JavaFX permite asocierea unor metode de tip &amp;#039;&amp;#039;handler&amp;#039;&amp;#039; cu declanșarea unor evenimente. Modul de conectare este foarte similar:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import javafx.application.Application;&lt;br /&gt;
import javafx.event.ActionEvent;&lt;br /&gt;
import javafx.event.EventHandler;&lt;br /&gt;
import javafx.scene.Scene;&lt;br /&gt;
import javafx.scene.control.Button;&lt;br /&gt;
import javafx.scene.control.Label;&lt;br /&gt;
import javafx.scene.control.TextArea;&lt;br /&gt;
import javafx.scene.control.TextField;&lt;br /&gt;
import javafx.scene.layout.FlowPane;&lt;br /&gt;
import javafx.stage.Stage;&lt;br /&gt;
&lt;br /&gt;
public class JavaFXApplicationTest extends Application implements EventHandler&amp;lt;ActionEvent&amp;gt;{&lt;br /&gt;
    &lt;br /&gt;
    private Label labelx;&lt;br /&gt;
    private Label labely;&lt;br /&gt;
    private TextField fieldx;&lt;br /&gt;
    private TextField fieldy;&lt;br /&gt;
    private TextArea area;&lt;br /&gt;
    private Button button;&lt;br /&gt;
    private Scene scene;&lt;br /&gt;
    &lt;br /&gt;
public void start(Stage primaryStage) {&lt;br /&gt;
&lt;br /&gt;
    FlowPane _pane = new FlowPane();&lt;br /&gt;
&lt;br /&gt;
    //creating the components:&lt;br /&gt;
    labelx = new Label(&amp;quot;Width:&amp;quot;);&lt;br /&gt;
    labely = new Label(&amp;quot;Height:&amp;quot;);&lt;br /&gt;
    fieldx = new TextField();&lt;br /&gt;
    fieldy = new TextField();&lt;br /&gt;
    area = new TextArea();&lt;br /&gt;
    button = new Button(&amp;quot;Click me!&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    //adding the handler to the button&lt;br /&gt;
    button.setOnAction(this);&lt;br /&gt;
    &lt;br /&gt;
    //adding the elements to pane:&lt;br /&gt;
    _pane.getChildren().add(labelx);&lt;br /&gt;
    _pane.getChildren().add(fieldx);&lt;br /&gt;
    _pane.getChildren().add(labely);&lt;br /&gt;
    _pane.getChildren().add(fieldy);&lt;br /&gt;
    _pane.getChildren().add(area);&lt;br /&gt;
    _pane.getChildren().add(button);&lt;br /&gt;
    &lt;br /&gt;
    scene = new Scene(_pane, 300, 250);&lt;br /&gt;
&lt;br /&gt;
    primaryStage.setTitle(&amp;quot;Test pane&amp;quot;);&lt;br /&gt;
    primaryStage.setScene(scene);&lt;br /&gt;
    primaryStage.show();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// this is the handler method defined in interface&lt;br /&gt;
// EventHandler&lt;br /&gt;
public void handle(ActionEvent _event) {&lt;br /&gt;
    fieldx.setText(String.valueOf(scene.getWidth()));&lt;br /&gt;
    fieldy.setText(String.valueOf(scene.getHeight()));&lt;br /&gt;
    area.appendText(&amp;quot;x&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * The main() method is ignored in correctly deployed JavaFX application.&lt;br /&gt;
 * main() serves only as fallback in case the application can not be&lt;br /&gt;
 * launched through deployment artifacts, e.g., in IDEs with limited FX&lt;br /&gt;
 * support. NetBeans ignores main().&lt;br /&gt;
 */&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
    launch(args);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Spre deosebire de Swing, unde existau mai multe tipuri de interfețe, una pentru fiecare tip de eveniment (ex: ActionListener, MouseListener, PropertyChangeListener, etc.), în JavaFX se folosește o singură interfață, [http://docs.oracle.com/javafx/2/api/javafx/event/EventHandler.html javafx.event.EventHandler] cu o singură metodă definită (&amp;#039;&amp;#039;handle(T)&amp;#039;&amp;#039;), unde &amp;#039;&amp;#039;&amp;#039;T&amp;#039;&amp;#039;&amp;#039; este un șablon folosit pentru a face diferența între diferitele tipuri de evenimente: [http://docs.oracle.com/javafx/2/api/javafx/event/ActionEvent.html javafx.event.ActionEvent], [http://docs.oracle.com/javafx/2/api/javafx/stage/WindowEvent.html javafx.stage.WindowEvent], [http://docs.oracle.com/javafx/2/api/javafx/scene/web/WebEvent.html javafx.scene.web.WebEvent], etc.&lt;br /&gt;
&lt;br /&gt;
Pentru JavaFX există o aplicație care permite dezvoltarea vizuală de interfețe grafice, numită [http://www.oracle.com/technetwork/java/javafx/tools/index.html JavaFX Scene Builder].&lt;/div&gt;</summary>
		<author><name>Rhobincu</name></author>
	</entry>
</feed>