first commit

This commit is contained in:
Adrien MALINGREY 2020-10-20 00:33:14 +02:00
commit d0c864b23f
140 changed files with 9353 additions and 0 deletions

1835
Procedures.sql Executable file

File diff suppressed because it is too large Load Diff

69
build.xml Executable file
View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="JMeuMeu" default="default" basedir=".">
<description>Builds, tests, and runs the project JMeuMeu.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="JMeuMeu-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

View File

@ -0,0 +1,6 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
#NOI18N
jLabel1.font=Tahoma 14 Bold
jLabel1.text=SECTION CLAPIER

View File

@ -0,0 +1,3 @@
jLabel1.text=SECTION COOPERATIVE
#NOI18N
jLabel1.font=Tahoma 14 12 12 12 Bold

View File

@ -0,0 +1,6 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
#NOI18N
jLabel1.font=Tahoma 14 12 12 Bold
jLabel1.text=SECTION MARCHE

View File

@ -0,0 +1,22 @@
jLabel1.text=SECTION PATURAGE
#NOI18N
jLabel1.font=Tahoma 14 12 Bold
lblHealthString.text=Etat de Sant\u00E9 de la Vache :
jLabel3.text=Hygi\u00E8ne de la Vache :
jLabel4.text=Masse de la vache (Kg) :
jLabel5.text=Litres de Lait dans les pies de la vache :
jLabel6.text=Vache d\u00E9salt\u00E9rer :
jLabel7.text=Vache nourri :
lblHealthStatus.text=Sain
DirtyStatus.text=Propre
CowMass.text=0
MilkLiter.text=0
IsCowAlreadyDrink.text=Non
CowAlreadyEat.text=Non
jButton1.text=Abreuver
jButton2.text=Nourrir
jButton3.text=Soigner
jButton4.text=Nettoyer
jButton5.text=Traire
jLabel14.text=Age de la vache :
CowAge.text=0

View File

@ -0,0 +1,3 @@
jLabel1.text=SECTION POULAILLER
#NOI18N
jLabel1.font=Tahoma-Bold-14

View File

@ -0,0 +1,6 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
#NOI18N
jLabel1.font=Tahoma 14 12 12 12 12 Bold
jLabel1.text=SECTION REMISE

View File

@ -0,0 +1,6 @@
jLabel1.text=BIENVENUE DANS VOTRE FERME
#NOI18N
jLabel1.font=Tahoma-Bold-14
jLabel2.text=
#NOI18N
jLabel2.font=Tahoma-Bold-14

View File

@ -0,0 +1 @@
jmeumeu.JMeuMeuApp

View File

@ -0,0 +1,19 @@
title = About: ${Application.title} ${Application.version}
closeAboutBox.Action.text = &Close
appDescLabel.text=<html>A derivated game from myefarm.com
versionLabel.text=Product Version\:
#NOI18N
imageLabel.icon=about.png
jLabel1.text=Programmer :
#NOI18N
jLabel1.font=Tahoma-Bold-11
jLabel2.text=Jeremy JANISZEWSKI
jLabel3.text=This project was a team project.
jLabel4.text=But without any reason, I was the only person to work on this project.
jLabel5.text=The others have provided 'I don't know JAVA' like reason.
jLabel6.text=Sadly, I cannot finished this project. It was interesting.
jLabel7.text=Adrien MALINGREY

View File

@ -0,0 +1,11 @@
# Application global resources
Application.name = JMeuMeu
Application.title = JMEUMEU Staff
Application.version = 1.0
Application.vendor = Sun Microsystems Inc.
Application.homepage = http\://appframework.dev.java.net/
Application.description = A simple Java desktop application based on Swing Application Framework.
Application.vendorId = Sun
Application.id = ${Application.name}
Application.lookAndFeel = system

View File

@ -0,0 +1,15 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
jButton2.text=Annuler
jButton1.text=Supprimer Compte
jTextField2.text=Identifiant
jLabel3.text=Identifiant
jLabel1.text=Suppression d'un Compte
#NOI18N
jLabel1.font=Tahoma 24-Bold-24
#NOI18N
jLabel3.font=Tahoma-Bold-11
#NOI18N
jLabel4.font=Tahoma-Bold-11
jButton1.actionCommand=SupprimerCompte

View File

@ -0,0 +1,41 @@
jButton1.text=D\u00E9connexion
jButton1.actionCommand=Deconnexion
jButton2.text=Poulailler
jButton3.text=Clapier
jButton2.actionCommand=Poulailler
jButton4.text=Paturage
jButton5.text=Remise
jButton2.toolTipText=Affiche le formulaire concernant le poulailler
jButton3.toolTipText=Affiche le formulaire concernant le Clapier
jButton4.toolTipText=Affiche le formulaire concernant le Paturage
jButton5.toolTipText=Affiche le formulaire concernant la Remise
jButton1.toolTipText=Retourne au Menu de Connexion
jLabel1.text=Actions Autoris\u00E9es
#NOI18N
jLabel1.font=Tahoma-Bold-14
jLabel2.text=Statistiques
#NOI18N
jLabel2.font=Tahoma-Bold-14
jLabel3.AccessibleContext.accessibleName=Ecus
lblEcus.text=Ecus :
jLabel4.text=0
#NOI18N
lblEcus.font=Tahoma-Bold-11
jLabel4.AccessibleContext.accessibleName=lblNumEcus
lblPoints.text=Points :
#NOI18N
lblPoints.font=Tahoma-Bold-11
lblNumPoints.text=0
lblNumRank.text=0
lblRank.text=Classement :
#NOI18N
lblRank.font=Tahoma-Bold-11
jLabel9.text=eme
jButton6.text=Coop\u00E9rative
jButton6.actionCommand=Cooperative
jButton6.label=Cooperative
jButton7.text=March\u00E9
jButton7.actionCommand=Marche
jButton8.actionCommand=Hibernation
jButton8.toolTipText=Passe en mode Hibernation
jButton8.text=Hiberner

View File

@ -0,0 +1,17 @@
lblCreateCompte.text=Cr\u00E9ation d'un Compte
#NOI18N
lblCreateCompte.font=Tahoma-Bold-24
lblID.text=Identifiant
lblUserName.text=Nom Utilisateur
lblPwd.text=Mot de Passe :
lblVerifPwd.text=Verification Mot de Passe
lblEmail.text=Adresse Email
btnCreerCompte.actionCommand=CC
btnCreerCompte.text=Creer Compte
btnCancel.text=Annuler
txtIdentifiant.text=Identifiant
txtUserName.text=NomUtilisateur
txtPassword.text=password
txtChkPwd.text=Password
txtMail.text=@mail

View File

@ -0,0 +1,52 @@
# @Action resources
showAboutBox.Action.text = &About...
showAboutBox.Action.shortDescription = Show the application's information dialog
# status bar resources
StatusBar.messageTimeout = 5000
StatusBar.busyAnimationRate = 30
StatusBar.idleIcon = busyicons/idle-icon.png
StatusBar.busyIcons[0] = busyicons/busy-icon0.png
StatusBar.busyIcons[1] = busyicons/busy-icon1.png
StatusBar.busyIcons[2] = busyicons/busy-icon2.png
StatusBar.busyIcons[3] = busyicons/busy-icon3.png
StatusBar.busyIcons[4] = busyicons/busy-icon4.png
StatusBar.busyIcons[5] = busyicons/busy-icon5.png
StatusBar.busyIcons[6] = busyicons/busy-icon6.png
StatusBar.busyIcons[7] = busyicons/busy-icon7.png
StatusBar.busyIcons[8] = busyicons/busy-icon8.png
StatusBar.busyIcons[9] = busyicons/busy-icon9.png
StatusBar.busyIcons[10] = busyicons/busy-icon10.png
StatusBar.busyIcons[11] = busyicons/busy-icon11.png
StatusBar.busyIcons[12] = busyicons/busy-icon12.png
StatusBar.busyIcons[13] = busyicons/busy-icon13.png
StatusBar.busyIcons[14] = busyicons/busy-icon14.png
lblJMeuMeu.text=Bienvenue sur JMeuMeu
#NOI18N
lblJMeuMeu.font=Tahoma-Bold-24
lblUserName.text=Nom Utilisateur
lblPwd.text=Mot De Passe
txtUserName.text=
txtPwd.text=
btnOK.text=Connexion
btnAnnuler.text=Quitter
btnCreate.text=Creer Compte
btnCreate.label=CreerCompte
btnCreate.actionCommand=CreerCompte
#NOI18N
lblUserName.font=Tahoma-Bold-11
#NOI18N
lblPwd.foreground=51, 0, 255
#NOI18N
lblUserName.foreground=51, 0, 255
#NOI18N
lblPwd.font=Tahoma-Bold-11
jButton4.text=?
jButton4.actionCommand=About
jButton4.AccessibleContext.accessibleName=About
jButton5.label=CreerCompte
jButton5.actionCommand=SuppCompte
jButton5.text=Supprimer Compte

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

33
dist/README.TXT vendored Executable file
View File

@ -0,0 +1,33 @@
========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "JMeuMeu.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, none of the
classpath elements are copied to the lib folder. In such a case,
you need to copy the classpath elements to the lib folder manually after the build.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.

BIN
images/Chickens.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/Farm.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
images/Marche.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
images/N-1156350181.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
images/Rabbit.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
images/Traire.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
images/accueil.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
images/clapier.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
images/lapereau.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
images/lapin.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
images/matrixcow.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
images/poulailler.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
images/src/JMeuMeu.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

BIN
images/src/JMeuMeu.psp Executable file

Binary file not shown.

BIN
images/src/JMeuMeu.tif Executable file

Binary file not shown.

BIN
images/src/coq+fd.tif Executable file

Binary file not shown.

BIN
images/src/coq.TIF Executable file

Binary file not shown.

BIN
images/src/décor ferme.RIF Executable file

Binary file not shown.

BIN
images/src/décor ferme.TIF Executable file

Binary file not shown.

BIN
images/src/fd clapier.TIF Executable file

Binary file not shown.

BIN
images/src/fd paturage.TIF Executable file

Binary file not shown.

BIN
images/src/fd poulailler.TIF Executable file

Binary file not shown.

BIN
images/src/lapereau+fd.TIF Executable file

Binary file not shown.

BIN
images/src/lapereau.RIF Executable file

Binary file not shown.

BIN
images/src/lapereau.TIF Executable file

Binary file not shown.

BIN
images/src/lapin+fd.TIF Executable file

Binary file not shown.

BIN
images/src/lapin.RIF Executable file

Binary file not shown.

BIN
images/src/lapin.TIF Executable file

Binary file not shown.

BIN
images/src/paysan.TIF Executable file

Binary file not shown.

BIN
images/src/poule+fd.tif Executable file

Binary file not shown.

BIN
images/src/poule.TIF Executable file

Binary file not shown.

BIN
images/src/poussin+fd.tif Executable file

Binary file not shown.

BIN
images/src/poussin.TIF Executable file

Binary file not shown.

BIN
images/src/vache+fd.TIF Executable file

Binary file not shown.

BIN
images/src/vache.TIF Executable file

Binary file not shown.

BIN
images/vache.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

3
manifest.mf Executable file
View File

@ -0,0 +1,3 @@
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build

633
nbproject/build-impl.xml Executable file
View File

@ -0,0 +1,633 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
For the purpose of easier reading the script
is divided into following sections:
- initialization
- compilation
- jar
- execution
- debugging
- javadoc
- junit compilation
- junit execution
- junit debugging
- applet
- cleanup
-->
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="JMeuMeu-impl">
<target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
<!--
======================
INITIALIZATION SECTION
======================
-->
<target name="-pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init" name="-init-private">
<property file="nbproject/private/config.properties"/>
<property file="nbproject/private/configs/${config}.properties"/>
<property file="nbproject/private/private.properties"/>
</target>
<target depends="-pre-init,-init-private" name="-init-user">
<property file="${user.properties.file}"/>
<!-- The two properties below are usually overridden -->
<!-- by the active platform. Just a fallback. -->
<property name="default.javac.source" value="1.4"/>
<property name="default.javac.target" value="1.4"/>
</target>
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
<property file="nbproject/configs/${config}.properties"/>
<property file="nbproject/project.properties"/>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
<available file="${manifest.file}" property="manifest.available"/>
<condition property="manifest.available+main.class">
<and>
<isset property="manifest.available"/>
<isset property="main.class"/>
<not>
<equals arg1="${main.class}" arg2="" trim="true"/>
</not>
</and>
</condition>
<condition property="manifest.available+main.class+mkdist.available">
<and>
<istrue value="${manifest.available+main.class}"/>
<isset property="libs.CopyLibs.classpath"/>
</and>
</condition>
<condition property="have.tests">
<or>
<available file="${test.src.dir}"/>
</or>
</condition>
<condition property="have.sources">
<or>
<available file="${src.dir}"/>
</or>
</condition>
<condition property="netbeans.home+have.tests">
<and>
<isset property="netbeans.home"/>
<isset property="have.tests"/>
</and>
</condition>
<condition property="no.javadoc.preview">
<and>
<isset property="javadoc.preview"/>
<isfalse value="${javadoc.preview}"/>
</and>
</condition>
<property name="run.jvmargs" value=""/>
<property name="javac.compilerargs" value=""/>
<property name="work.dir" value="${basedir}"/>
<condition property="no.deps">
<and>
<istrue value="${no.dependencies}"/>
</and>
</condition>
<property name="javac.debug" value="true"/>
<property name="javadoc.preview" value="true"/>
<property name="application.args" value=""/>
<property name="source.encoding" value="${file.encoding}"/>
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
<and>
<isset property="javadoc.encoding"/>
<not>
<equals arg1="${javadoc.encoding}" arg2=""/>
</not>
</and>
</condition>
<property name="javadoc.encoding.used" value="${source.encoding}"/>
<property name="includes" value="**"/>
<property name="excludes" value=""/>
<property name="do.depend" value="false"/>
<condition property="do.depend.true">
<istrue value="${do.depend}"/>
</condition>
<condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
<and>
<isset property="jaxws.endorsed.dir"/>
<available file="nbproject/jaxws-build.xml"/>
</and>
</condition>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
<fail unless="src.dir">Must set src.dir</fail>
<fail unless="test.src.dir">Must set test.src.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
<fail unless="dist.jar">Must set dist.jar</fail>
</target>
<target name="-init-macrodef-property">
<macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-javac">
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}" name="classpath"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<attribute default="" name="sourcepath"/>
<element name="customize" optional="true"/>
<sequential>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
<classpath>
<path path="@{classpath}"/>
</classpath>
<compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
<customize/>
</javac>
</sequential>
</macrodef>
<macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}" name="classpath"/>
<sequential>
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
<classpath>
<path path="@{classpath}"/>
</classpath>
</depend>
</sequential>
</macrodef>
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${build.classes.dir}" name="destdir"/>
<sequential>
<fail unless="javac.includes">Must set javac.includes</fail>
<pathconvert pathsep="," property="javac.includes.binary">
<path>
<filelist dir="@{destdir}" files="${javac.includes}"/>
</path>
<globmapper from="*.java" to="*.class"/>
</pathconvert>
<delete>
<files includes="${javac.includes.binary}"/>
</delete>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-junit">
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<sequential>
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
<filename name="@{testincludes}"/>
</fileset>
</batchtest>
<classpath>
<path path="${run.test.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg line="${run.jvmargs}"/>
</junit>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-nbjpda">
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
<attribute default="${main.class}" name="name"/>
<attribute default="${debug.classpath}" name="classpath"/>
<attribute default="" name="stopclassname"/>
<sequential>
<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
<classpath>
<path path="@{classpath}"/>
</classpath>
</nbjpdastart>
</sequential>
</macrodef>
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
<attribute default="${build.classes.dir}" name="dir"/>
<sequential>
<nbjpdareload>
<fileset dir="@{dir}" includes="${fix.classes}">
<include name="${fix.includes}*.class"/>
</fileset>
</nbjpdareload>
</sequential>
</macrodef>
</target>
<target name="-init-debug-args">
<property name="version-output" value="java version &quot;${ant.java.version}"/>
<condition property="have-jdk-older-than-1.4">
<or>
<contains string="${version-output}" substring="java version &quot;1.0"/>
<contains string="${version-output}" substring="java version &quot;1.1"/>
<contains string="${version-output}" substring="java version &quot;1.2"/>
<contains string="${version-output}" substring="java version &quot;1.3"/>
</or>
</condition>
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
<istrue value="${have-jdk-older-than-1.4}"/>
</condition>
</target>
<target depends="-init-debug-args" name="-init-macrodef-debug">
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
<jvmarg line="${run.jvmargs}"/>
<classpath>
<path path="@{classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-java">
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
<attribute default="${main.class}" name="classname"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<jvmarg line="${run.jvmargs}"/>
<classpath>
<path path="${run.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-presetdef-jar">
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
<jar compress="${jar.compress}" jarfile="${dist.jar}">
<j2seproject1:fileset dir="${build.classes.dir}"/>
</jar>
</presetdef>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
<!--
===================
COMPILATION SECTION
===================
-->
<target depends="init" name="deps-jar" unless="no.deps">
<ant antfile="${project.JMeuMeuCustomComponents}/build.xml" inheritall="false" target="jar"/>
</target>
<target depends="init,deps-jar" name="-pre-pre-compile">
<mkdir dir="${build.classes.dir}"/>
</target>
<target name="-pre-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target if="do.depend.true" name="-compile-depend">
<j2seproject3:depend/>
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
<j2seproject3:javac/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
<target name="-pre-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<j2seproject3:force-recompile/>
<j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
</target>
<target name="-post-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
<!--
====================
JAR BUILDING SECTION
====================
-->
<target depends="init" name="-pre-pre-jar">
<dirname file="${dist.jar}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
</target>
<target name="-pre-jar">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
<j2seproject1:jar/>
</target>
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
<j2seproject1:jar manifest="${manifest.file}"/>
</target>
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
<j2seproject1:jar manifest="${manifest.file}">
<j2seproject1:manifest>
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
</j2seproject1:manifest>
</j2seproject1:jar>
<echo>To run this application from the command line without Ant, try:</echo>
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
<property location="${dist.jar}" name="dist.jar.resolved"/>
<pathconvert property="run.classpath.with.dist.jar">
<path path="${run.classpath}"/>
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
</pathconvert>
<echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
</target>
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
<pathconvert property="run.classpath.without.build.classes.dir">
<path path="${run.classpath}"/>
<map from="${build.classes.dir.resolved}" to=""/>
</pathconvert>
<pathconvert pathsep=" " property="jar.classpath">
<path path="${run.classpath.without.build.classes.dir}"/>
<chainedmapper>
<flattenmapper/>
<globmapper from="*" to="lib/*"/>
</chainedmapper>
</pathconvert>
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
<copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
<fileset dir="${build.classes.dir}"/>
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</copylibs>
<echo>To run this application from the command line without Ant, try:</echo>
<property location="${dist.jar}" name="dist.jar.resolved"/>
<echo>java -jar "${dist.jar.resolved}"</echo>
</target>
<target name="-post-jar">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
<!--
=================
EXECUTION SECTION
=================
-->
<target depends="init,compile" description="Run a main class." name="run">
<j2seproject1:java>
<customize>
<arg line="${application.args}"/>
</customize>
</j2seproject1:java>
</target>
<target name="-do-not-recompile">
<property name="javac.includes.binary" value=""/>
</target>
<target depends="init,-do-not-recompile,compile-single" name="run-single">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<j2seproject1:java classname="${run.class}"/>
</target>
<!--
=================
DEBUGGING SECTION
=================
-->
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
<j2seproject1:nbjpdastart name="${debug.class}"/>
</target>
<target depends="init,compile" name="-debug-start-debuggee">
<j2seproject3:debug>
<customize>
<arg line="${application.args}"/>
</customize>
</j2seproject3:debug>
</target>
<target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
<target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
<j2seproject1:nbjpdastart stopclassname="${main.class}"/>
</target>
<target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<j2seproject3:debug classname="${debug.class}"/>
</target>
<target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
<target depends="init" name="-pre-debug-fix">
<fail unless="fix.includes">Must set fix.includes</fail>
<property name="javac.includes" value="${fix.includes}.java"/>
</target>
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
<j2seproject1:nbjpdareload/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
<!--
===============
JAVADOC SECTION
===============
-->
<target depends="init" name="-javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath>
<path path="${javac.classpath}"/>
</classpath>
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/>
</fileset>
</javadoc>
</target>
<target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
</target>
<target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
<!--
=========================
JUNIT COMPILATION SECTION
=========================
-->
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
<mkdir dir="${build.test.classes.dir}"/>
</target>
<target name="-pre-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target if="do.depend.true" name="-compile-test-depend">
<j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
<j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
<target name="-pre-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
<j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
<!--
=======================
JUNIT EXECUTION SECTION
=======================
-->
<target depends="init" if="have.tests" name="-pre-test-run">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
<j2seproject3:junit testincludes="**/*Test.java"/>
</target>
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
<fail if="tests.failed">Some tests failed; see details above.</fail>
</target>
<target depends="init" if="have.tests" name="test-report"/>
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
<target depends="init" if="have.tests" name="-pre-test-run-single">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
<j2seproject3:junit excludes="" includes="${test.includes}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
<fail if="tests.failed">Some tests failed; see details above.</fail>
</target>
<target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
<!--
=======================
JUNIT DEBUGGING SECTION
=======================
-->
<target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
<property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
<delete file="${test.report.file}"/>
<mkdir dir="${build.test.results.dir}"/>
<j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
<customize>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<arg value="${test.class}"/>
<arg value="showoutput=true"/>
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
</customize>
</j2seproject3:debug>
</target>
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
</target>
<target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
<j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
<!--
=========================
APPLET EXECUTION SECTION
=========================
-->
<target depends="init,compile-single" name="run-applet">
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
<j2seproject1:java classname="sun.applet.AppletViewer">
<customize>
<arg value="${applet.url}"/>
</customize>
</j2seproject1:java>
</target>
<!--
=========================
APPLET DEBUGGING SECTION
=========================
-->
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
<j2seproject3:debug classname="sun.applet.AppletViewer">
<customize>
<arg value="${applet.url}"/>
</customize>
</j2seproject3:debug>
</target>
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
<!--
===============
CLEANUP SECTION
===============
-->
<target depends="init" name="deps-clean" unless="no.deps">
<ant antfile="${project.JMeuMeuCustomComponents}/build.xml" inheritall="false" target="clean"/>
</target>
<target depends="init" name="-do-clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="-post-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
</project>

8
nbproject/genfiles.properties Executable file
View File

@ -0,0 +1,8 @@
build.xml.data.CRC32=ce12e244
build.xml.script.CRC32=c0697925
build.xml.stylesheet.CRC32=be360661
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=ce12e244
nbproject/build-impl.xml.script.CRC32=7709f7ae
nbproject/build-impl.xml.stylesheet.CRC32=487672f9

View File

@ -0,0 +1,2 @@
jaxws.endorsed.dir=C:\\Program Files\\NetBeans 6.1\\java2\\modules\\ext\\jaxws21\\api
user.properties.file=C:\\Users\\Adz\\.netbeans\\6.1\\build.properties

4
nbproject/private/private.xml Executable file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
</project-private>

70
nbproject/project.properties Executable file
View File

@ -0,0 +1,70 @@
application.desc=A simple java desktop application based on Swing Application Framework
application.homepage=http://appframework.dev.java.net
application.title=Basic Application Example
application.vendor=Sun Microsystems Inc.
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/JMeuMeu.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
file.reference.ojdbc14_g.jar=C:\\Users\\Adz\\LMI\\Projet JMeuMeu\\JMeuMeu\\dist\\ojdbc14_g.jar
includes=**
jar.compress=false
javac.classpath=\
${libs.swing-app-framework.classpath}:\
${reference.JMeuMeuCustomComponents.jar}:\
${file.reference.ojdbc14_g.jar}:\
${libs.absolutelayout.classpath}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.source=1.5
javac.target=1.5
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}:\
${libs.junit.classpath}:\
${libs.junit_4.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=jmeumeu.JMeuMeuApp
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
platform.active=default_platform
project.JMeuMeuCustomComponents=../JMeuMeuCustomComponents
reference.JMeuMeuCustomComponents.jar=${project.JMeuMeuCustomComponents}/dist/JMeuMeuCustomComponents.jar
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test

29
nbproject/project.xml Executable file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>JMeuMeu</name>
<minimum-ant-version>1.6.5</minimum-ant-version>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
<reference>
<foreign-project>JMeuMeuCustomComponents</foreign-project>
<artifact-type>jar</artifact-type>
<script>build.xml</script>
<target>jar</target>
<clean-target>clean</clean-target>
<id>jar</id>
</reference>
</references>
<swingapp xmlns="http://www.netbeans.org/ns/form-swingapp/1">
<application-class name="jmeumeu.JMeuMeuApp"/>
</swingapp>
</configuration>
</project>

152
script génération base.txt Executable file
View File

@ -0,0 +1,152 @@
--Suppression
DROP TABLE FERME CASCADE CONSTRAINTS;
DROP TABLE VOLAILLE CASCADE CONSTRAINTS;
DROP TABLE ARTICLE CASCADE CONSTRAINTS;
DROP TABLE MARCHE_VEND CASCADE CONSTRAINTS;
DROP TABLE ENTREPOSE CASCADE CONSTRAINTS;
DROP TABLE A_VENDU CASCADE CONSTRAINTS;
--Table ferme
CREATE TABLE FERME
(
ID_FERMIER VARCHAR2(15) NOT NULL,
NOM VARCHAR2(50) NOT NULL,
MDP VARCHAR2(15) NOT NULL,
MAIL VARCHAR2(50) NOT NULL,
DATE_ENREGISTREMENT DATE NOT NULL,
DATE_CONNECTION DATE NOT NULL,
ECUS INTEGER DEFAULT 500 CHECK( ECUS >= 0),
SCORE INTEGER DEFAULT 0 CHECK( SCORE >= 0),
CLASSEMENT INTEGER NULL,
HIBERNATION CHAR(1) DEFAULT 'F' CHECK (HIBERNATION IN ('T','F')),
NB_ACHATS_JOUR INTEGER DEFAULT 0 CHECK (NB_ACHATS_JOUR BETWEEN 0 AND 12),
NB_MALE INTEGER DEFAULT 0 CHECK ( NB_MALE >= 0),
NB_FEMELLE INTEGER DEFAULT 0 CHECK ( NB_FEMELLE >= 0),
NB_GROS INTEGER DEFAULT 0 CHECK ( NB_GROS >= 0),
NB_MOYEN INTEGER DEFAULT 0 CHECK ( NB_MOYEN >= 0),
NB_PETIT INTEGER DEFAULT 8 CHECK ( NB_PETIT >= 0),
ABREUVAGE_L CHAR(1) DEFAULT 'F' CHECK (ABREUVAGE_L IN ('T','F')),
NB_ABREUVAGE_L INTEGER CHECK (NB_ABREUVAGE_L BETWEEN 0 AND 4),
NOURRI_L CHAR(1) DEFAULT 'F' CHECK (NOURRI_L IN ('T','F')),
NB_JEUNE_L INTEGER CHECK (NB_JEUNE_L BETWEEN 0 AND 4),
SALE_L CHAR(1) DEFAULT 'F' CHECK (SALE_L IN ('T','F')),
NB_MALADE_L INTEGER CHECK(NB_MALADE_L BETWEEN 0 AND 4),
ABREUVAGE_J CHAR(1) DEFAULT 'F' CHECK (ABREUVAGE_J IN ('T','F')),
NB_ABREUVAGE_J INTEGER CHECK (NB_ABREUVAGE_J BETWEEN 0 AND 4),
NOURRI_J CHAR(1) DEFAULT 'F' CHECK (NOURRI_J IN ('T','F')),
NB_JEUNE_J INTEGER CHECK(NB_JEUNE_J BETWEEN 0 AND 4),
SALE_J CHAR(1) DEFAULT 'F' CHECK ( SALE_J IN ('T','F')),
NB_MALADE_J INTEGER CHECK(NB_MALADE_J BETWEEN 0 AND 4),
ABREUVAGE_VACHE CHAR(1) DEFAULT 'F' CHECK (ABREUVAGE_VACHE IN ('T','F')),
NB_ABREUVAGE_VACHE INTEGER CHECK(NB_ABREUVAGE_VACHE BETWEEN 0 AND 4),
NOURRI_VACHE CHAR(1) DEFAULT 'F' CHECK (NOURRI_VACHE IN ('T','F')),
NB_JEUNE_VACHE INTEGER CHECK(NB_JEUNE_VACHE BETWEEN 0 AND 4),
SALE_VACHE CHAR(1) DEFAULT 'F' CHECK (SALE_VACHE IN ('T','F')),
NB_MALADE_VACHE INTEGER CHECK (NB_MALADE_VACHE BETWEEN 0 AND 4),
POIDS_VACHE INTEGER DEFAULT 0 CHECK ( POIDS_VACHE BETWEEN 0 AND 750),
AGE_VACHE INTEGER DEFAULT 0,
NB_LAIT INTEGER DEFAULT 0 CHECK ( NB_LAIT BETWEEN 0 AND 16),
CONSTRAINT PK_FERMIER PRIMARY KEY (ID_FERMIER)
);
--Table volaille
CREATE TABLE VOLAILLE
(
ID_VOLAILLE INTEGER NOT NULL,
ID_FERMIER VARCHAR2(15) NOT NULL,
ABREUVAGE_V CHAR(1) DEFAULT 'F' CHECK (ABREUVAGE_V IN ('T','F')),
NB_ABREUVAGE_V INTEGER CHECK (NB_ABREUVAGE_V BETWEEN 0 AND 4),
NOURRI_V CHAR(1) DEFAULT 'F' CHECK (NOURRI_V IN ('T','F')),
NB_JEUNE_V INTEGER CHECK (NB_JEUNE_V BETWEEN 0 AND 4),
SALE_V CHAR(1) DEFAULT 'F' CHECK (SALE_V IN ('T','F')),
NB_MALADE_V INTEGER CHECK (NB_MALADE_V BETWEEN 0 AND 4),
POIDS_V FLOAT DEFAULT 0.05 CHECK (POIDS_V BETWEEN 0 AND 3.5),
AGE_V INTEGER DEFAULT 0 CHECK (AGE_V >= 0),
PRODUCTION_V INTEGER DEFAULT 0,
CONSTRAINT PK_VOLAILLES PRIMARY KEY (ID_VOLAILLE)
);
--Table article
CREATE TABLE ARTICLE
(
ID_ARTICLE INTEGER NOT NULL,
NOM VARCHAR2(25) NOT NULL,
DESCRIPTION VARCHAR2(500) NOT NULL,
COLLECTIONNABLE CHAR(1) DEFAULT 'F' CHECK (COLLECTIONNABLE IN ('T','F')),
QUANTITE INTEGER DEFAULT 0 CHECK(QUANTITE >= 0),
PRIX_VENTE INTEGER DEFAULT 0 CHECK(PRIX_VENTE >= 0),
PRIX_ACHAT INTEGER DEFAULT 0 CHECK(PRIX_ACHAT >= 0),
CONSTRAINT PK_ARTICLE PRIMARY KEY (ID_ARTICLE)
);
--Table marche_vend
CREATE TABLE MARCHE_VEND
(
ID_FERMIER VARCHAR2(15) NOT NULL,
ID_ARTICLE INTEGER NOT NULL,
NB_VENTE INTEGER DEFAULT 0 CHECK (NB_VENTE >= 0),
PRIX INTEGER DEFAULT 0 CHECK (PRIX >= 0),
CONSTRAINT PK_MARCHE_VEND PRIMARY KEY (ID_FERMIER, ID_ARTICLE)
);
--Table entrepose
CREATE TABLE ENTREPOSE
(
ID_FERMIER VARCHAR2(15) NOT NULL,
ID_ARTICLE INTEGER NOT NULL,
QUANTITE INTEGER DEFAULT 0 CHECK (QUANTITE >= 0),
COLLECTION CHAR(1) DEFAULT 'F' CHECK (COLLECTION IN ('T','F')),
CONSTRAINT PK_ENTREPOSE PRIMARY KEY (ID_FERMIER, ID_ARTICLE)
);
--Table a_vendu
CREATE TABLE A_VENDU
(
ID_FERMIER VARCHAR2(15) NOT NULL,
ID_ARTICLE INTEGER NOT NULL,
NB_VENDU INTEGER DEFAULT 0 CHECK (NB_VENDU >= 0),
DATE_VENTE DATE NULL,
CONSTRAINT PK_A_VENDU PRIMARY KEY (ID_FERMIER, ID_ARTICLE)
);
--Alter table pour les cles etrangeres
ALTER TABLE VOLAILLE ADD (
CONSTRAINT FK_VOLAILLE_FERMIER
FOREIGN KEY (ID_FERMIER)
REFERENCES FERME (ID_FERMIER)) ;
ALTER TABLE MARCHE_VEND ADD (
CONSTRAINT FK_MARCHE_VEND_FERMIER
FOREIGN KEY (ID_FERMIER)
REFERENCES FERME (ID_FERMIER)) ;
ALTER TABLE MARCHE_VEND ADD (
CONSTRAINT FK_MARCHE_VEND_ARTICLE
FOREIGN KEY (ID_ARTICLE)
REFERENCES ARTICLE (ID_ARTICLE)) ;
ALTER TABLE ENTREPOSE ADD (
CONSTRAINT FK_ENTREPOSE_FERMIER
FOREIGN KEY (ID_FERMIER)
REFERENCES FERME (ID_FERMIER)) ;
ALTER TABLE ENTREPOSE ADD (
CONSTRAINT FK_ENTREPOSE_ARTICLE
FOREIGN KEY (ID_ARTICLE)
REFERENCES ARTICLE (ID_ARTICLE)) ;
ALTER TABLE A_VENDU ADD (
CONSTRAINT FK_A_VENDU_FERMIER
FOREIGN KEY (ID_FERMIER)
REFERENCES FERME (ID_FERMIER)) ;
ALTER TABLE A_VENDU ADD (
CONSTRAINT FK_A_VENDU_ARTICLE
FOREIGN KEY (ID_ARTICLE)
REFERENCES ARTICLE (ID_ARTICLE)) ;
-- View : coop_stock
-- View : Clapier
-- View : Paturage

495
src/GameField/Clapier.form Executable file
View File

@ -0,0 +1,495 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" pref="731" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel2" min="-2" pref="352" max="-2" attributes="0"/>
<EmptySpace pref="37" max="32767" attributes="0"/>
<Component id="jLabel3" min="-2" pref="352" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="92" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="imagePanelLapereau" alignment="0" min="-2" pref="230" max="-2" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="jButtonNourrirJ" max="32767" attributes="1"/>
<Component id="jButtonAbreuverJ" alignment="0" pref="92" max="32767" attributes="1"/>
</Group>
<EmptySpace pref="43" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="jButtonNettoyerJ" alignment="0" max="32767" attributes="1"/>
<Component id="jButtonSoignerJ" alignment="0" pref="95" max="32767" attributes="1"/>
</Group>
</Group>
</Group>
<EmptySpace pref="131" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace min="10" pref="10" max="10" attributes="0"/>
<Component id="panel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="jButtonNourrirV" alignment="0" max="32767" attributes="1"/>
<Component id="jButtonAbreuverV" alignment="0" min="-2" pref="92" max="-2" attributes="1"/>
</Group>
<EmptySpace pref="43" max="32767" attributes="0"/>
<Group type="103" groupAlignment="1" max="-2" attributes="0">
<Component id="jButtonNettoyerV" max="32767" attributes="1"/>
<Component id="jButtonSoignerV" alignment="1" pref="95" max="32767" attributes="1"/>
</Group>
</Group>
<Component id="imagePanelLapin" alignment="0" min="-2" pref="230" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="68" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace min="10" pref="10" max="10" attributes="0"/>
<Component id="panel3" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="imagePanelLapin" alignment="0" min="-2" pref="205" max="-2" attributes="0"/>
<Component id="imagePanelLapereau" alignment="0" min="-2" pref="205" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jButtonAbreuverJ" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButtonSoignerJ" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jButtonNettoyerJ" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButtonNourrirJ" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jButtonAbreuverV" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButtonSoignerV" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jButtonNourrirV" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButtonNettoyerV" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="panel1" min="-2" max="-2" attributes="0"/>
<Component id="panel3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="143" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="Components.ImagePanel" name="imagePanelLapereau">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[330, 330]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[330, 330]"/>
</Property>
<Property name="name" type="java.lang.String" value="imagePanelLapereau" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="228" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="203" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
<Container class="Components.ImagePanel" name="imagePanelLapin">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[330, 330]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[330, 330]"/>
</Property>
<Property name="name" type="java.lang.String" value="imagePanelLapin" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="228" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="203" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel2.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/>
<Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel3">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel3.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel3.text"/>
<Property name="name" type="java.lang.String" value="jLabel3" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="jButtonAbreuverJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonAbreuverJ.text"/>
<Property name="name" type="java.lang.String" value="jButtonAbreuverJ" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonAbreuverJMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonAbreuverJMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonAbreuverJButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonNourrirJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonNourrirJ.text"/>
<Property name="name" type="java.lang.String" value="jButtonNourrirJ" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNourrirJMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNourrirJMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonNourrirJButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonSoignerJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonSoignerJ.text"/>
<Property name="name" type="java.lang.String" value="jButtonSoignerJ" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonSoignerJMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonSoignerJMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonSoignerJButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonNettoyerJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonNettoyerJ.text"/>
<Property name="name" type="java.lang.String" value="jButtonNettoyerJ" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNettoyerJMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNettoyerJMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonNettoyerJButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonNourrirV">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonNourrirV.text"/>
<Property name="name" type="java.lang.String" value="jButtonNourrirV" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNourrirVMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNourrirVMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonNourrirVButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonAbreuverV">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonAbreuverV.text"/>
<Property name="name" type="java.lang.String" value="jButtonAbreuverV" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonAbreuverVMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonAbreuverVMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonAbreuverVButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonNettoyerV">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonNettoyerV.text"/>
<Property name="name" type="java.lang.String" value="jButtonNettoyerV" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNettoyerVMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonNettoyerVMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonNettoyerVButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButtonSoignerV">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButtonSoignerV.text"/>
<Property name="name" type="java.lang.String" value="jButtonSoignerV" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonSoignerVMouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButtonSoignerVMouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonSoignerVButtonActionPerformed"/>
</Events>
</Component>
<Container class="java.awt.Panel" name="panel1">
<Properties>
<Property name="name" type="java.lang.String" value="panel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="1">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="47" max="32767" attributes="0"/>
<Component id="jLabelDesalteresJ" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel6" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabelNourrisJ" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabelNbMaladesJ" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<EmptySpace pref="23" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabelDesalteresJ" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabelNourrisJ" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabelNbMaladesJ" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel4">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel4.text"/>
<Property name="name" type="java.lang.String" value="jLabel4" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel5.text"/>
<Property name="name" type="java.lang.String" value="jLabel5" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel6">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel6.text"/>
<Property name="name" type="java.lang.String" value="jLabel6" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabelNbMaladesJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabelNbMaladesJ.text"/>
<Property name="name" type="java.lang.String" value="jLabelNbMaladesJ" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabelNourrisJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabelNourrisJ.text"/>
<Property name="name" type="java.lang.String" value="jLabelNourrisJ" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabelDesalteresJ">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabelDesalteresJ.text"/>
<Property name="name" type="java.lang.String" value="jLabelDesalteresJ" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Container class="java.awt.Panel" name="panel3">
<Properties>
<Property name="name" type="java.lang.String" value="panel3" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel14" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabelNbMaladesL" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel12" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel13" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="44" max="32767" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Component id="jLabelNourrisL" min="-2" max="-2" attributes="0"/>
<Component id="jLabelDesalteresL" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<EmptySpace pref="29" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel12" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabelDesalteresL" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel13" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabelNourrisL" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel14" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabelNbMaladesL" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel12">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel12.text"/>
<Property name="name" type="java.lang.String" value="jLabel12" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel13">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel13.text"/>
<Property name="name" type="java.lang.String" value="jLabel13" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel14">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel14.text"/>
<Property name="name" type="java.lang.String" value="jLabel14" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabelNbMaladesL">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabelNbMaladesL.text"/>
<Property name="name" type="java.lang.String" value="jLabelNbMaladesL" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabelNourrisL">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabelNourrisL.text"/>
<Property name="name" type="java.lang.String" value="jLabelNourrisL" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabelDesalteresL">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabelDesalteresL.text"/>
<Property name="name" type="java.lang.String" value="jLabelDesalteresL" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Form>

706
src/GameField/Clapier.java Executable file
View File

@ -0,0 +1,706 @@
/*
* Clapier.java
*
* Created on 7 mai 2008, 17:15
*/
package GameField;
import jmeumeu.JMeuMeuView;
/**
*
* @author Jeremy
*/
public class Clapier extends javax.swing.JPanel {
/** Creates new form Clapier */
public Clapier(JMeuMeuView View, jmeumeu.JMeuMeuGameField Field) {
initComponents();
_View = View;
_Field = Field;
imagePanelLapereau.SetBackground(View.getFrame(), "./images/lapereau.jpg");
imagePanelLapin.SetBackground(View.getFrame(), "./images/lapin.jpg");
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
imagePanelLapereau = new Components.ImagePanel();
jLabel1 = new javax.swing.JLabel();
imagePanelLapin = new Components.ImagePanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jButtonAbreuverJ = new javax.swing.JButton();
jButtonNourrirJ = new javax.swing.JButton();
jButtonSoignerJ = new javax.swing.JButton();
jButtonNettoyerJ = new javax.swing.JButton();
jButtonNourrirV = new javax.swing.JButton();
jButtonAbreuverV = new javax.swing.JButton();
jButtonNettoyerV = new javax.swing.JButton();
jButtonSoignerV = new javax.swing.JButton();
panel1 = new java.awt.Panel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabelNbMaladesJ = new javax.swing.JLabel();
jLabelNourrisJ = new javax.swing.JLabel();
jLabelDesalteresJ = new javax.swing.JLabel();
panel3 = new java.awt.Panel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabelNbMaladesL = new javax.swing.JLabel();
jLabelNourrisL = new javax.swing.JLabel();
jLabelDesalteresL = new javax.swing.JLabel();
setName("Form"); // NOI18N
imagePanelLapereau.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
imagePanelLapereau.setMaximumSize(new java.awt.Dimension(330, 330));
imagePanelLapereau.setMinimumSize(new java.awt.Dimension(330, 330));
imagePanelLapereau.setName("imagePanelLapereau"); // NOI18N
javax.swing.GroupLayout imagePanelLapereauLayout = new javax.swing.GroupLayout(imagePanelLapereau);
imagePanelLapereau.setLayout(imagePanelLapereauLayout);
imagePanelLapereauLayout.setHorizontalGroup(
imagePanelLapereauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 228, Short.MAX_VALUE)
);
imagePanelLapereauLayout.setVerticalGroup(
imagePanelLapereauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 203, Short.MAX_VALUE)
);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Clapier.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
imagePanelLapin.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
imagePanelLapin.setMaximumSize(new java.awt.Dimension(330, 330));
imagePanelLapin.setMinimumSize(new java.awt.Dimension(330, 330));
imagePanelLapin.setName("imagePanelLapin"); // NOI18N
javax.swing.GroupLayout imagePanelLapinLayout = new javax.swing.GroupLayout(imagePanelLapin);
imagePanelLapin.setLayout(imagePanelLapinLayout);
imagePanelLapinLayout.setHorizontalGroup(
imagePanelLapinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 228, Short.MAX_VALUE)
);
imagePanelLapinLayout.setVerticalGroup(
imagePanelLapinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 203, Short.MAX_VALUE)
);
jLabel2.setFont(resourceMap.getFont("jLabel2.font")); // NOI18N
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
jLabel2.setName("jLabel2"); // NOI18N
jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
jLabel3.setName("jLabel3"); // NOI18N
jButtonAbreuverJ.setText(resourceMap.getString("jButtonAbreuverJ.text")); // NOI18N
jButtonAbreuverJ.setName("jButtonAbreuverJ"); // NOI18N
jButtonAbreuverJ.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonAbreuverJMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonAbreuverJMouseExited(evt);
}
});
jButtonAbreuverJ.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonAbreuverJButtonActionPerformed(evt);
}
});
jButtonNourrirJ.setText(resourceMap.getString("jButtonNourrirJ.text")); // NOI18N
jButtonNourrirJ.setName("jButtonNourrirJ"); // NOI18N
jButtonNourrirJ.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonNourrirJMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonNourrirJMouseExited(evt);
}
});
jButtonNourrirJ.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonNourrirJButtonActionPerformed(evt);
}
});
jButtonSoignerJ.setText(resourceMap.getString("jButtonSoignerJ.text")); // NOI18N
jButtonSoignerJ.setName("jButtonSoignerJ"); // NOI18N
jButtonSoignerJ.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonSoignerJMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonSoignerJMouseExited(evt);
}
});
jButtonSoignerJ.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonSoignerJButtonActionPerformed(evt);
}
});
jButtonNettoyerJ.setText(resourceMap.getString("jButtonNettoyerJ.text")); // NOI18N
jButtonNettoyerJ.setName("jButtonNettoyerJ"); // NOI18N
jButtonNettoyerJ.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonNettoyerJMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonNettoyerJMouseExited(evt);
}
});
jButtonNettoyerJ.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonNettoyerJButtonActionPerformed(evt);
}
});
jButtonNourrirV.setText(resourceMap.getString("jButtonNourrirV.text")); // NOI18N
jButtonNourrirV.setName("jButtonNourrirV"); // NOI18N
jButtonNourrirV.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonNourrirVMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonNourrirVMouseExited(evt);
}
});
jButtonNourrirV.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonNourrirVButtonActionPerformed(evt);
}
});
jButtonAbreuverV.setText(resourceMap.getString("jButtonAbreuverV.text")); // NOI18N
jButtonAbreuverV.setName("jButtonAbreuverV"); // NOI18N
jButtonAbreuverV.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonAbreuverVMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonAbreuverVMouseExited(evt);
}
});
jButtonAbreuverV.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonAbreuverVButtonActionPerformed(evt);
}
});
jButtonNettoyerV.setText(resourceMap.getString("jButtonNettoyerV.text")); // NOI18N
jButtonNettoyerV.setName("jButtonNettoyerV"); // NOI18N
jButtonNettoyerV.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonNettoyerVMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonNettoyerVMouseExited(evt);
}
});
jButtonNettoyerV.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonNettoyerVButtonActionPerformed(evt);
}
});
jButtonSoignerV.setText(resourceMap.getString("jButtonSoignerV.text")); // NOI18N
jButtonSoignerV.setName("jButtonSoignerV"); // NOI18N
jButtonSoignerV.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButtonSoignerVMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButtonSoignerVMouseExited(evt);
}
});
jButtonSoignerV.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonSoignerVButtonActionPerformed(evt);
}
});
panel1.setName("panel1"); // NOI18N
jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
jLabel4.setName("jLabel4"); // NOI18N
jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
jLabel5.setName("jLabel5"); // NOI18N
jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
jLabel6.setName("jLabel6"); // NOI18N
jLabelNbMaladesJ.setText(resourceMap.getString("jLabelNbMaladesJ.text")); // NOI18N
jLabelNbMaladesJ.setName("jLabelNbMaladesJ"); // NOI18N
jLabelNourrisJ.setText(resourceMap.getString("jLabelNourrisJ.text")); // NOI18N
jLabelNourrisJ.setName("jLabelNourrisJ"); // NOI18N
jLabelDesalteresJ.setText(resourceMap.getString("jLabelDesalteresJ.text")); // NOI18N
jLabelDesalteresJ.setName("jLabelDesalteresJ"); // NOI18N
javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);
panel1.setLayout(panel1Layout);
panel1Layout.setHorizontalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
.addComponent(jLabelDesalteresJ))
.addGroup(panel1Layout.createSequentialGroup()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(jLabel5))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabelNourrisJ)
.addComponent(jLabelNbMaladesJ))))
.addContainerGap(23, javax.swing.GroupLayout.PREFERRED_SIZE))
);
panel1Layout.setVerticalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jLabelDesalteresJ))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(jLabelNourrisJ))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(jLabelNbMaladesJ))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
panel3.setName("panel3"); // NOI18N
jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
jLabel12.setName("jLabel12"); // NOI18N
jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
jLabel13.setName("jLabel13"); // NOI18N
jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
jLabel14.setName("jLabel14"); // NOI18N
jLabelNbMaladesL.setText(resourceMap.getString("jLabelNbMaladesL.text")); // NOI18N
jLabelNbMaladesL.setName("jLabelNbMaladesL"); // NOI18N
jLabelNourrisL.setText(resourceMap.getString("jLabelNourrisL.text")); // NOI18N
jLabelNourrisL.setName("jLabelNourrisL"); // NOI18N
jLabelDesalteresL.setText(resourceMap.getString("jLabelDesalteresL.text")); // NOI18N
jLabelDesalteresL.setName("jLabelDesalteresL"); // NOI18N
javax.swing.GroupLayout panel3Layout = new javax.swing.GroupLayout(panel3);
panel3.setLayout(panel3Layout);
panel3Layout.setHorizontalGroup(
panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel3Layout.createSequentialGroup()
.addComponent(jLabel14)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabelNbMaladesL))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel3Layout.createSequentialGroup()
.addGroup(panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel12)
.addComponent(jLabel13))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)
.addGroup(panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabelNourrisL)
.addComponent(jLabelDesalteresL))))
.addContainerGap(29, Short.MAX_VALUE))
);
panel3Layout.setVerticalGroup(
panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel12)
.addComponent(jLabelDesalteresL))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel13)
.addComponent(jLabelNourrisL))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(jLabelNbMaladesL))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 731, Short.MAX_VALUE)
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(92, 92, 92)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(imagePanelLapereau, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButtonNourrirJ, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButtonAbreuverJ, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButtonNettoyerJ, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButtonSoignerJ, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 131, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButtonNourrirV, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButtonAbreuverV, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jButtonNettoyerV, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButtonSoignerV, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)))
.addComponent(imagePanelLapin, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(68, 68, 68))
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(panel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jLabel3))
.addGap(17, 17, 17)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(imagePanelLapin, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(imagePanelLapereau, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonAbreuverJ)
.addComponent(jButtonSoignerJ))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonNettoyerJ)
.addComponent(jButtonNourrirJ)))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonAbreuverV)
.addComponent(jButtonSoignerV))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonNourrirV)
.addComponent(jButtonNettoyerV))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(panel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(143, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
private void jButtonAbreuverJMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonAbreuverJMouseEntered
}//GEN-LAST:event_jButtonAbreuverJMouseEntered
private void jButtonAbreuverJMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonAbreuverJMouseExited
}//GEN-LAST:event_jButtonAbreuverJMouseExited
private void jButtonAbreuverJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbreuverJButtonActionPerformed
}//GEN-LAST:event_jButtonAbreuverJButtonActionPerformed
private void jButtonNourrirJMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNourrirJMouseEntered
}//GEN-LAST:event_jButtonNourrirJMouseEntered
private void jButtonNourrirJMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNourrirJMouseExited
}//GEN-LAST:event_jButtonNourrirJMouseExited
private void jButtonNourrirJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNourrirJButtonActionPerformed
}//GEN-LAST:event_jButtonNourrirJButtonActionPerformed
private void jButtonSoignerJMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonSoignerJMouseEntered
}//GEN-LAST:event_jButtonSoignerJMouseEntered
private void jButtonSoignerJMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonSoignerJMouseExited
}//GEN-LAST:event_jButtonSoignerJMouseExited
private void jButtonSoignerJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSoignerJButtonActionPerformed
}//GEN-LAST:event_jButtonSoignerJButtonActionPerformed
private void jButtonNettoyerJMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNettoyerJMouseEntered
}//GEN-LAST:event_jButtonNettoyerJMouseEntered
private void jButtonNettoyerJMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNettoyerJMouseExited
}//GEN-LAST:event_jButtonNettoyerJMouseExited
private void jButtonNettoyerJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNettoyerJButtonActionPerformed
}//GEN-LAST:event_jButtonNettoyerJButtonActionPerformed
private void ButtonActionPerformed(java.awt.event.ActionEvent evt) {
String ActionEvent = evt.getActionCommand();
if(ActionEvent.equals("AbreuverJ"))
{
if(_View._Oracle.callProc("abreuver_clapier", _View._Datas.id_fermier+", TRUE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("AbreuverV"))
{
if(_View._Oracle.callProc("abreuver_clapier", _View._Datas.id_fermier+", FALSE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("NourrirJ"))
{
if(_View._Oracle.callProc("nourrir_clapier", _View._Datas.id_fermier+", TRUE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("NourrirV"))
{
if(_View._Oracle.callProc("nourrir_clapier", _View._Datas.id_fermier+", FALSE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("SoignerJ"))
{
if(_View._Oracle.callProc("soigner_clapier", _View._Datas.id_fermier+", TRUE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("SoignerV"))
{
if(_View._Oracle.callProc("soigner_clapier", _View._Datas.id_fermier+", FALSE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("NettoyerJ"))
{
if(_View._Oracle.callProc("nettoyer_clapier", _View._Datas.id_fermier+", TRUE"))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("NettoyerV"))
{
if(_View._Oracle.callProc("nettoyer_clapier", _View._Datas.id_fermier+", FALSE"))
{
ReloadDatas();
}
}
}
private void jButtonNourrirVMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNourrirVMouseEntered
// TODO add your handling code here:
}//GEN-LAST:event_jButtonNourrirVMouseEntered
private void jButtonNourrirVMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNourrirVMouseExited
// TODO add your handling code here:
}//GEN-LAST:event_jButtonNourrirVMouseExited
private void jButtonNourrirVButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNourrirVButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonNourrirVButtonActionPerformed
private void jButtonAbreuverVMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonAbreuverVMouseEntered
// TODO add your handling code here:
}//GEN-LAST:event_jButtonAbreuverVMouseEntered
private void jButtonAbreuverVMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonAbreuverVMouseExited
// TODO add your handling code here:
}//GEN-LAST:event_jButtonAbreuverVMouseExited
private void jButtonAbreuverVButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbreuverVButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonAbreuverVButtonActionPerformed
private void jButtonNettoyerVMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNettoyerVMouseEntered
// TODO add your handling code here:
}//GEN-LAST:event_jButtonNettoyerVMouseEntered
private void jButtonNettoyerVMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNettoyerVMouseExited
// TODO add your handling code here:
}//GEN-LAST:event_jButtonNettoyerVMouseExited
private void jButtonNettoyerVButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNettoyerVButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonNettoyerVButtonActionPerformed
private void jButtonSoignerVMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonSoignerVMouseEntered
// TODO add your handling code here:
}//GEN-LAST:event_jButtonSoignerVMouseEntered
private void jButtonSoignerVMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonSoignerVMouseExited
// TODO add your handling code here:
}//GEN-LAST:event_jButtonSoignerVMouseExited
private void jButtonSoignerVButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSoignerVButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonSoignerVButtonActionPerformed
public void Show()
{
setVisible(true);
_Field.SetEcus();
FillDatas();
}
private void ReloadDatas()
{
_View._Oracle.SetFarmDatas(_View._Datas.nom);
_Field.SetEcus();
FillDatas();
}
private void FillDatas()
{
this.jLabelNbMaladesJ.setText(Integer.toString(_View._Datas.nb_malade_j));
this.jLabelNbMaladesL.setText(Integer.toString(_View._Datas.nb_malade_l));
this.jLabelDesalteresJ.setText(_View._Datas.abreuvage_j.equals("T") ? "Oui" : "Non");
this.jLabelDesalteresL.setText(_View._Datas.abreuvage_l.equals("T") ? "Oui" : "Non");
this.jLabelNourrisJ.setText(_View._Datas.nourri_j.equals("T") ? "Oui" : "Non");
this.jLabelNourrisL.setText(_View._Datas.nourri_l.equals("T") ? "Oui" : "Non");
if(_View._Datas.nb_malade_j>0)
jmeumeu.JMeuMeuHelpers.Enabled(jButtonSoignerJ);
else
jmeumeu.JMeuMeuHelpers.Disabled(jButtonSoignerJ);
if(_View._Datas.nb_malade_l>0)
jmeumeu.JMeuMeuHelpers.Enabled(jButtonSoignerV);
else
jmeumeu.JMeuMeuHelpers.Disabled(jButtonSoignerV);
if(this.jLabelNourrisJ.equals("oui"))
jmeumeu.JMeuMeuHelpers.Disabled(jButtonNourrirJ);
else
jmeumeu.JMeuMeuHelpers.Enabled(jButtonNourrirJ);
if(this.jLabelNourrisL.equals("oui"))
jmeumeu.JMeuMeuHelpers.Disabled(jButtonNourrirV);
else
jmeumeu.JMeuMeuHelpers.Enabled(jButtonNourrirV);
if(this.jLabelDesalteresJ.equals("oui"))
jmeumeu.JMeuMeuHelpers.Disabled(jButtonNourrirJ);
else
jmeumeu.JMeuMeuHelpers.Enabled(jButtonNourrirJ);
if(this.jLabelDesalteresL.equals("oui"))
jmeumeu.JMeuMeuHelpers.Disabled(jButtonNourrirV);
else
jmeumeu.JMeuMeuHelpers.Enabled(jButtonNourrirV);
}
public void Hide()
{
setVisible(false);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanelLapereau;
private Components.ImagePanel imagePanelLapin;
private javax.swing.JButton jButtonAbreuverJ;
private javax.swing.JButton jButtonAbreuverV;
private javax.swing.JButton jButtonNettoyerJ;
private javax.swing.JButton jButtonNettoyerV;
private javax.swing.JButton jButtonNourrirJ;
private javax.swing.JButton jButtonNourrirV;
private javax.swing.JButton jButtonSoignerJ;
private javax.swing.JButton jButtonSoignerV;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel23;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JLabel jLabelDesalteresJ;
private javax.swing.JLabel jLabelDesalteresJ1;
private javax.swing.JLabel jLabelDesalteresJ3;
private javax.swing.JLabel jLabelDesalteresJ4;
private javax.swing.JLabel jLabelDesalteresL;
private javax.swing.JLabel jLabelNbMaladesJ;
private javax.swing.JLabel jLabelNbMaladesL;
private javax.swing.JLabel jLabelNourrisJ;
private javax.swing.JLabel jLabelNourrisJ1;
private javax.swing.JLabel jLabelNourrisJ3;
private javax.swing.JLabel jLabelNourrisJ4;
private javax.swing.JLabel jLabelNourrisL;
private java.awt.Panel panel1;
private java.awt.Panel panel2;
private java.awt.Panel panel3;
private java.awt.Panel panel4;
private java.awt.Panel panel5;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
private jmeumeu.JMeuMeuGameField _Field;
}

77
src/GameField/Cooperative.form Executable file
View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="711" max="32767" attributes="0"/>
<EmptySpace min="0" pref="711" max="32767" attributes="0"/>
<EmptySpace min="0" pref="711" max="32767" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Component id="imagePanel1" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel1" alignment="0" pref="691" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="imagePanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="Components.ImagePanel" name="imagePanel1">
<Properties>
<Property name="name" type="java.lang.String" value="imagePanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="691" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="306" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Form>

101
src/GameField/Cooperative.java Executable file
View File

@ -0,0 +1,101 @@
/*
* Cooperative.java
*
* Created on 7 mai 2008, 17:16
*/
package GameField;
import jmeumeu.JMeuMeuView;
/**
*
* @author Jeremy
*/
public class Cooperative extends javax.swing.JPanel {
/** Creates new form Cooperative */
public Cooperative(JMeuMeuView View) {
initComponents();
_View = View;
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
imagePanel1 = new Components.ImagePanel();
jLabel1 = new javax.swing.JLabel();
setName("Form"); // NOI18N
imagePanel1.setName("imagePanel1"); // NOI18N
javax.swing.GroupLayout imagePanel1Layout = new javax.swing.GroupLayout(imagePanel1);
imagePanel1.setLayout(imagePanel1Layout);
imagePanel1Layout.setHorizontalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 691, Short.MAX_VALUE)
);
imagePanel1Layout.setVerticalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 306, Short.MAX_VALUE)
);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Cooperative.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 711, Short.MAX_VALUE)
.addGap(0, 711, Short.MAX_VALUE)
.addGap(0, 711, Short.MAX_VALUE)
.addGap(0, 711, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(imagePanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 691, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
public void Show()
{
setVisible(true);
}
public void Hide()
{
setVisible(false);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanel1;
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
}

75
src/GameField/Marche.form Executable file
View File

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="652" max="32767" attributes="0"/>
<EmptySpace min="0" pref="652" max="32767" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Component id="imagePanel1" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel1" alignment="0" pref="632" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="imagePanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="Components.ImagePanel" name="imagePanel1">
<Properties>
<Property name="name" type="java.lang.String" value="imagePanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="632" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="306" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Form>

100
src/GameField/Marche.java Executable file
View File

@ -0,0 +1,100 @@
/*
* Marche.java
*
* Created on 7 mai 2008, 17:16
*/
package GameField;
import jmeumeu.JMeuMeuView;
/**
*
* @author Jeremy
*/
public class Marche extends javax.swing.JPanel {
/** Creates new form Marche */
public Marche(JMeuMeuView View) {
initComponents();
_View = View;
imagePanel1.SetBackground(View.getFrame(), "./images/Marche.jpg");
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
imagePanel1 = new Components.ImagePanel();
jLabel1 = new javax.swing.JLabel();
setName("Form"); // NOI18N
imagePanel1.setName("imagePanel1"); // NOI18N
javax.swing.GroupLayout imagePanel1Layout = new javax.swing.GroupLayout(imagePanel1);
imagePanel1.setLayout(imagePanel1Layout);
imagePanel1Layout.setHorizontalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 632, Short.MAX_VALUE)
);
imagePanel1Layout.setVerticalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 306, Short.MAX_VALUE)
);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Marche.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 652, Short.MAX_VALUE)
.addGap(0, 652, Short.MAX_VALUE)
.addGap(0, 652, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(imagePanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 632, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
public void Show()
{
setVisible(true);
}
public void Hide()
{
setVisible(false);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanel1;
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
}

331
src/GameField/Paturage.form Executable file
View File

@ -0,0 +1,331 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="218" max="-2" attributes="0"/>
<Component id="imagePanel1" min="-2" pref="313" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="188" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton2" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton3" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton4" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton5" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" pref="755" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="221" max="-2" attributes="0"/>
<Component id="jPanel1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="imagePanel1" min="-2" pref="306" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButton3" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButton4" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButton5" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jPanel1" max="32767" attributes="0"/>
<EmptySpace min="-2" pref="18" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="Components.ImagePanel" name="imagePanel1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[330, 330]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[330, 330]"/>
</Property>
<Property name="name" type="java.lang.String" value="imagePanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="311" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="304" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
<Container class="javax.swing.JPanel" name="jPanel1">
<Properties>
<Property name="name" type="java.lang.String" value="jPanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel6" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel7" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel14" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel15" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel13" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel12" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel11" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel10" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel9" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="23" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel8" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel10" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel11" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel12" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel7" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel13" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel14" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="19" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="lblHealthString.text"/>
<Property name="name" type="java.lang.String" value="lblHealthString" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel3">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel3.text"/>
<Property name="name" type="java.lang.String" value="jLabel3" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel4">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel4.text"/>
<Property name="name" type="java.lang.String" value="jLabel4" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel5.text"/>
<Property name="name" type="java.lang.String" value="jLabel5" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel6">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel6.text"/>
<Property name="name" type="java.lang.String" value="jLabel6" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel7">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel7.text"/>
<Property name="name" type="java.lang.String" value="jLabel7" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel8">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="lblHealthStatus.text"/>
<Property name="name" type="java.lang.String" value="lblHealthStatus" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel9">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="DirtyStatus.text"/>
<Property name="name" type="java.lang.String" value="DirtyStatus" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel10">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="CowMass.text"/>
<Property name="name" type="java.lang.String" value="CowMass" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel11">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="MilkLiter.text"/>
<Property name="name" type="java.lang.String" value="MilkLiter" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel12">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="IsCowAlreadyDrink.text"/>
<Property name="name" type="java.lang.String" value="IsCowAlreadyDrink" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel13">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="CowAlreadyEat.text"/>
<Property name="name" type="java.lang.String" value="CowAlreadyEat" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel14">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jLabel14.text"/>
<Property name="name" type="java.lang.String" value="jLabel14" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel15">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="CowAge.text"/>
<Property name="name" type="java.lang.String" value="CowAge" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JButton" name="jButton1">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButton1.text"/>
<Property name="name" type="java.lang.String" value="jButton1" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton1MouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton1MouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButton2">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButton2.text"/>
<Property name="name" type="java.lang.String" value="jButton2" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton2MouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton2MouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButton3">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButton3.text"/>
<Property name="name" type="java.lang.String" value="jButton3" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton3MouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton3MouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButton4">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButton4.text"/>
<Property name="name" type="java.lang.String" value="jButton4" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton4MouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton4MouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButton5">
<Properties>
<Property name="text" type="java.lang.String" resourceKey="jButton5.text"/>
<Property name="name" type="java.lang.String" value="jButton5" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton5MouseEntered"/>
<EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton5MouseExited"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ButtonActionPerformed"/>
</Events>
</Component>
</SubComponents>
</Form>

471
src/GameField/Paturage.java Executable file
View File

@ -0,0 +1,471 @@
/*
* Paturage.java
*
* Created on 7 mai 2008, 17:15
*/
package GameField;
import jmeumeu.*;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author Jeremy
*/
public class Paturage extends javax.swing.JPanel {
/** Creates new form Paturage */
public Paturage(JMeuMeuView View, JMeuMeuGameField Field) {
_View = View;
_Field = Field;
initComponents();
imagePanel1.SetBackground(View.getFrame(), "./images/vache.jpg");
FillDatas();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
imagePanel1 = new Components.ImagePanel();
jLabel1 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
setName("Form"); // NOI18N
imagePanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
imagePanel1.setMaximumSize(new java.awt.Dimension(330, 330));
imagePanel1.setMinimumSize(new java.awt.Dimension(330, 330));
imagePanel1.setName("imagePanel1"); // NOI18N
javax.swing.GroupLayout imagePanel1Layout = new javax.swing.GroupLayout(imagePanel1);
imagePanel1.setLayout(imagePanel1Layout);
imagePanel1Layout.setHorizontalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 311, Short.MAX_VALUE)
);
imagePanel1Layout.setVerticalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 304, Short.MAX_VALUE)
);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Paturage.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
jPanel1.setName("jPanel1"); // NOI18N
jLabel2.setText(resourceMap.getString("lblHealthString.text")); // NOI18N
jLabel2.setName("lblHealthString"); // NOI18N
jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
jLabel3.setName("jLabel3"); // NOI18N
jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
jLabel4.setName("jLabel4"); // NOI18N
jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
jLabel5.setName("jLabel5"); // NOI18N
jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
jLabel6.setName("jLabel6"); // NOI18N
jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
jLabel7.setName("jLabel7"); // NOI18N
jLabel8.setText(resourceMap.getString("lblHealthStatus.text")); // NOI18N
jLabel8.setName("lblHealthStatus"); // NOI18N
jLabel9.setText(resourceMap.getString("DirtyStatus.text")); // NOI18N
jLabel9.setName("DirtyStatus"); // NOI18N
jLabel10.setText(resourceMap.getString("CowMass.text")); // NOI18N
jLabel10.setName("CowMass"); // NOI18N
jLabel11.setText(resourceMap.getString("MilkLiter.text")); // NOI18N
jLabel11.setName("MilkLiter"); // NOI18N
jLabel12.setText(resourceMap.getString("IsCowAlreadyDrink.text")); // NOI18N
jLabel12.setName("IsCowAlreadyDrink"); // NOI18N
jLabel13.setText(resourceMap.getString("CowAlreadyEat.text")); // NOI18N
jLabel13.setName("CowAlreadyEat"); // NOI18N
jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
jLabel14.setName("jLabel14"); // NOI18N
jLabel15.setText(resourceMap.getString("CowAge.text")); // NOI18N
jLabel15.setName("CowAge"); // NOI18N
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel5)
.addComponent(jLabel6)
.addComponent(jLabel7)
.addComponent(jLabel14))
.addGap(44, 44, 44)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel15)
.addComponent(jLabel13)
.addComponent(jLabel12)
.addComponent(jLabel11)
.addComponent(jLabel10)
.addComponent(jLabel9)
.addComponent(jLabel8))
.addContainerGap(23, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(jLabel9))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jLabel10))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(jLabel12))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(jLabel13))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(jLabel15))
.addContainerGap(19, Short.MAX_VALUE))
);
jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
jButton1.setName("jButton1"); // NOI18N
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButton1MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButton1MouseExited(evt);
}
});
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonActionPerformed(evt);
}
});
jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
jButton2.setName("jButton2"); // NOI18N
jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButton2MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButton2MouseExited(evt);
}
});
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonActionPerformed(evt);
}
});
jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
jButton3.setName("jButton3"); // NOI18N
jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButton3MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButton3MouseExited(evt);
}
});
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonActionPerformed(evt);
}
});
jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N
jButton4.setName("jButton4"); // NOI18N
jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButton4MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButton4MouseExited(evt);
}
});
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonActionPerformed(evt);
}
});
jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N
jButton5.setName("jButton5"); // NOI18N
jButton5.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jButton5MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jButton5MouseExited(evt);
}
});
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(218, 218, 218)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(188, 188, 188)
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton5))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 755, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(221, 221, 221)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2)
.addComponent(jButton3)
.addComponent(jButton4)
.addComponent(jButton5))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(18, 18, 18))
);
}// </editor-fold>//GEN-END:initComponents
private void ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ButtonActionPerformed
String ActionEvent = evt.getActionCommand();
if(ActionEvent.equals("Abreuver"))
{
if(_View._Oracle.callProc("abreuver_vache", _View._Datas.id_fermier))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("Nourrir"))
{
if(_View._Oracle.callProc("nourrir_vache", _View._Datas.id_fermier))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("Soigner"))
{
if(_View._Oracle.callProc("SoignerVache", _View._Datas.id_fermier))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("Nettoyer"))
{
if(_View._Oracle.callProc("NettoyerVache", _View._Datas.id_fermier))
{
ReloadDatas();
}
}
else if(ActionEvent.equals("Traire"))
{
if(_View._Oracle.callProc("traire_lait", _View._Datas.id_fermier))
{
ReloadDatas();
}
}
}//GEN-LAST:event_ButtonActionPerformed
private void jButton1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseEntered
}//GEN-LAST:event_jButton1MouseEntered
private void jButton1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseExited
}//GEN-LAST:event_jButton1MouseExited
private void jButton2MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseEntered
}//GEN-LAST:event_jButton2MouseEntered
private void jButton2MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseExited
}//GEN-LAST:event_jButton2MouseExited
private void jButton3MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseEntered
}//GEN-LAST:event_jButton3MouseEntered
private void jButton3MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseExited
}//GEN-LAST:event_jButton3MouseExited
private void jButton4MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseEntered
}//GEN-LAST:event_jButton4MouseEntered
private void jButton4MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseExited
}//GEN-LAST:event_jButton4MouseExited
private void jButton5MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton5MouseEntered
}//GEN-LAST:event_jButton5MouseEntered
private void jButton5MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton5MouseExited
}//GEN-LAST:event_jButton5MouseExited
public void Show()
{
setVisible(true);
ReloadDatas();
}
private void ReloadDatas()
{
_View._Oracle.SetFarmDatas(_View._Datas.nom);
_Field.SetEcus();
FillDatas();
}
public void Hide()
{
setVisible(false);
}
private void FillDatas()
{
this.jLabel8.setText(_View._Datas.nb_malade_vache > 0 ? "Malade" : "Sain");
this.jLabel9.setText(_View._Datas.sale_vache.equals("V") ? "Sale" : "Propre");
this.jLabel10.setText(Integer.toString(_View._Datas.poids_vache));
this.jLabel11.setText(Integer.toString(_View._Datas.nb_lait));
this.jLabel12.setText(_View._Datas.abreuvage_vache.equals("F") ? "Non" : "Oui");
this.jLabel13.setText(_View._Datas.nourri_vache.equals("F") ? "Non" : "Oui" );
this.jLabel15.setText(Integer.toString(_View._Datas.age_vache));
if(jLabel8.getText().equals("Sain"))
JMeuMeuHelpers.Disabled(jButton3);
else
JMeuMeuHelpers.Enabled(jButton3);
if(jLabel9.getText().equals("Propre"))
JMeuMeuHelpers.Disabled(jButton4);
else
JMeuMeuHelpers.Enabled(jButton4);
int i = Integer.parseInt(jLabel11.getText());
if(i == 0)
JMeuMeuHelpers.Disabled(jButton5);
else
JMeuMeuHelpers.Enabled(jButton5);
if(jLabel12.getText().equals("Oui"))
JMeuMeuHelpers.Disabled(jButton1);
else
JMeuMeuHelpers.Enabled(jButton1);
if(jLabel13.getText().equals("Oui"))
JMeuMeuHelpers.Disabled(jButton2);
else
JMeuMeuHelpers.Enabled(jButton2);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanel1;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
private JMeuMeuGameField _Field;
}

110
src/GameField/Poulailler.form Executable file
View File

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" pref="771" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="304" max="-2" attributes="0"/>
<Component id="panel1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="panel1" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="261" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
<Container class="java.awt.Panel" name="panel1">
<Properties>
<Property name="background" type="java.awt.Color" resourceKey="panel1.background"/>
<Property name="name" type="java.lang.String" value="panel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="32767" attributes="0"/>
<Component id="imagePanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="imagePanel1" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="Components.ImagePanel" name="imagePanel1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="name" type="java.lang.String" value="imagePanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="179" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="176" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
</SubComponents>
</Container>
</SubComponents>
</Form>

169
src/GameField/Poulailler.java Executable file
View File

@ -0,0 +1,169 @@
/*
* Poulailler.java
*
* Created on 7 mai 2008, 17:09
*/
package GameField;
import jmeumeu.JMeuMeuView;
/**
*
* @author Jeremy
*/
public class Poulailler extends javax.swing.JPanel {
/** Creates new form Poulailler */
public Poulailler(JMeuMeuView View, jmeumeu.JMeuMeuGameField Field) {
initComponents();
_View = View;
_Field = Field;
imagePanel1.SetBackground(View.getFrame(), "./images/poulailler.jpg");
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
panel1 = new java.awt.Panel();
imagePanel1 = new Components.ImagePanel();
setName("Form"); // NOI18N
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Poulailler.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
panel1.setBackground(resourceMap.getColor("panel1.background")); // NOI18N
panel1.setName("panel1"); // NOI18N
imagePanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
imagePanel1.setName("imagePanel1"); // NOI18N
javax.swing.GroupLayout imagePanel1Layout = new javax.swing.GroupLayout(imagePanel1);
imagePanel1.setLayout(imagePanel1Layout);
imagePanel1Layout.setHorizontalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 179, Short.MAX_VALUE)
);
imagePanel1Layout.setVerticalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 176, Short.MAX_VALUE)
);
javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);
panel1.setLayout(panel1Layout);
panel1Layout.setHorizontalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
panel1Layout.setVerticalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(imagePanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 771, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(304, 304, 304)
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(261, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
public void Show()
{
setVisible(true);
ReloadDatas();
}
private void ReloadDatas()
{
_View._Oracle.SetFarmDatas(_View._Datas.nom);
_Field.SetEcus();
FillDatas();
}
private void FillDatas()
{
/*this.jLabel8.setText(_View._Datas.nb_malade_vache > 0 ? "Malade" : "Sain");
this.jLabel9.setText(_View._Datas.sale_vache.equals("V") ? "Sale" : "Propre");
this.jLabel10.setText(Integer.toString(_View._Datas.poids_vache));
this.jLabel11.setText(Integer.toString(_View._Datas.nb_lait));
this.jLabel12.setText(_View._Datas.abreuvage_vache.equals("F") ? "Non" : "Oui");
this.jLabel13.setText(_View._Datas.nourri_vache.equals("F") ? "Non" : "Oui" );
this.jLabel15.setText(Integer.toString(_View._Datas.age_vache));
if(jLabel8.getText().equals("Sain"))
JMeuMeuHelpers.Disabled(jButton3);
else
JMeuMeuHelpers.Enabled(jButton3);
if(jLabel9.getText().equals("Propre"))
JMeuMeuHelpers.Disabled(jButton4);
else
JMeuMeuHelpers.Enabled(jButton4);
int i = Integer.parseInt(jLabel11.getText());
if(i == 0)
JMeuMeuHelpers.Disabled(jButton5);
else
JMeuMeuHelpers.Enabled(jButton5);
if(jLabel12.getText().equals("Oui"))
JMeuMeuHelpers.Disabled(jButton1);
else
JMeuMeuHelpers.Enabled(jButton1);
if(jLabel13.getText().equals("Oui"))
JMeuMeuHelpers.Disabled(jButton2);
else
JMeuMeuHelpers.Enabled(jButton2);*/
}
public void Hide()
{
setVisible(false);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanel1;
private javax.swing.JLabel jLabel1;
private java.awt.Panel panel1;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
private jmeumeu.JMeuMeuGameField _Field;
}

77
src/GameField/Remise.form Executable file
View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="821" max="32767" attributes="0"/>
<EmptySpace min="0" pref="821" max="32767" attributes="0"/>
<EmptySpace min="0" pref="821" max="32767" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Component id="imagePanel1" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel1" alignment="0" pref="801" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<EmptySpace min="0" pref="362" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="imagePanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
<Container class="Components.ImagePanel" name="imagePanel1">
<Properties>
<Property name="name" type="java.lang.String" value="imagePanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="801" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="306" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
</SubComponents>
</Form>

101
src/GameField/Remise.java Executable file
View File

@ -0,0 +1,101 @@
/*
* Remise.java
*
* Created on 7 mai 2008, 17:21
*/
package GameField;
import jmeumeu.JMeuMeuView;
/**
*
* @author Jeremy
*/
public class Remise extends javax.swing.JPanel {
/** Creates new form Remise */
public Remise(JMeuMeuView View) {
_View = View;
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
imagePanel1 = new Components.ImagePanel();
setName("Form"); // NOI18N
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Remise.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
imagePanel1.setName("imagePanel1"); // NOI18N
javax.swing.GroupLayout imagePanel1Layout = new javax.swing.GroupLayout(imagePanel1);
imagePanel1.setLayout(imagePanel1Layout);
imagePanel1Layout.setHorizontalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 801, Short.MAX_VALUE)
);
imagePanel1Layout.setVerticalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 306, Short.MAX_VALUE)
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 821, Short.MAX_VALUE)
.addGap(0, 821, Short.MAX_VALUE)
.addGap(0, 821, Short.MAX_VALUE)
.addGap(0, 821, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(imagePanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 801, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGap(0, 362, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
public void Show()
{
setVisible(true);
}
public void Hide()
{
setVisible(false);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanel1;
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
}

82
src/GameField/Welcome.form Executable file
View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.6" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
<Property name="name" type="java.lang.String" value="Form" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel1" alignment="1" pref="710" max="32767" attributes="0"/>
<Component id="jLabel2" alignment="0" pref="710" max="32767" attributes="0"/>
<Component id="imagePanel1" alignment="1" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="53" max="-2" attributes="0"/>
<Component id="imagePanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="73" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties>
</Component>
<Container class="Components.ImagePanel" name="imagePanel1">
<Properties>
<Property name="name" type="java.lang.String" value="imagePanel1" noResource="true"/>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="710" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="390" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel2.font"/>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/>
<Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Form>

107
src/GameField/Welcome.java Executable file
View File

@ -0,0 +1,107 @@
/*
* Welcome.java
*
* Created on 7 mai 2008, 13:34
*/
package GameField;
import jmeumeu.JMeuMeuView;
/**
*
* @author Jeremy
*/
public class Welcome extends javax.swing.JPanel {
/** Creates new form Welcome */
public Welcome(JMeuMeuView View) {
initComponents();
_View = View;
imagePanel1.SetBackground(View.getFrame(), "./images/Farm.jpg");
jLabel2.setText(_View._Datas.nom);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
imagePanel1 = new Components.ImagePanel();
jLabel2 = new javax.swing.JLabel();
setName("Form"); // NOI18N
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jmeumeu.JMeuMeuApp.class).getContext().getResourceMap(Welcome.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
imagePanel1.setName("imagePanel1"); // NOI18N
javax.swing.GroupLayout imagePanel1Layout = new javax.swing.GroupLayout(imagePanel1);
imagePanel1.setLayout(imagePanel1Layout);
imagePanel1Layout.setHorizontalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 710, Short.MAX_VALUE)
);
imagePanel1Layout.setVerticalGroup(
imagePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 390, Short.MAX_VALUE)
);
jLabel2.setFont(resourceMap.getFont("jLabel2.font")); // NOI18N
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
jLabel2.setName("jLabel2"); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 710, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 710, Short.MAX_VALUE)
.addComponent(imagePanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel2)
.addGap(53, 53, 53)
.addComponent(imagePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(73, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
public void Show()
{
setVisible(true);
}
public void Hide()
{
setVisible(false);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Components.ImagePanel imagePanel1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
// End of variables declaration//GEN-END:variables
private JMeuMeuView _View;
}

View File

@ -0,0 +1,32 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
#NOI18N
jLabel1.font=Tahoma 14 Bold
jLabel1.text=SECTION CLAPIER
#NOI18N
jLabel2.font=Tahoma 14 12 Bold
jLabel2.text=LAPEREAUX
#NOI18N
jLabel3.font=Tahoma 14 12 12 Bold
jLabel3.text=LAPINS
jLabel4.text=Lapereaux d\u00E9salt\u00E9r\u00E9s :
jButtonAbreuverJ.text=Abreuver
jButtonSoignerJ.text=Soigner
jButtonNourrirJ.text=Nourrir
jButtonNettoyerJ.text=Nettoyer
jButtonNettoyerV.text=Nettoyer
jLabel5.text=Lapereaux nourris :
jLabel6.text=Nombre de lapereaux malades :
jLabelDesalteresJ.text=Non
jLabelNourrisJ.text=Non
jLabel14.text=Nombre de lapereaux malades :
jLabel13.text=Lapereaux nourris :
jLabel12.text=Lapereaux d\u00E9salt\u00E9r\u00E9s :
jLabelDesalteresL.text=Non
jLabelNourrisL.text=Non
jButtonNourrirV.text=Nourrir
jButtonSoignerV.text=Soigner
jButtonAbreuverV.text=Abreuver
jLabelNbMaladesJ.text=0
jLabelNbMaladesL.text=0

View File

@ -0,0 +1,3 @@
jLabel1.text=SECTION COOPERATIVE
#NOI18N
jLabel1.font=Tahoma 14 12 12 12 Bold

View File

@ -0,0 +1,6 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
#NOI18N
jLabel1.font=Tahoma 14 12 12 Bold
jLabel1.text=SECTION MARCHE

View File

@ -0,0 +1,22 @@
jLabel1.text=SECTION PATURAGE
#NOI18N
jLabel1.font=Tahoma 14 12 Bold
lblHealthString.text=Etat de Sant\u00E9 de la Vache :
jLabel3.text=Hygi\u00E8ne de la Vache :
jLabel4.text=Masse de la vache (Kg) :
jLabel5.text=Litres de Lait dans les pis de la vache :
jLabel6.text=Vache d\u00E9salt\u00E9ree :
jLabel7.text=Vache nourrie :
lblHealthStatus.text=Sain
DirtyStatus.text=Propre
CowMass.text=0
MilkLiter.text=0
IsCowAlreadyDrink.text=Non
CowAlreadyEat.text=Non
jButton1.text=Abreuver
jButton2.text=Nourrir
jButton3.text=Soigner
jButton4.text=Nettoyer
jButton5.text=Traire
jLabel14.text=Age de la vache :
CowAge.text=0

View File

@ -0,0 +1,5 @@
jLabel1.text=SECTION POULAILLER
#NOI18N
jLabel1.font=Tahoma-Bold-14
#NOI18N
panel1.background=255, 255, 255

View File

@ -0,0 +1,6 @@
# To change this template, choose Tools | Templates
# and open the template in the editor.
#NOI18N
jLabel1.font=Tahoma 14 12 12 12 12 Bold
jLabel1.text=SECTION REMISE

View File

@ -0,0 +1,6 @@
jLabel1.text=BIENVENUE DANS VOTRE FERME
#NOI18N
jLabel1.font=Tahoma-Bold-14
jLabel2.text=
#NOI18N
jLabel2.font=Tahoma-Bold-14

Some files were not shown because too many files have changed in this diff Show More