begin process at 2008 09 06 20:00:58
1 237 931 membres
313 nouveaux aujourd'hui
14 314 membres club

Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

COMPTALOG LOGICIEL DE GESTION DES ECRITURES COMPTABLE


Information sur la source

Catégorie :JDBC Classé sous : Swing, JDBC, MysqlDriver, Comptalog, VerticalFlowLayout Niveau : Débutant Date de création : 20/08/2004 Date de mise à jour : 07/12/2007 16:24:21 Vu / téléchargé: 6 255 / 1 125

Note :
Aucune note

Commentaire sur cette source (1)
Ajouter un commentaire et/ou une note

Description

bonjour, juste un code pour dire que moi aussi j'en dépose, que je ne fais pas qu'en demander.(non, je blague)
c'est un logiciel, qui permet de saisir des ecritures comptables, en débit et en crédit.
pour lancer l'application, démarer avec ACCEUIL. c'est la classe mère.
mais bon, il reste la base de donnée. si vous voulez je vous le donnerai dès que vous me contacter.
bon à plus.
c'est du java mysql.

J'ai ajouter une classe verticalFlowLayout qui permet de mieux positionner les gadget swing.
Je vais remodifier en incluent de l'hibernate pour faire du mapping objet et relationnel et en ajoutant aussi du jws

Source

  • import java.awt.*;
  • /**
  • * Insert the type's description here.
  • * Creation date: (3/30/2000 4:10:35 PM)
  • * @author:
  • */
  • public class VerticalFlowLayout implements LayoutManager {
  • private int vgap = 0;
  • /**
  • * VerticalFlowLayout constructor comment.
  • */
  • public VerticalFlowLayout() {
  • this(0);
  • }
  • /**
  • * VerticalFlowLayout constructor comment.
  • */
  • public VerticalFlowLayout(int vgap) {
  • if (vgap < 0) {
  • this.vgap = 0;
  • } else {
  • this.vgap = vgap;
  • }
  • }
  • /**
  • * addLayoutComponent method comment.
  • */
  • public void addLayoutComponent(String name, Component comp) {
  • }
  • /**
  • * layoutContainer method comment.
  • */
  • public void layoutContainer(Container parent) {
  • Insets insets = parent.insets();
  • int w = parent.size().width - insets.left - insets.right;
  • // int h = parent.size().height - insets.top - insets.bottom;
  • int numComponents = parent.countComponents();
  • if (numComponents == 0) {
  • return;
  • }
  • int y = insets.top;
  • int x = insets.left;
  • for (int i = 0; i < numComponents; ++i) {
  • Component c = parent.getComponent(i);
  • if (c.isVisible()) {
  • Dimension d = c.preferredSize();
  • c.reshape(x, y, w, d.height);
  • y += d.height + vgap;
  • }
  • }
  • }
  • /**
  • * minimumLayoutSize method comment.
  • */
  • public Dimension minimumLayoutSize(Container parent) {
  • Insets insets = parent.insets();
  • int maxWidth = 0;
  • int totalHeight = 0;
  • int numComponents = parent.countComponents();
  • for (int i = 0; i < numComponents; ++i) {
  • Component c = parent.getComponent(i);
  • if (c.isVisible()) {
  • Dimension cd = c.minimumSize();
  • maxWidth = Math.max(maxWidth, cd.width);
  • totalHeight += cd.height;
  • }
  • }
  • Dimension td = new Dimension(maxWidth + insets.left + insets.right,
  • totalHeight + insets.top + insets.bottom
  • + vgap * numComponents);
  • return td;
  • }
  • /**
  • * preferredLayoutSize method comment.
  • */
  • public Dimension preferredLayoutSize(Container parent) {
  • Insets insets = parent.insets();
  • int maxWidth = 0;
  • int totalHeight = 0;
  • int numComponents = parent.countComponents();
  • for (int i = 0; i < numComponents; ++i) {
  • Component c = parent.getComponent(i);
  • if (c.isVisible()) {
  • Dimension cd = c.preferredSize();
  • maxWidth = Math.max(maxWidth, cd.width);
  • totalHeight += cd.height;
  • }
  • }
  • Dimension td = new Dimension(maxWidth + insets.left + insets.right,
  • totalHeight + insets.top + insets.bottom
  • + vgap * numComponents);
  • return td;
  • }
  • /**
  • * removeLayoutComponent method comment.
  • */
  • public void removeLayoutComponent(Component comp) {
  • }
  • }
import java.awt.*;

/**
 * Insert the type's description here.
 * Creation date: (3/30/2000 4:10:35 PM)
 * @author:
 */
public class VerticalFlowLayout implements LayoutManager {
  private int vgap = 0;

  /**
   * VerticalFlowLayout constructor comment.
   */
  public VerticalFlowLayout() {
    this(0);
  }

  /**
   * VerticalFlowLayout constructor comment.
   */
  public VerticalFlowLayout(int vgap) {
    if (vgap < 0) {
      this.vgap = 0;
    } else {
      this.vgap = vgap;
    } 
  }

  /**
   * addLayoutComponent method comment.
   */
  public void addLayoutComponent(String name, Component comp) {
  } 

  /**
   * layoutContainer method comment.
   */
  public void layoutContainer(Container parent) {
    Insets insets = parent.insets();
    int w = parent.size().width - insets.left - insets.right;
    // int h = parent.size().height - insets.top - insets.bottom;
    int numComponents = parent.countComponents();
    if (numComponents == 0) {
      return;
    } 
    int y = insets.top;
    int x = insets.left;
    for (int i = 0; i < numComponents; ++i) {
      Component c = parent.getComponent(i);
      if (c.isVisible()) {
        Dimension d = c.preferredSize();
        c.reshape(x, y, w, d.height);
        y += d.height + vgap;
      } 
    } 
  } 

  /**
   * minimumLayoutSize method comment.
   */
  public Dimension minimumLayoutSize(Container parent) {
    Insets insets = parent.insets();
    int maxWidth = 0;
    int totalHeight = 0;
    int numComponents = parent.countComponents();
    for (int i = 0; i < numComponents; ++i) {
      Component c = parent.getComponent(i);
      if (c.isVisible()) {
        Dimension cd = c.minimumSize();
        maxWidth = Math.max(maxWidth, cd.width);
        totalHeight += cd.height;
      } 
    } 
    Dimension td = new Dimension(maxWidth + insets.left + insets.right, 
                                 totalHeight + insets.top + insets.bottom 
                                 + vgap * numComponents);
    return td;
  } 

  /**
   * preferredLayoutSize method comment.
   */
  public Dimension preferredLayoutSize(Container parent) {
    Insets insets = parent.insets();
    int maxWidth = 0;
    int totalHeight = 0;
    int numComponents = parent.countComponents();
    for (int i = 0; i < numComponents; ++i) {
      Component c = parent.getComponent(i);
      if (c.isVisible()) {
        Dimension cd = c.preferredSize();
        maxWidth = Math.max(maxWidth, cd.width);
        totalHeight += cd.height;
      } 
    } 
    Dimension td = new Dimension(maxWidth + insets.left + insets.right, 
                                 totalHeight + insets.top + insets.bottom 
                                 + vgap * numComponents);
    return td;
  } 

  /**
   * removeLayoutComponent method comment.
   */
  public void removeLayoutComponent(Component comp) {
  } 

}
Pour les "Membres Club", vous pouvez télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip

06 mai 2005 16:11:36 :
En fait, j'ai juste ajouter ma photo
07 décembre 2007 16:22:46 :
Mise a jour, Ajout de la calsse VerticalFlowLayout
07 décembre 2007 16:24:21 :
Ajout de la Classe VerticalFlow Layout Pour compiler faire: javac -d . *.java
  • signaler à un administrateur
    Commentaire de khadija00 le 27/05/2008 20:25:57

    j'ai pas trouvé la base de données .
    Est ce que vous pouvez m'aidez
    voilà mon e-mail : prog_dev@hotmail.fr
    merci d'avance ;)

Ajouter un commentaire

Discussions en rapport avec ce code source

Swing/JDBC/idée comme ça... par jojo6666

jdbc avec swing par sounamar

Récupérer requete en JDBC par super_toinou

Driver JDBC Oracle par DarkCid

jdbc par mjmax

probléme avec JDBC par eclipse2007

jdbc par emouna2000

@IP et swing par alias100

Pb signature d'applet par Dellys

test sur IP en swing par alias100

Pub



Appels d'offres

CalendriCode

Septembre 2008
LMMJVSD
1234567
891011121314
15161718192021
22232425262728
2930     

VS Express FR Gratuit !

VS Express en français et 100% gratuit !

Boutique

Boutique de goodies CodeS-SourceS