<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://genius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=Quick_Start</id>
	<title>Quick Start - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="http://genius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=Quick_Start"/>
	<link rel="alternate" type="text/html" href="http://genius.cnes.fr/index.php?title=Quick_Start&amp;action=history"/>
	<updated>2026-05-25T16:56:45Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>http://genius.cnes.fr/index.php?title=Quick_Start&amp;diff=560&amp;oldid=prev</id>
		<title>Admin : /* Opening Eclipse and creating a project */</title>
		<link rel="alternate" type="text/html" href="http://genius.cnes.fr/index.php?title=Quick_Start&amp;diff=560&amp;oldid=prev"/>
		<updated>2017-12-15T08:33:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Opening Eclipse and creating a project&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 décembre 2017 à 08:33&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-l13&quot;&gt;Ligne 13 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 13 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You could see this on the Package Explorer subwindow ...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You could see this on the Package Explorer subwindow ...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:QuickStart1.jpg &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;900px&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:QuickStart1.jpg]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Adding dependencies ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Adding dependencies ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key genius?hprod:diff:1.41:old-554:rev-560:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://genius.cnes.fr/index.php?title=Quick_Start&amp;diff=554&amp;oldid=prev</id>
		<title>Admin : Page créée avec « === First start ===  In this page, we are going to see how to create quickly a frame incuding a button just to see how it is easy to do it using &lt;font color=#556B2F&gt;&#039;&#039;&#039;GEN... »</title>
		<link rel="alternate" type="text/html" href="http://genius.cnes.fr/index.php?title=Quick_Start&amp;diff=554&amp;oldid=prev"/>
		<updated>2017-12-15T08:31:50Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « === First start ===  In this page, we are going to see how to create quickly a frame incuding a button just to see how it is easy to do it using &amp;lt;font color=#556B2F&amp;gt;&amp;#039;&amp;#039;&amp;#039;GEN... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== First start ===&lt;br /&gt;
&lt;br /&gt;
In this page, we are going to see how to create quickly a frame incuding a button just to see how it is easy to do it using &amp;lt;font color=#556B2F&amp;gt;&amp;#039;&amp;#039;&amp;#039;GENIUS&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After that, you just will have to follow the next pages to get explanations with more and more details and functionalities ...&lt;br /&gt;
&lt;br /&gt;
To illustrate this example, we started using [http://www.eclipse.org/ Eclipse] environment but, of course, you are allowed to use any other environment to use &amp;lt;font color=#556B2F&amp;gt;&amp;#039;&amp;#039;&amp;#039;GENIUS&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt;. Anyway, we considered that the user owns basic knowledege of &amp;lt;font color=#FF8C00&amp;gt;Java&amp;lt;/font&amp;gt; langage and environment and we will not describe, for example, what is a class and how to create it !&lt;br /&gt;
&lt;br /&gt;
=== Opening Eclipse and creating a project ===&lt;br /&gt;
&lt;br /&gt;
First, we will have to create a &amp;lt;font color=#FF8C00&amp;gt;Java&amp;lt;/font&amp;gt; project. Practically, it could be more interesting to create a [https://maven.apache.org Maven] project, mainly to manage dependencies but we preferred to keep a basic &amp;lt;font color=#FF8C00&amp;gt;Java&amp;lt;/font&amp;gt; project not to impose a solution.&lt;br /&gt;
&lt;br /&gt;
You could see this on the Package Explorer subwindow ...&lt;br /&gt;
&lt;br /&gt;
[[File:QuickStart1.jpg 900px]]&lt;br /&gt;
&lt;br /&gt;
=== Adding dependencies ===&lt;br /&gt;
&lt;br /&gt;
Then it will be mandatory to add &amp;lt;font color=#556B2F&amp;gt;&amp;#039;&amp;#039;&amp;#039;GENIUS&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt; library and other dependencies. To do it, you will have to:&lt;br /&gt;
* activate the &amp;quot;&amp;#039;&amp;#039;Properties&amp;#039;&amp;#039;&amp;quot; subwindow,&lt;br /&gt;
&lt;br /&gt;
[[File:QuickStart2.jpg]]&lt;br /&gt;
&lt;br /&gt;
* then selecting the &amp;quot;&amp;#039;&amp;#039;Java Build Path&amp;#039;&amp;#039;&amp;quot; option,&lt;br /&gt;
* going to the &amp;quot;&amp;#039;&amp;#039;Libraries&amp;#039;&amp;#039;&amp;quot; tab&lt;br /&gt;
* and finally adding libraries as &amp;quot;&amp;#039;&amp;#039;External jars&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:QuickStart3.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Your project explorer must show this:&lt;br /&gt;
&lt;br /&gt;
[[File:QuickStart4.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Adding the Java code ===&lt;br /&gt;
&lt;br /&gt;
Now, you may import the following code ...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import fr.cnes.genius.exception.GException;&lt;br /&gt;
import fr.cnes.genius.lowLevel.GButton;&lt;br /&gt;
import fr.cnes.genius.lowLevel.GFrame;&lt;br /&gt;
import fr.cnes.genius.lowLevel.GPanel;&lt;br /&gt;
&lt;br /&gt;
public class MyPanel extends GPanel {&lt;br /&gt;
 &lt;br /&gt;
  private GButton but;&lt;br /&gt;
 &lt;br /&gt;
  public MyPanel () {&lt;br /&gt;
    but = new GButton(&amp;quot;Button&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  public void display() throws GException {&lt;br /&gt;
    put(but);&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  public void generic() { }&lt;br /&gt;
 &lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    MyPanel pan = new MyPanel();&lt;br /&gt;
    GFrame frame = new GFrame(&amp;quot;Test&amp;quot;, pan);	&lt;br /&gt;
    frame.display();&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=#FF0000&amp;gt;Note that the import lines must be added (or refreshed) automatically, using the Ctrl-Shift-O Eclipse shortcut.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Your first GUI ! ===&lt;br /&gt;
&lt;br /&gt;
You will obtain this tiny frame including a button ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:QuickStart5.jpg]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>