Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1480 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  De l'aide svp

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

De l'aide svp

n°1567414
swiixz
Posté le 30-05-2007 à 17:18:26  profilanswer
 

Bonjour à tous, après plusieurs heures de galere et de recherche je n'ai toujours pas trouver comment afficher une Jinternalframe dans ma frame principale.
J'ai une appli a faire, j'ai une frame principale dans laquelle il y a un panel sur lequel il y a une barre d'outils et un Jdesktoppane. Tout le reste de mon affichage est construit dans plusieurs Jinternalframe et suivant les menus que je choisi telle ou telle Jinternalframe doit s'afficher. Seul probleme je n'arrive pas à faire afficher la moindre jinternalframe. Si quelqu'un pouvait m'aider ce serait gentil car je suis vraiment en pleine galere et debute tout juste le java.
Merci d'avance.
 
Ma frame principale:

Code :
  1. import java.awt.Dimension;
  2. import java.awt.GraphicsEnvironment;
  3. import java.awt.Rectangle;
  4. import javax.swing.JButton;
  5. import javax.swing.JDesktopPane;
  6. import javax.swing.JFrame;
  7. import javax.swing.JMenu;
  8. import javax.swing.JMenuBar;
  9. import javax.swing.JMenuItem;
  10. import javax.swing.JPanel;
  11. import javax.swing.JToolBar;
  12. public class accueil {
  13. private JFrame accueil = null;  //  @jve:decl-index=0:visual-constraint="8,-6"
  14. private JPanel jContentPane = null;
  15. private JPanel panelhaut = null;
  16. private JButton jBpref1 = null;
  17. private JButton jBpref2 = null;
  18. private JButton jBpref3 = null;
  19. private JButton jBpref4 = null;
  20. private JButton jBpref5 = null;
  21. private JButton jBpref6 = null;
  22. private JButton jBpref7 = null;
  23. private JMenuBar jJMenuBar = null;
  24. private JMenu jMparametre = null;
  25. private JMenu jMpartenaire = null;
  26. private JMenu jMvente = null;
  27. private JMenu jMachat = null;
  28. private JMenu jMimpression = null;
  29. private JMenu jMrepsav = null;
  30. private JMenu jMoutils = null;
  31. private JMenuItem jMIaccueil = null;
  32. private JMenuItem jMIsociete = null;
  33. private JMenuItem jMIcomptabilite = null;
  34. private JMenu jMclient = null;
  35. private JMenu jMfournisseur = null;
  36. private JMenuItem jMfamclt = null;
  37. private JMenuItem jMIclient = null;
  38. private JMenuItem jMIfamfrs = null;
  39. private JMenuItem jMIfrs = null;
  40. private JMenuItem jMItechnicom = null;
  41. private JMenuItem jMIbanque = null;
  42. private JMenuItem jMIaide = null;
  43. private JMenuItem jMIdevis = null;
  44. private JMenuItem jMIcommande = null;
  45. private JMenuItem jMIbdl = null;
  46. private JMenuItem jMIfacture = null;
  47. private JMenuItem jMIaide2 = null;
  48. private JMenuItem jMIcmdfrs = null;
  49. private JMenuItem jMIbdr = null;
  50. private JMenuItem jMIfactfrs = null;
  51. private JMenuItem jMIaide3 = null;
  52. private JMenu jMlistvente = null;
  53. private JMenu jMlistachat = null;
  54. private JMenu jMhistovente = null;
  55. private JMenu jMhistoachat = null;
  56. private JMenu jMhistoclt = null;
  57. private JMenu jMhistofrs = null;
  58. private JMenu jMstate = null;
  59. private JMenuItem jMIreparation = null;
  60. private JMenuItem jMIreception = null;
  61. private JMenuItem jMIenvoi = null;
  62. private JMenuItem jMIsauivie = null;
  63. private JMenuItem jMIaide4 = null;
  64. private JMenu jMarticle = null;
  65. private JMenu jMimport = null;
  66. private JMenuItem jMIfamart = null;
  67. private JMenuItem jMIarticle = null;
  68. private JMenuItem jMIfamartI = null;
  69. private JMenuItem jMIartI = null;
  70. private JMenuItem jMIremisebanque = null;
  71. private JMenuItem jMIreglrel = null;
  72. private JMenuItem jMIinventaire = null;
  73. private JMenuItem jMItranscompt = null;
  74. private JMenuItem jMIaide5 = null;
  75. private JMenuItem jMIfamcltI = null;
  76. private JMenuItem jMIcltI = null;
  77. private JMenuItem jMIfamfrsI = null;
  78. private JMenuItem jMIfrsI = null;
  79. private JToolBar Jtoolbar = null;
  80.   JDesktopPane jDPaccframe = null;
  81. /**
  82.  * This method initializes accueil  
  83.  *  
  84.  * @return javax.swing.JFrame  
  85.  */
  86. private JFrame getAccueil() {
  87.  if (accueil == null) {
  88.   accueil = new JFrame();
  89.   //accueil.setSize(new Dimension(1024, 764));
  90.   GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();
  91.   Rectangle bounds = graphicsEnvironment .getMaximumWindowBounds();
  92.   accueil.setBounds(bounds);
  93.   accueil.setJMenuBar(getJJMenuBar());
  94.   accueil.setTitle("Gescom" );
  95.   accueil.setName("accueil" );
  96.   accueil.setResizable(false);
  97.   accueil.setContentPane(getJContentPane());
  98.   accueil.setVisible(true);
  99.   accueil.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  100.  }
  101.  return accueil;
  102. }
  103. /**
  104.  * This method initializes jContentPane  
  105.  *  
  106.  * @return javax.swing.JPanel  
  107.  */
  108. private JPanel getJContentPane() {
  109.  if (jContentPane == null) {
  110.   jContentPane = new JPanel();
  111.   jContentPane.setLayout(null);
  112.   jContentPane.add(getPanelhaut(), null);
  113.  }
  114.  return jContentPane;
  115. }
  116. /**
  117.  * This method initializes panelhaut  
  118.  *  
  119.  * @return javax.swing.JPanel  
  120.  */
  121. private JPanel getPanelhaut() {
  122.  if (panelhaut == null) {
  123.   panelhaut = new JPanel();
  124.   panelhaut.setLayout(null);
  125.   panelhaut.setBounds(new Rectangle(-1, 0, 1019, 667));
  126.   panelhaut.add(getJtoolbar(), null);
  127.   panelhaut.add(getJDPaccframe(), null);
  128.  }
  129.  return panelhaut;
  130. }
  131. /**
  132.  * This method initializes jBpref1  
  133.  *  
  134.  * @return javax.swing.JButton  
  135.  */
  136. private JButton getJBpref1() {
  137.  if (jBpref1 == null) {
  138.   jBpref1 = new JButton();
  139.   jBpref1.setSize(new Dimension(50, 30));
  140.   jBpref1.setText("pref1" );
  141.  }
  142.  return jBpref1;
  143. }
  144. /**
  145.  * This method initializes jBpref2  
  146.  *  
  147.  * @return javax.swing.JButton  
  148.  */
  149. private JButton getJBpref2() {
  150.  if (jBpref2 == null) {
  151.   jBpref2 = new JButton();
  152.   jBpref2.setSize(new Dimension(50, 30));
  153.   jBpref2.setText("pref2" );
  154.  }
  155.  return jBpref2;
  156. }
  157. /**
  158.  * This method initializes jBpref3  
  159.  *  
  160.  * @return javax.swing.JButton  
  161.  */
  162. private JButton getJBpref3() {
  163.  if (jBpref3 == null) {
  164.   jBpref3 = new JButton();
  165.   jBpref3.setSize(new Dimension(50, 30));
  166.   jBpref3.setText("pref3" );
  167.  }
  168.  return jBpref3;
  169. }
  170. /**
  171.  * This method initializes jBpref4  
  172.  *  
  173.  * @return javax.swing.JButton  
  174.  */
  175. private JButton getJBpref4() {
  176.  if (jBpref4 == null) {
  177.   jBpref4 = new JButton();
  178.   jBpref4.setSize(new Dimension(50, 30));
  179.   jBpref4.setText("pref4" );
  180.  }
  181.  return jBpref4;
  182. }
  183. /**
  184.  * This method initializes jBpref5  
  185.  *  
  186.  * @return javax.swing.JButton  
  187.  */
  188. private JButton getJBpref5() {
  189.  if (jBpref5 == null) {
  190.   jBpref5 = new JButton();
  191.   jBpref5.setSize(new Dimension(50, 30));
  192.   jBpref5.setText("pref5" );
  193.  }
  194.  return jBpref5;
  195. }
  196. /**
  197.  * This method initializes jBpref6  
  198.  *  
  199.  * @return javax.swing.JButton  
  200.  */
  201. private JButton getJBpref6() {
  202.  if (jBpref6 == null) {
  203.   jBpref6 = new JButton();
  204.   jBpref6.setSize(new Dimension(50, 30));
  205.   jBpref6.setText("pref6" );
  206.  }
  207.  return jBpref6;
  208. }
  209. /**
  210.  * This method initializes jBpref7  
  211.  *  
  212.  * @return javax.swing.JButton  
  213.  */
  214. private JButton getJBpref7() {
  215.  if (jBpref7 == null) {
  216.   jBpref7 = new JButton();
  217.   jBpref7.setSize(new Dimension(50, 30));
  218.   jBpref7.setText("pref7" );
  219.  }
  220.  return jBpref7;
  221. }
  222. /**
  223.  * This method initializes jJMenuBar  
  224.  *  
  225.  * @return javax.swing.JMenuBar  
  226.  */
  227. private JMenuBar getJJMenuBar() {
  228.  if (jJMenuBar == null) {
  229.   jJMenuBar = new JMenuBar();
  230.   jJMenuBar.add(getJMparametre());
  231.   jJMenuBar.add(getJMpartenaire());
  232.   jJMenuBar.add(getJMvente());
  233.   jJMenuBar.add(getJMachat());
  234.   jJMenuBar.add(getJMimpression());
  235.   jJMenuBar.add(getJMrepsav());
  236.   jJMenuBar.add(getJMoutils());
  237.  }
  238.  return jJMenuBar;
  239. }
  240. /**
  241.  * This method initializes jMparametre  
  242.  *  
  243.  * @return javax.swing.JMenu  
  244.  */
  245. private JMenu getJMparametre() {
  246.  if (jMparametre == null) {
  247.   jMparametre = new JMenu();
  248.   jMparametre.setText("Paramètres" );
  249.   jMparametre.add(getJMIaccueil());
  250.   jMparametre.add(getJMIsociete());
  251.   jMparametre.add(getJMIcomptabilite());
  252.  }
  253.  return jMparametre;
  254. }
  255. /**
  256.  * This method initializes jMpartenaire  
  257.  *  
  258.  * @return javax.swing.JMenu  
  259.  */
  260. private JMenu getJMpartenaire() {
  261.  if (jMpartenaire == null) {
  262.   jMpartenaire = new JMenu();
  263.   jMpartenaire.setText("Partenaires" );
  264.   jMpartenaire.add(getJMclient());
  265.   jMpartenaire.add(getJMfournisseur());
  266.   jMpartenaire.add(getJMItechnicom());
  267.   jMpartenaire.add(getJMIbanque());
  268.   jMpartenaire.add(getJMIaide());
  269.  }
  270.  return jMpartenaire;
  271. }
  272. /**
  273.  * This method initializes jMvente  
  274.  *  
  275.  * @return javax.swing.JMenu  
  276.  */
  277. private JMenu getJMvente() {
  278.  if (jMvente == null) {
  279.   jMvente = new JMenu();
  280.   jMvente.setText("Ventes" );
  281.   jMvente.add(getJMIdevis());
  282.   jMvente.add(getJMIcommande());
  283.   jMvente.add(getJMIbdl());
  284.   jMvente.add(getJMIfacture());
  285.   jMvente.add(getJMIaide2());
  286.  }
  287.  return jMvente;
  288. }
  289. /**
  290.  * This method initializes jMachat  
  291.  *  
  292.  * @return javax.swing.JMenu  
  293.  */
  294. private JMenu getJMachat() {
  295.  if (jMachat == null) {
  296.   jMachat = new JMenu();
  297.   jMachat.setText("Achats" );
  298.   jMachat.add(getJMIcmdfrs());
  299.   jMachat.add(getJMIbdr());
  300.   jMachat.add(getJMIfactfrs());
  301.   jMachat.add(getJMIaide3());
  302.  }
  303.  return jMachat;
  304. }
  305. /**
  306.  * This method initializes jMimpression  
  307.  *  
  308.  * @return javax.swing.JMenu  
  309.  */
  310. private JMenu getJMimpression() {
  311.  if (jMimpression == null) {
  312.   jMimpression = new JMenu();
  313.   jMimpression.setText("Impressions" );
  314.   jMimpression.add(getJMlistvente());
  315.   jMimpression.add(getJMlistachat());
  316.   jMimpression.add(getJMhistovente());
  317.   jMimpression.add(getJMhistoachat());
  318.   jMimpression.add(getJMhistoclt());
  319.   jMimpression.add(getJMhistofrs());
  320.   jMimpression.add(getJMstate());
  321.  }
  322.  return jMimpression;
  323. }
  324. /**
  325.  * This method initializes jMrepsav  
  326.  *  
  327.  * @return javax.swing.JMenu  
  328.  */
  329. private JMenu getJMrepsav() {
  330.  if (jMrepsav == null) {
  331.   jMrepsav = new JMenu();
  332.   jMrepsav.setText("Réparations/SAV" );
  333.   jMrepsav.add(getJMIreparation());
  334.   jMrepsav.add(getJMIreception());
  335.   jMrepsav.add(getJMIenvoi());
  336.   jMrepsav.add(getJMIsauivie());
  337.   jMrepsav.add(getJMIaide4());
  338.  }
  339.  return jMrepsav;
  340. }
  341. /**
  342.  * This method initializes jMoutils  
  343.  *  
  344.  * @return javax.swing.JMenu  
  345.  */
  346. private JMenu getJMoutils() {
  347.  if (jMoutils == null) {
  348.   jMoutils = new JMenu();
  349.   jMoutils.setText("Outils" );
  350.   jMoutils.add(getJMarticle());
  351.   jMoutils.add(getJMimport());
  352.   jMoutils.add(getJMIremisebanque());
  353.   jMoutils.add(getJMItranscompt());
  354.   jMoutils.add(getJMIreglrel());
  355.   jMoutils.add(getJMIinventaire());
  356.   jMoutils.add(getJMIaide5());
  357.  }
  358.  return jMoutils;
  359. }
  360. /**
  361.  * This method initializes jMIaccueil  
  362.  *  
  363.  * @return javax.swing.JMenuItem  
  364.  */
  365. private JMenuItem getJMIaccueil() {
  366.  if (jMIaccueil == null) {
  367.   jMIaccueil = new JMenuItem();
  368.   jMIaccueil.setText("Accueil" );
  369.   jMIaccueil.addActionListener(new java.awt.event.ActionListener() {
  370.    public void actionPerformed(java.awt.event.ActionEvent e) {
  371.     // TODO Auto-generated Event stub actionPerformed()
  372.    }
  373.   });
  374.  }
  375.  return jMIaccueil;
  376. }
  377. /**
  378.  * This method initializes jMIsociete  
  379.  *  
  380.  * @return javax.swing.JMenuItem  
  381.  */
  382. private JMenuItem getJMIsociete() {
  383.  if (jMIsociete == null) {
  384.   jMIsociete = new JMenuItem();
  385.   jMIsociete.setText("Société" );
  386.  }
  387.  return jMIsociete;
  388. }
  389. /**
  390.  * This method initializes jMIcomptabilite  
  391.  *  
  392.  * @return javax.swing.JMenuItem  
  393.  */
  394. private JMenuItem getJMIcomptabilite() {
  395.  if (jMIcomptabilite == null) {
  396.   jMIcomptabilite = new JMenuItem();
  397.   jMIcomptabilite.setText("Comptabilité" );
  398.  }
  399.  return jMIcomptabilite;
  400. }
  401. /**
  402.  * This method initializes jMclient  
  403.  *  
  404.  * @return javax.swing.JMenu  
  405.  */
  406. private JMenu getJMclient() {
  407.  if (jMclient == null) {
  408.   jMclient = new JMenu();
  409.   jMclient.setText("Clients" );
  410.   jMclient.add(getJMfamclt());
  411.   jMclient.add(getJMIclient());
  412.  }
  413.  return jMclient;
  414. }
  415. /**
  416.  * This method initializes jMfournisseur  
  417.  *  
  418.  * @return javax.swing.JMenu  
  419.  */
  420. private JMenu getJMfournisseur() {
  421.  if (jMfournisseur == null) {
  422.   jMfournisseur = new JMenu();
  423.   jMfournisseur.setText("Fournisseurs" );
  424.   jMfournisseur.add(getJMIfamfrs());
  425.   jMfournisseur.add(getJMIfrs());
  426.  }
  427.  return jMfournisseur;
  428. }
  429. /**
  430.  * This method initializes jMfamclt  
  431.  *  
  432.  * @return javax.swing.JMenuItem  
  433.  */
  434. private JMenuItem getJMfamclt() {
  435.  if (jMfamclt == null) {
  436.   jMfamclt = new JMenuItem();
  437.   jMfamclt.setText("Famille de clients" );
  438.  }
  439.  return jMfamclt;
  440. }
  441. /**
  442.  * This method initializes jMIclient  
  443.  *  
  444.  * @return javax.swing.JMenuItem  
  445.  */
  446. private JMenuItem getJMIclient() {
  447.  if (jMIclient == null) {
  448.   jMIclient = new JMenuItem();
  449.   jMIclient.setText("Clients" );
  450.  }
  451.  return jMIclient;
  452. }
  453. /**
  454.  * This method initializes jMIfamfrs  
  455.  *  
  456.  * @return javax.swing.JMenuItem  
  457.  */
  458. private JMenuItem getJMIfamfrs() {
  459.  if (jMIfamfrs == null) {
  460.   jMIfamfrs = new JMenuItem();
  461.   jMIfamfrs.setText("Famille de fournisseurs" );
  462.  }
  463.  return jMIfamfrs;
  464. }
  465. /**
  466.  * This method initializes jMIfrs  
  467.  *  
  468.  * @return javax.swing.JMenuItem  
  469.  */
  470. private JMenuItem getJMIfrs() {
  471.  if (jMIfrs == null) {
  472.   jMIfrs = new JMenuItem();
  473.   jMIfrs.setText("Fournisseurs" );
  474.  }
  475.  return jMIfrs;
  476. }
  477. /**
  478.  * This method initializes jMItechnicom  
  479.  *  
  480.  * @return javax.swing.JMenuItem  
  481.  */
  482. private JMenuItem getJMItechnicom() {
  483.  if (jMItechnicom == null) {
  484.   jMItechnicom = new JMenuItem();
  485.   jMItechnicom.setText("Commerciaux/techniciens" );
  486.  }
  487.  return jMItechnicom;
  488. }
  489. /**
  490.  * This method initializes jMIbanque  
  491.  *  
  492.  * @return javax.swing.JMenuItem  
  493.  */
  494. private JMenuItem getJMIbanque() {
  495.  if (jMIbanque == null) {
  496.   jMIbanque = new JMenuItem();
  497.   jMIbanque.setText("Banques" );
  498.  }
  499.  return jMIbanque;
  500. }
  501. /**
  502.  * This method initializes jMIaide  
  503.  *  
  504.  * @return javax.swing.JMenuItem  
  505.  */
  506. private JMenuItem getJMIaide() {
  507.  if (jMIaide == null) {
  508.   jMIaide = new JMenuItem();
  509.   jMIaide.setText("Aide" );
  510.  }
  511.  return jMIaide;
  512. }
  513. /**
  514.  * This method initializes jMIdevis  
  515.  *  
  516.  * @return javax.swing.JMenuItem  
  517.  */
  518. private JMenuItem getJMIdevis() {
  519.  if (jMIdevis == null) {
  520.   jMIdevis = new JMenuItem();
  521.   jMIdevis.setText("Devis" );
  522.  }
  523.  return jMIdevis;
  524. }
  525. /**
  526.  * This method initializes jMIcommande  
  527.  *  
  528.  * @return javax.swing.JMenuItem  
  529.  */
  530. private JMenuItem getJMIcommande() {
  531.  if (jMIcommande == null) {
  532.   jMIcommande = new JMenuItem();
  533.   jMIcommande.setText("Commandes" );
  534.  }
  535.  return jMIcommande;
  536. }
  537. /**
  538.  * This method initializes jMIbdl  
  539.  *  
  540.  * @return javax.swing.JMenuItem  
  541.  */
  542. private JMenuItem getJMIbdl() {
  543.  if (jMIbdl == null) {
  544.   jMIbdl = new JMenuItem();
  545.   jMIbdl.setText("Bons de livraison" );
  546.  }
  547.  return jMIbdl;
  548. }
  549. /**
  550.  * This method initializes jMIfacture  
  551.  *  
  552.  * @return javax.swing.JMenuItem  
  553.  */
  554. private JMenuItem getJMIfacture() {
  555.  if (jMIfacture == null) {
  556.   jMIfacture = new JMenuItem();
  557.   jMIfacture.setText("Factures" );
  558.  }
  559.  return jMIfacture;
  560. }
  561. /**
  562.  * This method initializes jMIaide2  
  563.  *  
  564.  * @return javax.swing.JMenuItem  
  565.  */
  566. private JMenuItem getJMIaide2() {
  567.  if (jMIaide2 == null) {
  568.   jMIaide2 = new JMenuItem();
  569.   jMIaide2.setText("Aide" );
  570.  }
  571.  return jMIaide2;
  572. }
  573. /**
  574.  * This method initializes jMIcmdfrs  
  575.  *  
  576.  * @return javax.swing.JMenuItem  
  577.  */
  578. private JMenuItem getJMIcmdfrs() {
  579.  if (jMIcmdfrs == null) {
  580.   jMIcmdfrs = new JMenuItem();
  581.   jMIcmdfrs.setText("Commandes fournisseurs" );
  582.  }
  583.  return jMIcmdfrs;
  584. }
  585. /**
  586.  * This method initializes jMIbdr  
  587.  *  
  588.  * @return javax.swing.JMenuItem  
  589.  */
  590. private JMenuItem getJMIbdr() {
  591.  if (jMIbdr == null) {
  592.   jMIbdr = new JMenuItem();
  593.   jMIbdr.setText("Bons de reception" );
  594.  }
  595.  return jMIbdr;
  596. }
  597. /**
  598.  * This method initializes jMIfactfrs  
  599.  *  
  600.  * @return javax.swing.JMenuItem  
  601.  */
  602. private JMenuItem getJMIfactfrs() {
  603.  if (jMIfactfrs == null) {
  604.   jMIfactfrs = new JMenuItem();
  605.   jMIfactfrs.setText("Factures fournisseurs" );
  606.  }
  607.  return jMIfactfrs;
  608. }
  609. /**
  610.  * This method initializes jMIaide3  
  611.  *  
  612.  * @return javax.swing.JMenuItem  
  613.  */
  614. private JMenuItem getJMIaide3() {
  615.  if (jMIaide3 == null) {
  616.   jMIaide3 = new JMenuItem();
  617.   jMIaide3.setText("Aide" );
  618.  }
  619.  return jMIaide3;
  620. }
  621. /**
  622.  * This method initializes jMlistvente  
  623.  *  
  624.  * @return javax.swing.JMenu  
  625.  */
  626. private JMenu getJMlistvente() {
  627.  if (jMlistvente == null) {
  628.   jMlistvente = new JMenu();
  629.   jMlistvente.setText("Listing des ventes" );
  630.  }
  631.  return jMlistvente;
  632. }
  633. /**
  634.  * This method initializes jMlistachat  
  635.  *  
  636.  * @return javax.swing.JMenu  
  637.  */
  638. private JMenu getJMlistachat() {
  639.  if (jMlistachat == null) {
  640.   jMlistachat = new JMenu();
  641.   jMlistachat.setText("Listing des achats" );
  642.  }
  643.  return jMlistachat;
  644. }
  645. /**
  646.  * This method initializes jMhistovente  
  647.  *  
  648.  * @return javax.swing.JMenu  
  649.  */
  650. private JMenu getJMhistovente() {
  651.  if (jMhistovente == null) {
  652.   jMhistovente = new JMenu();
  653.   jMhistovente.setText("Historique des ventes" );
  654.  }
  655.  return jMhistovente;
  656. }
  657. /**
  658.  * This method initializes jMhistoachat  
  659.  *  
  660.  * @return javax.swing.JMenu  
  661.  */
  662. private JMenu getJMhistoachat() {
  663.  if (jMhistoachat == null) {
  664.   jMhistoachat = new JMenu();
  665.   jMhistoachat.setText("Historique des achats" );
  666.  }
  667.  return jMhistoachat;
  668. }
  669. /**
  670.  * This method initializes jMhistoclt  
  671.  *  
  672.  * @return javax.swing.JMenu  
  673.  */
  674. private JMenu getJMhistoclt() {
  675.  if (jMhistoclt == null) {
  676.   jMhistoclt = new JMenu();
  677.   jMhistoclt.setText("Historique des clients" );
  678.  }
  679.  return jMhistoclt;
  680. }
  681. /**
  682.  * This method initializes jMhistofrs  
  683.  *  
  684.  * @return javax.swing.JMenu  
  685.  */
  686. private JMenu getJMhistofrs() {
  687.  if (jMhistofrs == null) {
  688.   jMhistofrs = new JMenu();
  689.   jMhistofrs.setText("historique des fournisseurs" );
  690.  }
  691.  return jMhistofrs;
  692. }
  693. /**
  694.  * This method initializes jMstate  
  695.  *  
  696.  * @return javax.swing.JMenu  
  697.  */
  698. private JMenu getJMstate() {
  699.  if (jMstate == null) {
  700.   jMstate = new JMenu();
  701.   jMstate.setText("Statistiques" );
  702.  }
  703.  return jMstate;
  704. }
  705. /**
  706.  * This method initializes jMIreparation  
  707.  *  
  708.  * @return javax.swing.JMenuItem  
  709.  */
  710. private JMenuItem getJMIreparation() {
  711.  if (jMIreparation == null) {
  712.   jMIreparation = new JMenuItem();
  713.   jMIreparation.setText("Réparations" );
  714.  }
  715.  return jMIreparation;
  716. }
  717. /**
  718.  * This method initializes jMIreception  
  719.  *  
  720.  * @return javax.swing.JMenuItem  
  721.  */
  722. private JMenuItem getJMIreception() {
  723.  if (jMIreception == null) {
  724.   jMIreception = new JMenuItem();
  725.   jMIreception.setText("Réceptions SAV" );
  726.  }
  727.  return jMIreception;
  728. }
  729. /**
  730.  * This method initializes jMIenvoi  
  731.  *  
  732.  * @return javax.swing.JMenuItem  
  733.  */
  734. private JMenuItem getJMIenvoi() {
  735.  if (jMIenvoi == null) {
  736.   jMIenvoi = new JMenuItem();
  737.   jMIenvoi.setText("Envoie SAV" );
  738.  }
  739.  return jMIenvoi;
  740. }
  741. /**
  742.  * This method initializes jMIsauivie  
  743.  *  
  744.  * @return javax.swing.JMenuItem  
  745.  */
  746. private JMenuItem getJMIsauivie() {
  747.  if (jMIsauivie == null) {
  748.   jMIsauivie = new JMenuItem();
  749.   jMIsauivie.setText("Suivie SAV" );
  750.  }
  751.  return jMIsauivie;
  752. }
  753. /**
  754.  * This method initializes jMIaide4  
  755.  *  
  756.  * @return javax.swing.JMenuItem  
  757.  */
  758. private JMenuItem getJMIaide4() {
  759.  if (jMIaide4 == null) {
  760.   jMIaide4 = new JMenuItem();
  761.   jMIaide4.setText("Aide" );
  762.  }
  763.  return jMIaide4;
  764. }
  765. /**
  766.  * This method initializes jMarticle  
  767.  *  
  768.  * @return javax.swing.JMenu  
  769.  */
  770. private JMenu getJMarticle() {
  771.  if (jMarticle == null) {
  772.   jMarticle = new JMenu();
  773.   jMarticle.setText("Articles" );
  774.   jMarticle.add(getJMIfamart());
  775.   jMarticle.add(getJMIarticle());
  776.  }
  777.  return jMarticle;
  778. }
  779. /**
  780.  * This method initializes jMimport  
  781.  *  
  782.  * @return javax.swing.JMenu  
  783.  */
  784. private JMenu getJMimport() {
  785.  if (jMimport == null) {
  786.   jMimport = new JMenu();
  787.   jMimport.setText("Import" );
  788.   jMimport.add(getJMIfamartI());
  789.   jMimport.add(getJMIartI());
  790.   jMimport.add(getJMIfamcltI());
  791.   jMimport.add(getJMIcltI());
  792.   jMimport.add(getJMIfamfrsI());
  793.   jMimport.add(getJMIfrsI());
  794.  }
  795.  return jMimport;
  796. }
  797. /**
  798.  * This method initializes jMIfamart  
  799.  *  
  800.  * @return javax.swing.JMenuItem  
  801.  */
  802. private JMenuItem getJMIfamart() {
  803.  if (jMIfamart == null) {
  804.   jMIfamart = new JMenuItem();
  805.   jMIfamart.setText("Famille d'articles" );
  806.  }
  807.  return jMIfamart;
  808. }
  809. /**
  810.  * This method initializes jMIarticle  
  811.  *  
  812.  * @return javax.swing.JMenuItem  
  813.  */
  814. private JMenuItem getJMIarticle() {
  815.  if (jMIarticle == null) {
  816.   jMIarticle = new JMenuItem();
  817.   jMIarticle.setText("Articles" );
  818.  }
  819.  return jMIarticle;
  820. }
  821. /**
  822.  * This method initializes jMIfamartI  
  823.  *  
  824.  * @return javax.swing.JMenuItem  
  825.  */
  826. private JMenuItem getJMIfamartI() {
  827.  if (jMIfamartI == null) {
  828.   jMIfamartI = new JMenuItem();
  829.   jMIfamartI.setText("Famille d'articles" );
  830.  }
  831.  return jMIfamartI;
  832. }
  833. /**
  834.  * This method initializes jMIartI  
  835.  *  
  836.  * @return javax.swing.JMenuItem  
  837.  */
  838. private JMenuItem getJMIartI() {
  839.  if (jMIartI == null) {
  840.   jMIartI = new JMenuItem();
  841.   jMIartI.setText("Articles" );
  842.  }
  843.  return jMIartI;
  844. }
  845. /**
  846.  * This method initializes jMIremisebanque  
  847.  *  
  848.  * @return javax.swing.JMenuItem  
  849.  */
  850. private JMenuItem getJMIremisebanque() {
  851.  if (jMIremisebanque == null) {
  852.   jMIremisebanque = new JMenuItem();
  853.   jMIremisebanque.setText("Remises en banque" );
  854.  }
  855.  return jMIremisebanque;
  856. }
  857. /**
  858.  * This method initializes jMIreglrel  
  859.  *  
  860.  * @return javax.swing.JMenuItem  
  861.  */
  862. private JMenuItem getJMIreglrel() {
  863.  if (jMIreglrel == null) {
  864.   jMIreglrel = new JMenuItem();
  865.   jMIreglrel.setText("Règlements/relances clients" );
  866.  }
  867.  return jMIreglrel;
  868. }
  869. /**
  870.  * This method initializes jMIinventaire  
  871.  *  
  872.  * @return javax.swing.JMenuItem  
  873.  */
  874. private JMenuItem getJMIinventaire() {
  875.  if (jMIinventaire == null) {
  876.   jMIinventaire = new JMenuItem();
  877.   jMIinventaire.setText("Inventaire" );
  878.  }
  879.  return jMIinventaire;
  880. }
  881. /**
  882.  * This method initializes jMItranscompt  
  883.  *  
  884.  * @return javax.swing.JMenuItem  
  885.  */
  886. private JMenuItem getJMItranscompt() {
  887.  if (jMItranscompt == null) {
  888.   jMItranscompt = new JMenuItem();
  889.   jMItranscompt.setText("Transferts comptables" );
  890.  }
  891.  return jMItranscompt;
  892. }
  893. /**
  894.  * This method initializes jMIaide5  
  895.  *  
  896.  * @return javax.swing.JMenuItem  
  897.  */
  898. private JMenuItem getJMIaide5() {
  899.  if (jMIaide5 == null) {
  900.   jMIaide5 = new JMenuItem();
  901.   jMIaide5.setText("Aide" );
  902.  }
  903.  return jMIaide5;
  904. }
  905. /**
  906.  * This method initializes jMIfamcltI  
  907.  *  
  908.  * @return javax.swing.JMenuItem  
  909.  */
  910. private JMenuItem getJMIfamcltI() {
  911.  if (jMIfamcltI == null) {
  912.   jMIfamcltI = new JMenuItem();
  913.   jMIfamcltI.setText("Famille de clients" );
  914.  }
  915.  return jMIfamcltI;
  916. }
  917. /**
  918.  * This method initializes jMIcltI  
  919.  *  
  920.  * @return javax.swing.JMenuItem  
  921.  */
  922. private JMenuItem getJMIcltI() {
  923.  if (jMIcltI == null) {
  924.   jMIcltI = new JMenuItem();
  925.   jMIcltI.setText("Clients" );
  926.  }
  927.  return jMIcltI;
  928. }
  929. /**
  930.  * This method initializes jMIfamfrsI  
  931.  *  
  932.  * @return javax.swing.JMenuItem  
  933.  */
  934. private JMenuItem getJMIfamfrsI() {
  935.  if (jMIfamfrsI == null) {
  936.   jMIfamfrsI = new JMenuItem();
  937.   jMIfamfrsI.setText("Famille de fournisseurs" );
  938.  }
  939.  return jMIfamfrsI;
  940. }
  941. /**
  942.  * This method initializes jMIfrsI  
  943.  *  
  944.  * @return javax.swing.JMenuItem  
  945.  */
  946. private JMenuItem getJMIfrsI() {
  947.  if (jMIfrsI == null) {
  948.   jMIfrsI = new JMenuItem();
  949.   jMIfrsI.setText("Fournisseurs" );
  950.  }
  951.  return jMIfrsI;
  952. }
  953. /**
  954.  * This method initializes Jtoolbar  
  955.  *  
  956.  * @return javax.swing.JToolBar  
  957.  */
  958. private JToolBar getJtoolbar() {
  959.  if (Jtoolbar == null) {
  960.   Jtoolbar = new JToolBar();
  961.   Jtoolbar.setBounds(new Rectangle(0, 0, 1020, 25));
  962.   Jtoolbar.setFloatable(false);
  963.   Jtoolbar.add(getJBpref1());
  964.   Jtoolbar.add(getJBpref2());
  965.   Jtoolbar.add(getJBpref3());
  966.   Jtoolbar.add(getJBpref4());
  967.   Jtoolbar.add(getJBpref5());
  968.   Jtoolbar.add(getJBpref6());
  969.   Jtoolbar.add(getJBpref7());
  970.  }
  971.  return Jtoolbar;
  972. }
  973. public JDesktopPane getJDPaccframe() {
  974.  if (jDPaccframe == null) {
  975.   jDPaccframe = new JDesktopPane();
  976.   jDPaccframe.setBounds(new Rectangle(1, 24, 1017, 644));
  977.  }
  978.  return jDPaccframe;
  979. }
  980. public static void main(String[] args){
  981.  accueil test = new accueil();
  982.  test.getAccueil();
  983. }
  984. //  @jve:decl-index=0:visual-constraint="35,728"


 
Une de mes internalframe:

Code :
  1. import java.awt.Dimension;
  2. import java.awt.Rectangle;
  3. import javax.swing.JInternalFrame;
  4. import javax.swing.JLabel;
  5. import javax.swing.JPanel;
  6. import javax.swing.JTextArea;
  7. public class stglobale {
  8. private JInternalFrame jIFstglobale = null;  //  @jve:decl-index=0:visual-constraint="104,38"
  9. private JPanel jCPstat = null;  //  @jve:decl-index=0:visual-constraint="10,10"
  10. private JLabel jLabel = null;
  11. private JLabel jLabel1 = null;
  12. private JLabel jLabel2 = null;
  13. private JLabel jLabel3 = null;
  14. private JLabel jLabel4 = null;
  15. private JLabel jLabel5 = null;
  16. private JLabel jLabel6 = null;
  17. private JLabel jLabel7 = null;
  18. private JLabel jLabel8 = null;
  19. private JTextArea jTextArea = null;
  20. private JTextArea jTextArea1 = null;
  21. private JTextArea jTextArea2 = null;
  22. private JTextArea jTextArea3 = null;
  23. /**
  24.  * This method initializes jIFstglobale  
  25.  *  
  26.  * @return javax.swing.JInternalFrame  
  27.  */
  28. private JInternalFrame getJIFstglobale() {
  29.  if (jIFstglobale == null) {
  30.   jIFstglobale = new JInternalFrame();
  31.   jIFstglobale.setClosable(true);
  32.   jIFstglobale.setTitle("Statistiques globales" );
  33.   jIFstglobale.setBounds(new Rectangle(1, 24, 1017, 644));
  34.   jIFstglobale.setVisible(true);
  35.   jIFstglobale.setContentPane(getJCPstat());
  36.  }
  37.  return jIFstglobale;
  38. }
  39. /**
  40.  * This method initializes jCPstat  
  41.  *  
  42.  * @return javax.swing.JPanel  
  43.  */
  44. private JPanel getJCPstat() {
  45.  if (jCPstat == null) {
  46.   jLabel8 = new JLabel();
  47.   jLabel8.setBounds(new Rectangle(370, 105, 234, 16));
  48.   jLabel8.setText("xxxxxxxx" );
  49.   jLabel7 = new JLabel();
  50.   jLabel7.setBounds(new Rectangle(369, 60, 234, 16));
  51.   jLabel7.setText("xxxxxxxxx" );
  52.   jLabel6 = new JLabel();
  53.   jLabel6.setBounds(new Rectangle(8, 60, 325, 16));
  54.   jLabel6.setText("Chiffre d'affaire de l'année en cours" );
  55.   jLabel5 = new JLabel();
  56.   jLabel5.setBounds(new Rectangle(8, 106, 325, 16));
  57.   jLabel5.setText("Chiffre d'affaire de l'année précédente" );
  58.   jLabel4 = new JLabel();
  59.   jLabel4.setBounds(new Rectangle(8, 150, 325, 16));
  60.   jLabel4.setText("Meilleurs fournisseurs sur les 12 derniers mois" );
  61.   jLabel3 = new JLabel();
  62.   jLabel3.setBounds(new Rectangle(9, 195, 325, 16));
  63.   jLabel3.setText("Meilleurs clients sur les 12 deriners mois" );
  64.   jLabel2 = new JLabel();
  65.   jLabel2.setBounds(new Rectangle(8, 240, 325, 16));
  66.   jLabel2.setText("Articles les plus vendus sur les 12 derniers mois" );
  67.   jLabel1 = new JLabel();
  68.   jLabel1.setBounds(new Rectangle(9, 285, 325, 16));
  69.   jLabel1.setText("Articles SAV sur les 12 derniers mois" );
  70.   jLabel = new JLabel();
  71.   jLabel.setText("Désignation                        Chiffre d'affaire" );
  72.   jLabel.setBounds(new Rectangle(369, 131, 234, 16));
  73.   jCPstat = new JPanel();
  74.   jCPstat.setLayout(null);
  75.   jCPstat.setBounds(new Rectangle(0, -1, 732, 371));
  76.   jCPstat.add(jLabel, null);
  77.   jCPstat.add(jLabel1, null);
  78.   jCPstat.add(jLabel2, null);
  79.   jCPstat.add(jLabel3, null);
  80.   jCPstat.add(jLabel4, null);
  81.   jCPstat.add(jLabel5, null);
  82.   jCPstat.add(jLabel6, null);
  83.   jCPstat.add(jLabel7, null);
  84.   jCPstat.add(jLabel8, null);
  85.   jCPstat.add(getJTextArea(), null);
  86.   jCPstat.add(getJTextArea1(), null);
  87.   jCPstat.add(getJTextArea2(), null);
  88.   jCPstat.add(getJTextArea3(), null);
  89.  }
  90.  return jCPstat;
  91. }
  92. private JTextArea getJTextArea() {
  93.  if (jTextArea == null) {
  94.   jTextArea = new JTextArea();
  95.   jTextArea.setBounds(new Rectangle(369, 240, 234, 31));
  96.  }
  97.  return jTextArea;
  98. }
  99. /**
  100.  * This method initializes jTextArea1  
  101.  *  
  102.  * @return javax.swing.JTextArea  
  103.  */
  104. private JTextArea getJTextArea1() {
  105.  if (jTextArea1 == null) {
  106.   jTextArea1 = new JTextArea();
  107.   jTextArea1.setBounds(new Rectangle(369, 195, 234, 31));
  108.  }
  109.  return jTextArea1;
  110. }
  111. /**
  112.  * This method initializes jTextArea2  
  113.  *  
  114.  * @return javax.swing.JTextArea  
  115.  */
  116. private JTextArea getJTextArea2() {
  117.  if (jTextArea2 == null) {
  118.   jTextArea2 = new JTextArea();
  119.   jTextArea2.setBounds(new Rectangle(369, 150, 234, 31));
  120.  }
  121.  return jTextArea2;
  122. }
  123. /**
  124.  * This method initializes jTextArea3  
  125.  *  
  126.  * @return javax.swing.JTextArea  
  127.  */
  128. private JTextArea getJTextArea3() {
  129.  if (jTextArea3 == null) {
  130.   jTextArea3 = new JTextArea();
  131.   jTextArea3.setBounds(new Rectangle(369, 285, 234, 31));
  132.  }
  133.  return jTextArea3;
  134. }
  135. }

mood
Publicité
Posté le 30-05-2007 à 17:18:26  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  De l'aide svp

 

Sujets relatifs
AIDEbesoin d'aide pour creation textbox et label en dynamique
Aide pour la creation d'un fichier .batAide pour comprendre Strrev et donc le concours
[AIDE] Qqun peut il me creer un site sur-mesure?Besoin d'aide pour un script de DoS
Segmentation Fault : bersoin d'aideAide pour VB .Net
Gnu Scientific Library : besoin d'aide avec la génération de nombre alprogrammer sur nokia serie 40 a l'aide SVP
Plus de sujets relatifs à : De l'aide svp


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR