Compare commits
7 Commits
MedhiJava
...
1016e4a3e6
Author | SHA1 | Date | |
---|---|---|---|
1016e4a3e6 | |||
88c09cedeb | |||
a3b3f4d093 | |||
1515f943c8 | |||
|
c8a8aac214 | ||
|
37842afdeb | ||
6541e7532d |
@@ -17,12 +17,12 @@ public class Medicament {
|
|||||||
* contreindication = les contreindications du m<>dicament
|
* contreindication = les contreindications du m<>dicament
|
||||||
* prix = le prix en unit<69> du m<>dicament
|
* prix = le prix en unit<69> du m<>dicament
|
||||||
*/
|
*/
|
||||||
private int id;
|
private String id;
|
||||||
private String nom;
|
private String nom;
|
||||||
private String composition;
|
private String composition;
|
||||||
private String effet;
|
private String effet;
|
||||||
private String contreindication;
|
private String contreindication;
|
||||||
private float prix;
|
private String img;
|
||||||
|
|
||||||
|
|
||||||
/** LE CONSTRUCTEUR DEFAULT
|
/** LE CONSTRUCTEUR DEFAULT
|
||||||
@@ -32,24 +32,22 @@ public class Medicament {
|
|||||||
* @param composition
|
* @param composition
|
||||||
* @param effet
|
* @param effet
|
||||||
* @param contreindication
|
* @param contreindication
|
||||||
* @param prix
|
|
||||||
*/
|
*/
|
||||||
public Medicament(int id, String nom, String composition, String effet, String contreindication, float prix) {
|
public Medicament(String id, String nom, String composition, String effet, String contreindication, String img) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.nom = nom;
|
this.nom = nom;
|
||||||
this.composition = composition;
|
this.composition = composition;
|
||||||
this.effet = effet;
|
this.effet = effet;
|
||||||
this.contreindication = contreindication;
|
this.contreindication = contreindication;
|
||||||
this.prix = prix;
|
this.img = img;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** LES GUETTEUR
|
/** LES GUETTEUR
|
||||||
* @return the id
|
* @return the id
|
||||||
*/
|
*/
|
||||||
public int getId() {
|
public String getId(){
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,17 +79,15 @@ public class Medicament {
|
|||||||
return contreindication;
|
return contreindication;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public String getImg() {
|
||||||
* @return the prix
|
return img;
|
||||||
*/
|
|
||||||
public float getPrix() {
|
|
||||||
return prix;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Medicament{" + "id=" + id + ", nom=" + nom + ", composition=" + composition + ", effet=" + effet + ", contreindication=" + contreindication + ", prix=" + prix + '}';
|
return "Medicament{" + "id=" + id + ", nom=" + nom + ", composition=" + composition + ", effet=" + effet + ", contreindication=" + contreindication + ",img=" + img + '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -4,11 +4,6 @@
|
|||||||
*/
|
*/
|
||||||
package TEST;
|
package TEST;
|
||||||
|
|
||||||
import acces_aux_donnes.ConnexionSQL;
|
|
||||||
import acces_aux_donnes.PraticienSQL;
|
|
||||||
import acces_aux_donnes.MedicamentSQL;
|
|
||||||
import java.sql.Connection;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author medhi.rodrigues
|
* @author medhi.rodrigues
|
||||||
|
@@ -19,7 +19,7 @@ public class MedicamentSQL {
|
|||||||
private ResultSet result = null;
|
private ResultSet result = null;
|
||||||
|
|
||||||
public MedicamentSQL() {
|
public MedicamentSQL() {
|
||||||
connexionTest = ConnexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
|
connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<String> rechercherMedicament (String nomCo){
|
public ArrayList<String> rechercherMedicament (String nomCo){
|
||||||
|
@@ -6,8 +6,10 @@ package acces_aux_donnes;
|
|||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.SQLException;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -22,6 +24,65 @@ public class familleMedocSQL {
|
|||||||
connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
|
connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Vector<String> rechercheFamille(){
|
||||||
|
Vector<String> famille = new Vector<String>();
|
||||||
|
|
||||||
|
try {
|
||||||
|
stmt = connexionTest.createStatement();
|
||||||
|
// Acc<63>s <20> la table
|
||||||
|
result = stmt.executeQuery("SELECT fLibelle FROM FAMILLE;");
|
||||||
|
while(result.next()) { // Le praticien a <20>t<EFBFBD> touv<75>
|
||||||
|
famille.add(result.getString(1));
|
||||||
|
}
|
||||||
|
result.close();
|
||||||
|
stmt.close();
|
||||||
|
}catch (SQLException ex) {
|
||||||
|
System.out.println("SQLException : " + ex.getMessage());
|
||||||
|
System.out.println("SQLState : " + ex.getSQLState());
|
||||||
|
System.out.println("Code erreur : " + ex.getErrorCode());
|
||||||
|
}
|
||||||
|
return famille;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String rechercheCodeFamille(String libelle){
|
||||||
|
String code = "";
|
||||||
|
try {
|
||||||
|
stmt = connexionTest.createStatement();
|
||||||
|
// Acc<63>s <20> la table
|
||||||
|
result = stmt.executeQuery("SELECT fCode FROM FAMILLE WHERE fLibelle ='"+ libelle +"';");
|
||||||
|
while(result.next()) { // Le praticien a <20>t<EFBFBD> touv<75>
|
||||||
|
code = result.getString(1);
|
||||||
|
}
|
||||||
|
result.close();
|
||||||
|
stmt.close();
|
||||||
|
}catch (SQLException ex) {
|
||||||
|
System.out.println("SQLException : " + ex.getMessage());
|
||||||
|
System.out.println("SQLState : " + ex.getSQLState());
|
||||||
|
System.out.println("Code erreur : " + ex.getErrorCode());
|
||||||
|
}
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Vector<String> rechercherMedocFamille(String libelle){
|
||||||
|
Vector<String> famille = new Vector<String>();
|
||||||
|
try {
|
||||||
|
stmt = connexionTest.createStatement();
|
||||||
|
// Acc<63>s <20> la table
|
||||||
|
result = stmt.executeQuery("SELECT mNomCommercial FROM MEDICAMENT WHERE fCode ='"+ libelle +"';");
|
||||||
|
while(result.next()) { // Le praticien a <20>t<EFBFBD> touv<75>
|
||||||
|
famille.add(result.getString(1));
|
||||||
|
}
|
||||||
|
result.close();
|
||||||
|
stmt.close();
|
||||||
|
}catch (SQLException ex) {
|
||||||
|
System.out.println("SQLException : " + ex.getMessage());
|
||||||
|
System.out.println("SQLState : " + ex.getSQLState());
|
||||||
|
System.out.println("Code erreur : " + ex.getErrorCode());
|
||||||
|
}
|
||||||
|
return famille;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,13 +0,0 @@
|
|||||||
/*
|
|
||||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
||||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
|
||||||
*/
|
|
||||||
package acces_aux_donnes;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author emile.lalorcey
|
|
||||||
*/
|
|
||||||
public class visiteurMedicalSQL {
|
|
||||||
|
|
||||||
}
|
|
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package presentation;
|
package presentation;
|
||||||
|
|
||||||
import acces_aux_donnes.ObservationSQL;
|
import acces_aux_donnes.observationSQL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -94,7 +94,7 @@ public class jffAjoutObservation extends javax.swing.JFrame {
|
|||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void jBsoumettreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBsoumettreActionPerformed
|
private void jBsoumettreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBsoumettreActionPerformed
|
||||||
ObservationSQL observ = new ObservationSQL();
|
observationSQL observ = new observationSQL();
|
||||||
observ.ajouterObservation(this.idMedoc, this.idPraticien, jTAobservation.getText());
|
observ.ajouterObservation(this.idMedoc, this.idPraticien, jTAobservation.getText());
|
||||||
}//GEN-LAST:event_jBsoumettreActionPerformed
|
}//GEN-LAST:event_jBsoumettreActionPerformed
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package presentation;
|
package presentation;
|
||||||
|
|
||||||
import acces_aux_donnes.PraticienSQL;
|
import acces_aux_donnes.praticienSQL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -158,7 +158,7 @@ public class jffConnexion extends javax.swing.JFrame {
|
|||||||
private void jBValiderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBValiderActionPerformed
|
private void jBValiderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBValiderActionPerformed
|
||||||
String identifiant = jTFIdentifiant.getText();
|
String identifiant = jTFIdentifiant.getText();
|
||||||
String mdp = String.valueOf(jPFmdp.getPassword());
|
String mdp = String.valueOf(jPFmdp.getPassword());
|
||||||
PraticienSQL testPraticien = new PraticienSQL();
|
praticienSQL testPraticien = new praticienSQL();
|
||||||
String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
|
String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
|
||||||
if (lePraticien[0] != null){
|
if (lePraticien[0] != null){
|
||||||
System.out.print("TEST REUSSIE");
|
System.out.print("TEST REUSSIE");
|
||||||
|
@@ -23,19 +23,39 @@
|
|||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace pref="344" max="32767" attributes="0"/>
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="jLRecherche" min="-2" max="-2" attributes="0"/>
|
<Component id="jLRecherche" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="jTFRecherche" min="-2" pref="80" max="-2" attributes="0"/>
|
<Component id="jTFRecherche" min="-2" pref="80" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace min="-2" pref="58" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jCBFamille" max="32767" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" attributes="0">
|
||||||
<Component id="jBRechercheValide" min="-2" max="-2" attributes="0"/>
|
<Component id="jBRechercheValide" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jCBMedocListe" min="-2" pref="176" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="31" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" alignment="1" attributes="0">
|
||||||
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
|
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -50,7 +70,12 @@
|
|||||||
<Component id="jTFRecherche" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jTFRecherche" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jBRechercheValide" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jBRechercheValide" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="227" max="32767" attributes="0"/>
|
<EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="jCBFamille" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="jCBMedocListe" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace pref="287" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -81,5 +106,41 @@
|
|||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBRechercheValideActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBRechercheValideActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
|
<Component class="javax.swing.JComboBox" name="jCBFamille">
|
||||||
|
<Properties>
|
||||||
|
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
||||||
|
<StringArray count="4">
|
||||||
|
<StringItem index="0" value="Item 1"/>
|
||||||
|
<StringItem index="1" value="Item 2"/>
|
||||||
|
<StringItem index="2" value="Item 3"/>
|
||||||
|
<StringItem index="3" value="Item 4"/>
|
||||||
|
</StringArray>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCBFamilleActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
<AuxValues>
|
||||||
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
|
</AuxValues>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JComboBox" name="jCBMedocListe">
|
||||||
|
<Properties>
|
||||||
|
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
||||||
|
<StringArray count="4">
|
||||||
|
<StringItem index="0" value="Item 1"/>
|
||||||
|
<StringItem index="1" value="Item 2"/>
|
||||||
|
<StringItem index="2" value="Item 3"/>
|
||||||
|
<StringItem index="3" value="Item 4"/>
|
||||||
|
</StringArray>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCBMedocListeActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
<AuxValues>
|
||||||
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
|
</AuxValues>
|
||||||
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Form>
|
</Form>
|
||||||
|
@@ -6,7 +6,10 @@ package presentation;
|
|||||||
|
|
||||||
import Metier.Medicament;
|
import Metier.Medicament;
|
||||||
import acces_aux_donnes.MedicamentSQL;
|
import acces_aux_donnes.MedicamentSQL;
|
||||||
|
import acces_aux_donnes.familleMedocSQL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Vector;
|
||||||
|
import javax.swing.DefaultComboBoxModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -19,6 +22,8 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
*/
|
*/
|
||||||
public jffFamilleMedoc() {
|
public jffFamilleMedoc() {
|
||||||
initComponents();
|
initComponents();
|
||||||
|
familleMedocSQL famille = new familleMedocSQL();
|
||||||
|
jCBFamille.setModel(new DefaultComboBoxModel(famille.rechercheFamille()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -34,6 +39,8 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
jLRecherche = new javax.swing.JLabel();
|
jLRecherche = new javax.swing.JLabel();
|
||||||
jTFRecherche = new javax.swing.JTextField();
|
jTFRecherche = new javax.swing.JTextField();
|
||||||
jBRechercheValide = new javax.swing.JButton();
|
jBRechercheValide = new javax.swing.JButton();
|
||||||
|
jCBFamille = new javax.swing.JComboBox<>();
|
||||||
|
jCBMedocListe = new javax.swing.JComboBox<>();
|
||||||
|
|
||||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
@@ -54,22 +61,48 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
jCBFamille.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
|
||||||
|
jCBFamille.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
jCBFamilleActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
jCBMedocListe.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
|
||||||
|
jCBMedocListe.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
jCBMedocListeActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
||||||
getContentPane().setLayout(layout);
|
getContentPane().setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addContainerGap(344, Short.MAX_VALUE)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(jLabel1)
|
|
||||||
.addContainerGap())
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGap(20, 20, 20)
|
.addGap(20, 20, 20)
|
||||||
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addComponent(jLRecherche)
|
.addComponent(jLRecherche)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(jTFRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(jTFRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addGap(58, 58, 58))
|
||||||
|
.addGroup(layout.createSequentialGroup()
|
||||||
|
.addComponent(jCBFamille, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.addGap(42, 42, 42)))
|
||||||
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addComponent(jBRechercheValide)
|
.addComponent(jBRechercheValide)
|
||||||
.addGap(27, 27, 27))
|
.addGap(0, 0, Short.MAX_VALUE))
|
||||||
|
.addGroup(layout.createSequentialGroup()
|
||||||
|
.addComponent(jCBMedocListe, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addGap(31, 31, 31))))
|
||||||
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
||||||
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.addComponent(jLabel1)))
|
||||||
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
@@ -81,7 +114,11 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
.addComponent(jLRecherche)
|
.addComponent(jLRecherche)
|
||||||
.addComponent(jTFRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(jTFRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jBRechercheValide))
|
.addComponent(jBRechercheValide))
|
||||||
.addContainerGap(227, Short.MAX_VALUE))
|
.addGap(29, 29, 29)
|
||||||
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
|
.addComponent(jCBFamille, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(jCBMedocListe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
|
.addContainerGap(287, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
|
|
||||||
pack();
|
pack();
|
||||||
@@ -93,6 +130,7 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
|
|
||||||
private void jBRechercheValideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRechercheValideActionPerformed
|
private void jBRechercheValideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRechercheValideActionPerformed
|
||||||
String medocRechercher = jTFRecherche.getText();
|
String medocRechercher = jTFRecherche.getText();
|
||||||
|
System.out.println(medocRechercher);
|
||||||
MedicamentSQL medocTest = new MedicamentSQL();
|
MedicamentSQL medocTest = new MedicamentSQL();
|
||||||
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
||||||
rechercheMedoc = medocTest.rechercherMedicament(medocRechercher);
|
rechercheMedoc = medocTest.rechercherMedicament(medocRechercher);
|
||||||
@@ -102,9 +140,8 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
String compositionTrouve = rechercheMedoc.get(2);
|
String compositionTrouve = rechercheMedoc.get(2);
|
||||||
String effetTrouve = rechercheMedoc.get(3);
|
String effetTrouve = rechercheMedoc.get(3);
|
||||||
String contreIndicationTrouve = rechercheMedoc.get(4);
|
String contreIndicationTrouve = rechercheMedoc.get(4);
|
||||||
String imgTrouve = "../img/"+ idTrouve +".jpg";
|
String imgTrouve = idTrouve;
|
||||||
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve
|
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve, contreIndicationTrouve,imgTrouve);
|
||||||
, contreIndicationTrouve,imgTrouve);
|
|
||||||
new jffInfoMedoc(medocTrouve).setVisible(true);
|
new jffInfoMedoc(medocTrouve).setVisible(true);
|
||||||
|
|
||||||
|
|
||||||
@@ -113,6 +150,37 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
}
|
}
|
||||||
}//GEN-LAST:event_jBRechercheValideActionPerformed
|
}//GEN-LAST:event_jBRechercheValideActionPerformed
|
||||||
|
|
||||||
|
private void jCBFamilleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBFamilleActionPerformed
|
||||||
|
familleMedocSQL famille = new familleMedocSQL();
|
||||||
|
Vector<String> medocFamille = new Vector<String>();
|
||||||
|
String libelleFamille = jCBFamille.getSelectedItem().toString();
|
||||||
|
String codeFamille = famille.rechercheCodeFamille(libelleFamille);
|
||||||
|
medocFamille = famille.rechercherMedocFamille(codeFamille);
|
||||||
|
jCBMedocListe.setModel(new DefaultComboBoxModel(medocFamille));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}//GEN-LAST:event_jCBFamilleActionPerformed
|
||||||
|
|
||||||
|
private void jCBMedocListeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBMedocListeActionPerformed
|
||||||
|
String nomMedoc = jCBMedocListe.getSelectedItem().toString();
|
||||||
|
System.out.println(nomMedoc);
|
||||||
|
MedicamentSQL medocTest = new MedicamentSQL();
|
||||||
|
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
||||||
|
rechercheMedoc = medocTest.rechercherMedicament(nomMedoc);
|
||||||
|
System.out.print("TEst");
|
||||||
|
if (rechercheMedoc.get(0) != null) {
|
||||||
|
String idTrouve = rechercheMedoc.get(0);
|
||||||
|
String nomTrouve = rechercheMedoc.get(1);
|
||||||
|
String compositionTrouve = rechercheMedoc.get(2);
|
||||||
|
String effetTrouve = rechercheMedoc.get(3);
|
||||||
|
String contreIndicationTrouve = rechercheMedoc.get(4);
|
||||||
|
String imgTrouve = idTrouve;
|
||||||
|
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve, contreIndicationTrouve,imgTrouve);
|
||||||
|
new jffInfoMedoc(medocTrouve).setVisible(true);
|
||||||
|
}
|
||||||
|
}//GEN-LAST:event_jCBMedocListeActionPerformed
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param args the command line arguments
|
* @param args the command line arguments
|
||||||
*/
|
*/
|
||||||
@@ -150,6 +218,8 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JButton jBRechercheValide;
|
private javax.swing.JButton jBRechercheValide;
|
||||||
|
private javax.swing.JComboBox<String> jCBFamille;
|
||||||
|
private javax.swing.JComboBox<String> jCBMedocListe;
|
||||||
private javax.swing.JLabel jLRecherche;
|
private javax.swing.JLabel jLRecherche;
|
||||||
private javax.swing.JLabel jLabel1;
|
private javax.swing.JLabel jLabel1;
|
||||||
private javax.swing.JTextField jTFRecherche;
|
private javax.swing.JTextField jTFRecherche;
|
||||||
|
@@ -49,31 +49,41 @@
|
|||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jSeparator1" alignment="1" max="32767" attributes="0"/>
|
<Component id="jSeparator1" alignment="1" max="32767" attributes="0"/>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLContrindication" min="-2" pref="265" max="-2" attributes="0"/>
|
<Component id="jLContrindication" max="32767" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jLPrix" min="-2" pref="100" max="-2" attributes="0"/>
|
<Component id="jLEffet" min="-2" pref="166" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLComposition" min="-2" pref="265" max="-2" attributes="0"/>
|
<Component id="jLComposition" min="-2" pref="265" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel1" alignment="0" min="-2" pref="265" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="140" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="183" max="-2" attributes="0"/>
|
||||||
|
<Component id="jLNomCo" min="-2" pref="144" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="78" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
|
||||||
<Component id="jLImage" min="-2" pref="157" max="-2" attributes="0"/>
|
<Component id="jLImage" min="-2" pref="157" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="0" pref="26" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" pref="168" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="168" max="-2" attributes="0"/>
|
||||||
<Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
|
<Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace min="0" pref="163" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -82,29 +92,31 @@
|
|||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
|
<Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="39" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Component id="jLabel1" min="-2" pref="86" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="jLComposition" min="-2" pref="74" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Component id="jLImage" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace type="unrelated" pref="18" max="32767" attributes="0"/>
|
<Component id="jLNomCo" min="-2" pref="37" max="-2" attributes="0"/>
|
||||||
<Component id="jLContrindication" min="-2" pref="70" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="23" max="32767" attributes="0"/>
|
<Component id="jLComposition" min="-2" pref="74" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace pref="60" max="32767" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLContrindication" min="-2" pref="141" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
|
<Component id="jSeparator1" min="-2" pref="10" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="169" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
|
<Component id="jLEffet" min="-2" pref="131" max="-2" attributes="0"/>
|
||||||
<Component id="jLPrix" min="-2" pref="26" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="jSeparator1" min="-2" pref="10" max="-2" attributes="0"/>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="169" max="-2" attributes="0"/>
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLImage" min="-2" pref="172" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -115,35 +127,20 @@
|
|||||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||||
<Font name="Segoe UI Black" size="18" style="0"/>
|
<Font name="Segoe UI Black" size="18" style="0"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" value="Nom du Médoc"/>
|
<Property name="text" type="java.lang.String" value="Nom du Médicament :"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel1">
|
<Component class="javax.swing.JLabel" name="jLNomCo">
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Les effets du médicament"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLComposition">
|
<Component class="javax.swing.JLabel" name="jLComposition">
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Composition du médoc"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLContrindication">
|
<Component class="javax.swing.JLabel" name="jLContrindication">
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Contrindications du médoc"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLImage">
|
<Component class="javax.swing.JLabel" name="jLImage">
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Image"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JSeparator" name="jSeparator1">
|
<Component class="javax.swing.JSeparator" name="jSeparator1">
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLPrix">
|
<Component class="javax.swing.JLabel" name="jLEffet">
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Prix :"/>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
|
@@ -5,6 +5,10 @@
|
|||||||
package presentation;
|
package presentation;
|
||||||
|
|
||||||
import Metier.Medicament;
|
import Metier.Medicament;
|
||||||
|
import java.awt.Image;
|
||||||
|
import java.awt.image.BufferedImage;
|
||||||
|
import javax.swing.Icon;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -17,6 +21,15 @@ public class jffInfoMedoc extends javax.swing.JFrame {
|
|||||||
*/
|
*/
|
||||||
public jffInfoMedoc(Medicament medocTrouve) {
|
public jffInfoMedoc(Medicament medocTrouve) {
|
||||||
initComponents();
|
initComponents();
|
||||||
|
jLNomCo.setText(medocTrouve.getNom());
|
||||||
|
//Icon imgMedoc = new javax.swing.ImageIcon(getClass().getResource("/img/" + medocTrouve.getImg() + ".jpg"));
|
||||||
|
//jLImage.setIcon(imgMedoc);
|
||||||
|
BufferedImage imgResize = null;
|
||||||
|
jLImage.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource("/img/" + medocTrouve.getImg() + ".jpg")).getImage().getScaledInstance(200, 50, Image.SCALE_SMOOTH)));
|
||||||
|
jLComposition.setText(medocTrouve.getComposition());
|
||||||
|
jLContrindication.setText(medocTrouve.getContreindication());
|
||||||
|
jLEffet.setText(medocTrouve.getEffet());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,27 +43,17 @@ public class jffInfoMedoc extends javax.swing.JFrame {
|
|||||||
|
|
||||||
jPFond = new javax.swing.JPanel();
|
jPFond = new javax.swing.JPanel();
|
||||||
jLNomMedoc = new javax.swing.JLabel();
|
jLNomMedoc = new javax.swing.JLabel();
|
||||||
jLabel1 = new javax.swing.JLabel();
|
jLNomCo = new javax.swing.JLabel();
|
||||||
jLComposition = new javax.swing.JLabel();
|
jLComposition = new javax.swing.JLabel();
|
||||||
jLContrindication = new javax.swing.JLabel();
|
jLContrindication = new javax.swing.JLabel();
|
||||||
jLImage = new javax.swing.JLabel();
|
jLImage = new javax.swing.JLabel();
|
||||||
jSeparator1 = new javax.swing.JSeparator();
|
jSeparator1 = new javax.swing.JSeparator();
|
||||||
jLPrix = new javax.swing.JLabel();
|
jLEffet = new javax.swing.JLabel();
|
||||||
|
|
||||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
jLNomMedoc.setFont(new java.awt.Font("Segoe UI Black", 0, 18)); // NOI18N
|
jLNomMedoc.setFont(new java.awt.Font("Segoe UI Black", 0, 18)); // NOI18N
|
||||||
jLNomMedoc.setText("Nom du M<>doc");
|
jLNomMedoc.setText("Nom du M<>dicament :");
|
||||||
|
|
||||||
jLabel1.setText("Les effets du m<>dicament");
|
|
||||||
|
|
||||||
jLComposition.setText("Composition du m<>doc");
|
|
||||||
|
|
||||||
jLContrindication.setText("Contrindications du m<>doc");
|
|
||||||
|
|
||||||
jLImage.setText("Image");
|
|
||||||
|
|
||||||
jLPrix.setText("Prix :");
|
|
||||||
|
|
||||||
javax.swing.GroupLayout jPFondLayout = new javax.swing.GroupLayout(jPFond);
|
javax.swing.GroupLayout jPFondLayout = new javax.swing.GroupLayout(jPFond);
|
||||||
jPFond.setLayout(jPFondLayout);
|
jPFond.setLayout(jPFondLayout);
|
||||||
@@ -63,46 +66,52 @@ public class jffInfoMedoc extends javax.swing.JFrame {
|
|||||||
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addGap(18, 18, 18)
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addComponent(jLPrix, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(jLContrindication, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(jLEffet, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPFondLayout.createSequentialGroup()
|
||||||
.addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addGap(140, 140, 140))
|
||||||
.addGap(18, 18, 18)
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
.addGap(183, 183, 183)
|
||||||
.addGap(0, 26, Short.MAX_VALUE)))
|
.addComponent(jLNomCo, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addContainerGap())
|
.addGap(78, 78, 78)))
|
||||||
|
.addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addGap(38, 38, 38))))
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addGap(168, 168, 168)
|
.addGap(168, 168, 168)
|
||||||
.addComponent(jLNomMedoc)
|
.addComponent(jLNomMedoc)))
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addGap(0, 163, Short.MAX_VALUE)))
|
||||||
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
jPFondLayout.setVerticalGroup(
|
jPFondLayout.setVerticalGroup(
|
||||||
jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addComponent(jLNomMedoc)
|
.addComponent(jLNomMedoc)
|
||||||
.addGap(39, 39, 39)
|
.addGap(18, 18, 18)
|
||||||
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
|
||||||
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
||||||
.addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addComponent(jLImage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 18, Short.MAX_VALUE)
|
.addComponent(jLNomCo, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addGap(28, 28, 28)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE))
|
.addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 60, Short.MAX_VALUE)
|
||||||
|
.addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPFondLayout.createSequentialGroup()
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
.addGap(35, 35, 35)
|
.addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLPrix, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
|
||||||
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addGap(169, 169, 169))
|
.addGap(169, 169, 169))
|
||||||
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
|
.addComponent(jLEffet, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
||||||
|
.addGroup(jPFondLayout.createSequentialGroup()
|
||||||
|
.addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addGap(0, 0, Short.MAX_VALUE))))
|
||||||
);
|
);
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
||||||
@@ -161,10 +170,10 @@ public class jffInfoMedoc extends javax.swing.JFrame {
|
|||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JLabel jLComposition;
|
private javax.swing.JLabel jLComposition;
|
||||||
private javax.swing.JLabel jLContrindication;
|
private javax.swing.JLabel jLContrindication;
|
||||||
|
private javax.swing.JLabel jLEffet;
|
||||||
private javax.swing.JLabel jLImage;
|
private javax.swing.JLabel jLImage;
|
||||||
|
private javax.swing.JLabel jLNomCo;
|
||||||
private javax.swing.JLabel jLNomMedoc;
|
private javax.swing.JLabel jLNomMedoc;
|
||||||
private javax.swing.JLabel jLPrix;
|
|
||||||
private javax.swing.JLabel jLabel1;
|
|
||||||
private javax.swing.JPanel jPFond;
|
private javax.swing.JPanel jPFond;
|
||||||
private javax.swing.JSeparator jSeparator1;
|
private javax.swing.JSeparator jSeparator1;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
Reference in New Issue
Block a user