IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Agents de placement/Fenêtres Java Discussion :

redimensionner une jframe


Sujet :

Agents de placement/Fenêtres Java

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut redimensionner une jframe
    Bonjour,

    J'aimerai savoir comment on peut redimensioner une jframe avec son contenu en même temps. Lorsque j'essais de redimensionner la mienne après compilation la fenêtre cache certains de mes composants situés aux extrémités ...
    Aussi lorsque je compile mon programme sur un autre ordinateur, j'obtient une erreur out of memory, je pense que c'est un problème de résolution de l'écran : y a t-il une méthode qui adapte la taille de la jframe à la résolution de l'écran ?

  2. #2
    Membre habitué
    Inscrit en
    Avril 2003
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 141
    Points : 128
    Points
    128
    Par défaut
    Pour avoir la résolution de l'ecran tu as :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();
    Après c est a toi d'adapter la dimension à ta JFrame.

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    heyy moi je veux bien, je demande que ça même , mais comment on adapte le contenu de la jframe par rapport a la taille de la jframe ?

  4. #4
    Membre habitué
    Inscrit en
    Avril 2003
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 141
    Points : 128
    Points
    128
    Par défaut
    Pour maximiser une JFrame tu as ceci dans la faq
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    public void maximiser(Frame frame){
          Toolkit kit =  Toolkit.getDefaultToolkit(); 
          //récupération de la taille de l'écran et des rebords
          Insets insets = kit.getScreenInsets(frame.getGraphicsConfiguration()); 
          Dimension screen = kit.getScreenSize(); 
          //calcul des longueurs nécessaires et de la position
          int w = (int)(screen.getWidth()-insets.left-insets.right); 
          int h = (int)(screen.getHeight()-insets.top-insets.bottom); 
          int x = (int)(insets.left); 
          int y = (int)(insets.top); 
          Dimension dimension = new Dimension(w,h); 
          //placement et redimension
          frame.setSize(dimension); 
          frame.setLocation(x,y); 
    }
    Après c est a toi de jouer avec ces valeurs en divisant par 2 w et h par exemple, enfin tu en fais ce que tu veut

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    Non ça m'affiche tout en plein écran ça ... c'est pas ça que je cherche ....
    Je veux pouvoir redimensioner ma frame et que le contenu s'adapte en fonction si j'agrandis mes composants doivent grandir etc ...
    j'ai un panel avec tous mes composants dans ma frame et le layout a null ...

  6. #6
    Membre chevronné
    Profil pro
    Fabrication GED
    Inscrit en
    Octobre 2005
    Messages
    1 405
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Fabrication GED

    Informations forums :
    Inscription : Octobre 2005
    Messages : 1 405
    Points : 1 958
    Points
    1 958
    Par défaut
    Citation Envoyé par cterra
    Non ça m'affiche tout en plein écran ça ... c'est pas ça que je cherche ....
    Je veux pouvoir redimensioner ma frame et que le contenu s'adapte en fonction si j'agrandis mes composants doivent grandir etc ...
    j'ai un panel avec tous mes composants dans ma frame et le layout a null ...
    Voilà pourquoi ça ne marche pas. Il faut utiliser le comportement naturel des layout manager.

  7. #7
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    je viens de comprendre ça , mais si je mettais pas mon layout a null je pouvais pas placer mes composants ou je voulais , maintenant la question c'est comment je peux rattraper le coup et que tout se redimensionne ?

  8. #8
    Membre habitué
    Inscrit en
    Avril 2003
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 141
    Points : 128
    Points
    128
    Par défaut
    Il va falloir que tu utilise imperativement les BorderLayout, GridLayout et GridBagLayout si tu veux que tes composants se redimensionnent automatiquement => faq

    Sinon le code que je t'ai filé sert effectivement à maximiser une JFrame, Après
    c est a toi de jouer avec ces valeurs en divisant par 2 w et h par exemple, enfin tu en fais ce que tu veux

  9. #9
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    mais je peux pas , matte la tete de mon ihm un peu !!!



    ça tient pas ça sur des grilles !!

  10. #10
    Membre habitué
    Inscrit en
    Avril 2003
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 141
    Points : 128
    Points
    128
    Par défaut
    Tu as tout placé avec des setBounds() ???
    Parce que si c est le cas ca ne se redimensionnera jamais ...

  11. #11
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    ah mais ça je peux pas savoir, moi déja c'était mon premier programme en java, je pouvais pas deviner ... mais oui je viens de jetter un oeil c'est bien des setbounds , mais si tu me dis par quoi les changer ça m'interesse ...

  12. #12
    Membre habitué
    Inscrit en
    Avril 2003
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 141
    Points : 128
    Points
    128
    Par défaut
    Le problème c est qu'il n y a pas de solution miracle. L'interface graqhique c est plutot chiant meme et ca demande pas mal de pratique Faut faire un mix de tous les Layout afin de d'obtenir plus ou moins ce qu'on veut Sachant que le plus puissant des Layout c'est le GridBagLayout mais c'est aussi le plus délicat a utiliser. Je te conseille vraiment de jeter un coup d'oeil a toute la faq (http://java.developpez.com/faq/java/...glayout_simple ) et de regarder des tutoriaux.

  13. #13
    Membre éclairé
    Avatar de bbclone
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    537
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mai 2006
    Messages : 537
    Points : 704
    Points
    704
    Par défaut
    avec un GridBagLayout tu peut faire ton interface sans aucun probleme.
    mais je te conseille quand meme de la changer un peu pour plus de clarte comme par exemple aligner au moins les composants.

    j'ai vite commencer cette interface mais j'en ai eu marre...
    trop de champs => trop de clique souris... ca devient vite ennuyant.

    voila ou j'en suis arriver. aucun setBounds ;-)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
     
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
     
    import javax.swing.*;
    import javax.swing.border.EtchedBorder;
     
    /**
     * Created by IntelliJ IDEA.
     * User: bebe
     * Date: 23-Oct-2006
     * Time: 21:39:56
     * To change this template use File | Settings | File Templates.
     */
    public class Weirdooo extends JPanel {
        private JPanel topPanel = new JPanel();
        private JPanel eastPanel = new JPanel();
        private JTabbedPane westTabbedPane = new JTabbedPane();
        private JTextField requeteTextField = new JTextField();
        private JTextField dossierDestTextField = new JTextField();
        private JTextField automRequTextField = new JTextField();
        private JComboBox langageComboBox = new JComboBox();
        private JTextField nbResultMSNTextField = new JTextField();
        private JPanel analysSemantPanel = new JPanel();
        private JTextField limiteHauteTextField = new JTextField();
     
        public Weirdooo() {
            initGui();
        }
     
        private void initGui() {
            setLayout(new GridBagLayout());
            topPanel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
            topPanel.setLayout(new GridBagLayout());
            eastPanel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
            eastPanel.setLayout(new GridBagLayout());
            JLabel requeteLabel = new JLabel("La requête :");
            requeteTextField.setPreferredSize(new Dimension(280, 20));
            requeteTextField.setMinimumSize(new Dimension(200, 20));
            JButton rechercherButton = new JButton("Rechercher");
            JCheckBox googleCheckBox = new JCheckBox("Google");
            JCheckBox yahooCheckBox = new JCheckBox("Yahoo!");
            JCheckBox msnCheckBox = new JCheckBox("MSN");
            JLabel dossierDestLabel = new JLabel("Dossier de destination :");
            JLabel automRequLabel = new JLabel("Automatisation des requêtes :");
            JButton pathButton = new JButton("Path");
            JButton selectionButton = new JButton("Selection");
            JLabel langageLabel = new JLabel("Le langage :");
            langageComboBox.setPreferredSize(new Dimension(125, 20));
            langageComboBox.setMinimumSize(new Dimension(75, 20));
            JLabel nbResultMSNLabel = new JLabel("Nombre de résultat sur MSN :");
            JCheckBox analysSemantCheckBox = new JCheckBox("Analyse sémantique du résumé");
            analysSemantPanel.setLayout(new GridBagLayout());
            analysSemantPanel.setBackground(new Color(255, 198, 181));
            limiteHauteTextField.setPreferredSize(new Dimension(40, 20));
            limiteHauteTextField.setMinimumSize(new Dimension(20, 20));
            JLabel limiteHauteLabel = new JLabel("Limite haute");
            topPanel.add(requeteLabel,
                    new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(5, 5, 0, 0), 0, 0));
            topPanel.add(requeteTextField,
                    new GridBagConstraints(2, 0, 2, 1, 0.5, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.HORIZONTAL,
                            new Insets(5, 5, 0, 0), 0, 0));
            topPanel.add(rechercherButton,
                    new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(0, 5, 0, 0), 0, 0));
            topPanel.add(googleCheckBox,
                    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(5, 25, 0, 0), 0, 0));
            topPanel.add(yahooCheckBox,
                    new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(0, 20, 0, 0), 0, 0));
            topPanel.add(msnCheckBox,
                    new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(0, 10, 0, 0), 0, 0));
            topPanel.add(dossierDestLabel,
                    new GridBagConstraints(0, 2, 2, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(5, 5, 0, 0), 0, 0));
            topPanel.add(dossierDestTextField,
                    new GridBagConstraints(2, 2, 2, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
                            new Insets(0, 5, 0, 0), 0, 0));
            topPanel.add(automRequLabel,
                    new GridBagConstraints(0, 3, 2, 1, 0.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(5, 5, 0, 0), 0, 0));
            topPanel.add(automRequTextField,
                    new GridBagConstraints(2, 3, 2, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
                            new Insets(0, 5, 0, 0), 0, 0));
            topPanel.add(pathButton,
                    new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
                            new Insets(0, 5, 0, 0), 0, 0));
            topPanel.add(selectionButton,
                    new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
                            new Insets(5, 5, 5, 0), 0, 0));
            topPanel.add(langageLabel,
                    new GridBagConstraints(5, 0, 1, 1, 0.5, 0.0, GridBagConstraints.BASELINE_TRAILING, GridBagConstraints.NONE,
                            new Insets(0, 0, 0, 0), 0, 0));
            topPanel.add(langageComboBox,
                    new GridBagConstraints(6, 0, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.NONE,
                            new Insets(0, 5, 0, 5), 0, 0));
            topPanel.add(nbResultMSNLabel,
                    new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE_TRAILING, GridBagConstraints.NONE,
                            new Insets(0, 10, 0, 0), 0, 0));
            topPanel.add(nbResultMSNTextField,
                    new GridBagConstraints(6, 3, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
                            new Insets(0, 5, 0, 5), 0, 0));
            this.add(topPanel,
                    new GridBagConstraints(0, 0, GridBagConstraints.REMAINDER, 1,
                            1.0, 0.0, GridBagConstraints.BASELINE,
                            GridBagConstraints.HORIZONTAL,
                            new Insets(0, 0, 0, 0), 0, 0));
            eastPanel.add(analysSemantCheckBox,
                    new GridBagConstraints(0, 0, GridBagConstraints.REMAINDER,
                            1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.NONE,
                            new Insets(0, 0, 0, 0), 0, 0));
            analysSemantPanel.add(limiteHauteTextField,
                    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.BASELINE, GridBagConstraints.NONE,
                            new Insets(5, 30, 0, 0),
                            0, 0));
            analysSemantPanel.add(limiteHauteLabel,
                    new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.BASELINE_LEADING, GridBagConstraints.NONE,
                            new Insets(0, 5, 5, 0), 0,
                            0));
            eastPanel.add(analysSemantPanel,
                    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER,
                            GridBagConstraints.HORIZONTAL,
                            new Insets(0, 0, 0, 0), 0, 0));
     
            add(eastPanel,
                    new GridBagConstraints(1, 1, 1, 1, 0.0, 1.0, GridBagConstraints.CENTER,
                            GridBagConstraints.VERTICAL,
                            new Insets(0, 0, 0, 0), 0, 0));
     
            westTabbedPane.addTab("Google", new JScrollPane(new JTextPane()));
            westTabbedPane.addTab("Yahoo!", new JScrollPane(new JTextPane()));
            this.add(westTabbedPane,
                    new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                            GridBagConstraints.BOTH,
                            new Insets(0, 0, 0, 0), 0, 0));
        }
     
     
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    JFrame myFrame = new JFrame("Weirdoooooo");
                    myFrame.add(new Weirdooo());
                    myFrame.pack();
                    myFrame.setLocationRelativeTo(null);
                    myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    myFrame.setVisible(true);
                }
            });
        }
    }

    (fais avec un ide; donc a la souris sans trop me casser la tete dessus en quelques minutes ).

  14. #14
    Membre émérite
    Avatar de xavlours
    Inscrit en
    Février 2004
    Messages
    1 832
    Détails du profil
    Informations forums :
    Inscription : Février 2004
    Messages : 1 832
    Points : 2 410
    Points
    2 410
    Par défaut
    Bonjour,

    écoute, même avec une interface graphique aussi complexe, ça te prendra moins de temps de tout porter en Layouts que de gérer les redimensionnements proprement. Je te conseille très vivement de considérer les Layouts. Il existe des programmes dans lesquels tu places les composants à la souris, si ça peut te donner l'impression d'aller plus vite.

    Voila comment je vois la chose :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    - un BorderLayout contenant
     - Dans la zone NORTH, un GridBagLayout
     - Dans la zone CENTER, le JTabbedPane
     - Dans la zone SOUTH, le JLabel "Attente d'une requête"
     - Dans la zone EAST, un JPanel avec un BoxLayout (ou un GridBagLayout) contenant
      - la checkBox
      - un JPanel avec un GridLayout, BoxLayout ou GridBagLayout
      - l'autre checkBox
      - l'autre JPanel avec le même layout que le précédent
      - le JButton
    Avec quelques Borders, tu auras la même chose que ce que tu as envoyé, en plus propre. Franchement, ne le prends pas mal, mais ça se voit que les composants sont placés à la main. Ils ne sont pas parfaitement alignés, même si tu y as passé énormément de temps.

    [EDIT] et le temps d'écrire, je me suis fait griller.

  15. #15
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    Ahhh ...
    Si je comprend bien je dois tout refaire ... tout mon ihm, tous mes événements ... tout ...
    Ben c'est pas top pratique java ... je comprend pourquoi j'ai fait de tout cette année sauf ça ...

  16. #16
    Membre habitué
    Inscrit en
    Avril 2003
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 141
    Points : 128
    Points
    128
    Par défaut
    l'Ihm est à refaire entierement mais pas les événements, tu peux les garder heureusement !! il faudra que tu rattaches les nouveaux composants a tes anciens évenements. (Et encore les composants de base ne change pas si tu refait tout à la main, tu auras simplement plus de panels)

  17. #17
    Expert éminent sénior
    Avatar de sinok
    Profil pro
    Inscrit en
    Août 2004
    Messages
    8 765
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Par défaut
    Bon tant qu'on y est à chacun sa version, je me suis fait over griller car j'ai voulu aller au bout et que j'ai pris le train en retard (en plus de taffer lentement)

    Donc réaliser en FormLayout: ça donne ça (encore quelques problèmes d'alignement mais j'ai la flemme d'en faire plus,et le choix de diviser le panel du haut n'a pas été super heureux, mais bon) et c'est toujours super lourd: trop d'infos sur la même page tue l'information. je suis en 800 de hauteur sur un laptop et je n'ais pas la place de voire toute la page:




    Quant au code c'est du généré et avec de noms de variable très explicites.... bouton1 bouton2 &cie

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
     
    /**
     */
    public class AnotherPanel extends JPanel {    
        private JPanel panel1;
        private JPanel panel3;
        private JComponent separator3;
        private JLabel label1;
        private JTextField textField1;
        private JButton button1;
        private JLabel label3;
        private JCheckBox checkBox3;
        private JCheckBox checkBox4;
        private JCheckBox checkBox5;
        private JLabel label2;
        private JTextField textField2;
        private JButton button2;
        private JLabel label4;
        private JTextField textField3;
        private JButton button3;
        private JPanel panel9;
        private JComponent separator2;
        private JLabel label5;
        private JComboBox comboBox1;
        private JLabel label6;
        private JTextField textField4;
        private JLabel label7;
        private JTextField textField5;
        private JLabel label8;
        private JTextField textField6;
        private JLabel label9;
        private JTextField textField7;
        private JTabbedPane tabbedPane1;
        private JPanel panel6;
        private JPanel panel7;
        private JPanel panel8;
        private JPanel panel5;
        private JPanel panel2;
        private JComponent separator1;
        private JCheckBox checkBox1;
        private JPanel panel10;
        private JLabel label15;
        private JLabel label10;
        private JSpinner spinner5;
        private JSpinner spinner1;
        private JLabel label16;
        private JLabel label11;
        private JSpinner spinner2;
        private JCheckBox checkBox6;
        private JCheckBox checkBox7;
        private JLabel label12;
        private JSpinner spinner3;
        private JLabel label13;
        private JSpinner spinner4;
        private JButton button4;
        private JButton button5;
        private JLabel label14;
        private JTextField textField9;
        private JCheckBox checkBox2;
        private JPanel panel11;
        private JLabel label17;
        private JSpinner spinner6;
        private JLabel label18;
        private JSpinner spinner7;
        private JCheckBox checkBox8;
        private JCheckBox checkBox9;
        private JLabel label19;
        private JSpinner spinner8;
        private JLabel label20;
        private JSpinner spinner9;
        private JLabel label21;
        private JLabel label22;
        private JButton button7;
        private JButton button8;
        private JLabel label23;
        private JTextField textField10;
        private JButton button6;
     
     
        public AnotherPanel() {
            initComponents();
        }
     
        private void initComponents() {
     
            DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
            panel1 = new JPanel();
            panel3 = new JPanel();
            separator3 = compFactory.createSeparator("text"); //$NON-NLS-1$
            label1 = new JLabel();
            textField1 = new JTextField();
            button1 = new JButton();
            label3 = new JLabel();
            checkBox3 = new JCheckBox();
            checkBox4 = new JCheckBox();
            checkBox5 = new JCheckBox();
            label2 = new JLabel();
            textField2 = new JTextField();
            button2 = new JButton();
            label4 = new JLabel();
            textField3 = new JTextField();
            button3 = new JButton();
            panel9 = new JPanel();
            separator2 = compFactory.createSeparator("text"); //$NON-NLS-1$
            label5 = new JLabel();
            comboBox1 = new JComboBox();
            label6 = new JLabel();
            textField4 = new JTextField();
            label7 = new JLabel();
            textField5 = new JTextField();
            label8 = new JLabel();
            textField6 = new JTextField();
            label9 = new JLabel();
            textField7 = new JTextField();
            tabbedPane1 = new JTabbedPane();
            panel6 = new JPanel();
            panel7 = new JPanel();
            panel8 = new JPanel();
            panel5 = new JPanel();
            panel2 = new JPanel();
            separator1 = compFactory.createSeparator("text"); //$NON-NLS-1$
            checkBox1 = new JCheckBox();
            panel10 = new JPanel();
            label15 = new JLabel();
            label10 = new JLabel();
            spinner5 = new JSpinner();
            spinner1 = new JSpinner();
            label16 = new JLabel();
            label11 = new JLabel();
            spinner2 = new JSpinner();
            checkBox6 = new JCheckBox();
            checkBox7 = new JCheckBox();
            label12 = new JLabel();
            spinner3 = new JSpinner();
            label13 = new JLabel();
            spinner4 = new JSpinner();
            button4 = new JButton();
            button5 = new JButton();
            label14 = new JLabel();
            textField9 = new JTextField();
            checkBox2 = new JCheckBox();
            panel11 = new JPanel();
            label17 = new JLabel();
            spinner6 = new JSpinner();
            label18 = new JLabel();
            spinner7 = new JSpinner();
            checkBox8 = new JCheckBox();
            checkBox9 = new JCheckBox();
            label19 = new JLabel();
            spinner8 = new JSpinner();
            label20 = new JLabel();
            spinner9 = new JSpinner();
            label21 = new JLabel();
            label22 = new JLabel();
            button7 = new JButton();
            button8 = new JButton();
            label23 = new JLabel();
            textField10 = new JTextField();
            button6 = new JButton();
            CellConstraints cc = new CellConstraints();
     
            //======== this ========
            setBorder(Borders.DLU4_BORDER);
     
            //======== panel1 ========
            {
     
                //======== panel3 ========
                {
     
                    //---- label1 ----
                    label1.setText("Requ\u00eate"); //$NON-NLS-1$
     
                    //---- button1 ----
                    button1.setText("Rechercher"); //$NON-NLS-1$
     
                    //---- label3 ----
                    label3.setText("Moteur:"); //$NON-NLS-1$
     
                    //---- checkBox3 ----
                    checkBox3.setText("Google"); //$NON-NLS-1$
     
                    //---- checkBox4 ----
                    checkBox4.setText("Yahoo"); //$NON-NLS-1$
     
                    //---- checkBox5 ----
                    checkBox5.setText("MSN"); //$NON-NLS-1$
     
                    //---- label2 ----
                    label2.setText("Dossier de destination:"); //$NON-NLS-1$
     
                    //---- button2 ----
                    button2.setText("Parcourir"); //$NON-NLS-1$
     
                    //---- label4 ----
                    label4.setText("Automatisation des requ\u00eates"); //$NON-NLS-1$
     
                    //---- button3 ----
                    button3.setText("S\u00e9lection"); //$NON-NLS-1$
     
                    PanelBuilder panel3Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC
                        },
                        new RowSpec[] {
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW)
                        }), panel3);
                    ((FormLayout)panel3.getLayout()).setColumnGroups(new int[][] {{3, 5, 7, 9}});
                    ((FormLayout)panel3.getLayout()).setRowGroups(new int[][] {{3, 5, 7, 9}});
     
                    panel3Builder.add(separator3, cc.xywh(1, 1, 9, 1));
                    panel3Builder.add(label1,     cc.xy  (1, 3));
                    panel3Builder.add(textField1, cc.xywh(3, 3, 5, 1));
                    panel3Builder.add(button1,    cc.xy  (9, 3));
                    panel3Builder.add(label3,     cc.xy  (1, 5));
                    panel3Builder.add(checkBox3,  cc.xy  (3, 5));
                    panel3Builder.add(checkBox4,  cc.xy  (5, 5));
                    panel3Builder.add(checkBox5,  cc.xy  (7, 5));
                    panel3Builder.add(label2,     cc.xy  (1, 7));
                    panel3Builder.add(textField2, cc.xywh(3, 7, 5, 1));
                    panel3Builder.add(button2,    cc.xy  (9, 7));
                    panel3Builder.add(label4,     cc.xy  (1, 9));
                    panel3Builder.add(textField3, cc.xywh(3, 9, 5, 1));
                    panel3Builder.add(button3,    cc.xy  (9, 9));
                }
     
                PanelBuilder panel1Builder = new PanelBuilder(new FormLayout(
                    "default:grow", //$NON-NLS-1$
                    "default"), panel1); //$NON-NLS-1$
     
                panel1Builder.add(panel3, cc.xy(1, 1));
            }
     
            //======== panel9 ========
            {
     
                //---- label5 ----
                label5.setText("Langage"); //$NON-NLS-1$
     
                //---- label6 ----
                label6.setText("Nombre de r\u00e9sultats par requ\u00eate"); //$NON-NLS-1$
     
                //---- textField4 ----
                textField4.setText("5"); //$NON-NLS-1$
     
                //---- label7 ----
                label7.setText("Nombre de resultats sur Google"); //$NON-NLS-1$
     
                //---- label8 ----
                label8.setText("Nombre de resultats sur Yahoo"); //$NON-NLS-1$
     
                //---- label9 ----
                label9.setText("Nombre de resultats sur MSN"); //$NON-NLS-1$
     
                PanelBuilder panel9Builder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] {
                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                    },
                    new RowSpec[] {
                        FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW)
                    }), panel9);
                ((FormLayout)panel9.getLayout()).setRowGroups(new int[][] {{3, 5, 7, 9, 11}});
     
                panel9Builder.add(separator2, cc.xywh(1,  1, 3, 1));
                panel9Builder.add(label5,     cc.xy  (1,  3));
                panel9Builder.add(comboBox1,  cc.xy  (3,  3));
                panel9Builder.add(label6,     cc.xy  (1,  5));
                panel9Builder.add(textField4, cc.xy  (3,  5));
                panel9Builder.add(label7,     cc.xy  (1,  7));
                panel9Builder.add(textField5, cc.xy  (3,  7));
                panel9Builder.add(label8,     cc.xy  (1,  9));
                panel9Builder.add(textField6, cc.xy  (3,  9));
                panel9Builder.add(label9,     cc.xy  (1, 11));
                panel9Builder.add(textField7, cc.xy  (3, 11));
            }
     
            //======== tabbedPane1 ========
            {
     
                //======== panel6 ========
                {
     
                    PanelBuilder panel6Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC
                        },
                        new RowSpec[] {
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC
                        }), panel6);
     
                }
                tabbedPane1.addTab("Yahoo", panel6); //$NON-NLS-1$
     
     
                //======== panel7 ========
                {
     
                    PanelBuilder panel7Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC
                        },
                        new RowSpec[] {
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC
                        }), panel7);
     
                }
                tabbedPane1.addTab("MSN", panel7); //$NON-NLS-1$
     
     
                //======== panel8 ========
                {
     
                    PanelBuilder panel8Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC
                        },
                        new RowSpec[] {
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC
                        }), panel8);
     
                }
                tabbedPane1.addTab("Erreur", panel8); //$NON-NLS-1$
     
     
                //======== panel5 ========
                {
     
                    PanelBuilder panel5Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC
                        },
                        new RowSpec[] {
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC
                        }), panel5);
     
                }
                tabbedPane1.addTab("Google", panel5); //$NON-NLS-1$
     
            }
     
            //======== panel2 ========
            {
     
                //---- checkBox1 ----
                checkBox1.setText("Analyse s\u00e9mantique du r\u00e9sum\u00e9"); //$NON-NLS-1$
     
                //======== panel10 ========
                {
                    panel10.setBackground(new Color(194, 238, 237));
                    panel10.setBorder(Borders.DLU4_BORDER);
     
                    //---- label15 ----
                    label15.setText("Limite haute:"); //$NON-NLS-1$
     
                    //---- label10 ----
                    label10.setText("Limite haute:"); //$NON-NLS-1$
     
                    //---- label16 ----
                    label16.setText("Limite basse:"); //$NON-NLS-1$
     
                    //---- label11 ----
                    label11.setText("Limite basse:"); //$NON-NLS-1$
     
                    //---- checkBox6 ----
                    checkBox6.setText("Comparaison invers\u00e9e"); //$NON-NLS-1$
                    checkBox6.setOpaque(false);
     
                    //---- checkBox7 ----
                    checkBox7.setText("Analyse/Couple de mots identiques"); //$NON-NLS-1$
                    checkBox7.setOpaque(false);
     
                    //---- label12 ----
                    label12.setText("Limite:"); //$NON-NLS-1$
     
                    //---- label13 ----
                    label13.setText("Ecart:"); //$NON-NLS-1$
     
                    //---- button4 ----
                    button4.setText("Affichage S\u00e9mantique"); //$NON-NLS-1$
     
                    //---- button5 ----
                    button5.setText("Affichage du moteur"); //$NON-NLS-1$
     
                    //---- label14 ----
                    label14.setText("S\u00e9mio"); //$NON-NLS-1$
     
                    //---- textField9 ----
                    textField9.setText("D:\\cours\\stage\\semio"); //$NON-NLS-1$
     
                    PanelBuilder panel10Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                        },
                        new RowSpec[] {
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW)
                        }), panel10);
                    ((FormLayout)panel10.getLayout()).setColumnGroups(new int[][] {{1, 3, 5, 7}});
                    ((FormLayout)panel10.getLayout()).setRowGroups(new int[][] {{1, 3, 5, 7, 9, 11, 13}});
     
                    panel10Builder.add(label15,    cc.xy  (1,  1));
                    panel10Builder.add(label10,    cc.xy  (1,  1));
                    panel10Builder.add(spinner5,   cc.xywh(3,  1, 5, 1));
                    panel10Builder.add(spinner1,   cc.xywh(3,  1, 5, 1));
                    panel10Builder.add(label16,    cc.xy  (1,  3));
                    panel10Builder.add(label11,    cc.xy  (1,  3));
                    panel10Builder.add(spinner2,   cc.xywh(3,  3, 5, 1));
                    panel10Builder.add(checkBox6,  cc.xywh(1,  5, 7, 1));
                    panel10Builder.add(checkBox7,  cc.xywh(1,  7, 7, 1));
                    panel10Builder.add(label12,    cc.xy  (1,  9));
                    panel10Builder.add(spinner3,   cc.xy  (3,  9));
                    panel10Builder.add(label13,    cc.xy  (5,  9));
                    panel10Builder.add(spinner4,   cc.xy  (7,  9));
                    panel10Builder.add(button4,    cc.xywh(1, 11, 3, 1));
                    panel10Builder.add(button5,    cc.xywh(5, 11, 3, 1));
                    panel10Builder.add(label14,    cc.xy  (1, 13));
                    panel10Builder.add(textField9, cc.xywh(3, 13, 5, 1));
                }
     
                //---- checkBox2 ----
                checkBox2.setText("Analyse s\u00e9mantique du texte"); //$NON-NLS-1$
     
                //======== panel11 ========
                {
                    panel11.setBackground(new Color(238, 214, 238));
                    panel11.setBorder(Borders.DLU4_BORDER);
     
                    //---- label17 ----
                    label17.setText("Limite haute:"); //$NON-NLS-1$
     
                    //---- label18 ----
                    label18.setText("Limite basse:"); //$NON-NLS-1$
     
                    //---- checkBox8 ----
                    checkBox8.setText("Comparaison invers\u00e9e"); //$NON-NLS-1$
                    checkBox8.setOpaque(false);
     
                    //---- checkBox9 ----
                    checkBox9.setText("Analyse/Couple de mots identiques"); //$NON-NLS-1$
                    checkBox9.setOpaque(false);
     
                    //---- label19 ----
                    label19.setText("Limite:"); //$NON-NLS-1$
     
                    //---- label20 ----
                    label20.setText("Ecart:"); //$NON-NLS-1$
     
                    //---- label21 ----
                    label21.setText("Indice de couple similaire:"); //$NON-NLS-1$
     
                    //---- label22 ----
                    label22.setText("%"); //$NON-NLS-1$
     
                    //---- button7 ----
                    button7.setText("Ordre du score de texte"); //$NON-NLS-1$
     
                    //---- button8 ----
                    button8.setText("Ordre du moteur"); //$NON-NLS-1$
     
                    //---- label23 ----
                    label23.setText("S\u00e9mio"); //$NON-NLS-1$
     
                    //---- textField10 ----
                    textField10.setText("D:\\cours\\stage\\semio"); //$NON-NLS-1$
     
                    PanelBuilder panel11Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] {
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                        },
                        new RowSpec[] {
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC
                        }), panel11);
                    ((FormLayout)panel11.getLayout()).setColumnGroups(new int[][] {{1, 3, 5, 7}});
                    ((FormLayout)panel11.getLayout()).setRowGroups(new int[][] {{1, 3, 5, 7, 9, 11, 13, 15}});
     
                    panel11Builder.add(label17,     cc.xy  (1,  1));
                    panel11Builder.add(spinner6,    cc.xywh(3,  1, 5, 1));
                    panel11Builder.add(label18,     cc.xy  (1,  3));
                    panel11Builder.add(spinner7,    cc.xywh(3,  3, 5, 1));
                    panel11Builder.add(checkBox8,   cc.xywh(1,  5, 7, 1));
                    panel11Builder.add(checkBox9,   cc.xywh(1,  7, 7, 1));
                    panel11Builder.add(label19,     cc.xy  (1,  9));
                    panel11Builder.add(spinner8,    cc.xy  (3,  9));
                    panel11Builder.add(label20,     cc.xy  (5,  9));
                    panel11Builder.add(spinner9,    cc.xy  (7,  9));
                    panel11Builder.add(label21,     cc.xywh(1, 11, 5, 1));
                    panel11Builder.add(label22,     cc.xy  (7, 11));
                    panel11Builder.add(button7,     cc.xywh(1, 13, 3, 1));
                    panel11Builder.add(button8,     cc.xywh(5, 13, 3, 1));
                    panel11Builder.add(label23,     cc.xy  (1, 15));
                    panel11Builder.add(textField10, cc.xywh(3, 15, 5, 1));
                }
     
                //---- button6 ----
                button6.setText("Traiter un fichier texte"); //$NON-NLS-1$
     
                PanelBuilder panel2Builder = new PanelBuilder(new FormLayout(
                    ColumnSpec.decodeSpecs("default:grow"), //$NON-NLS-1$
                    new RowSpec[] {
                        FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.UNRELATED_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.UNRELATED_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC
                    }), panel2);
     
                panel2Builder.add(separator1, cc.xy(1,  1));
                panel2Builder.add(checkBox1,  cc.xy(1,  3));
                panel2Builder.add(panel10,    cc.xy(1,  5));
                panel2Builder.add(checkBox2,  cc.xy(1,  7));
                panel2Builder.add(panel11,    cc.xy(1,  9));
                panel2Builder.add(button6,    cc.xy(1, 11));
            }
     
            PanelBuilder builder = new PanelBuilder(new FormLayout(
                new ColumnSpec[] {
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.UNRELATED_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                },
                new RowSpec[] {
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.UNRELATED_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                }), this);
     
            builder.add(panel1,      cc.xy(1, 1));
            builder.add(panel9,      cc.xy(3, 1));
            builder.add(tabbedPane1, cc.xy(1, 3));
            builder.add(panel2,      cc.xy(3, 3));        
        }
     
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.add(new JScrollPane(new AnotherPanel()));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            f.setVisible(true);
        }
    }
    Mais bon déja c'est un peu plus propre que du vieux nullLayout tout sale

  18. #18
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    De bon matin je viens de regarder ton code sinok,
    Mais c'est juste des scrollbars autour de l'application ça ??????
    je viens de le compiler (apres 30min de recherche d'import)
    mais ça redimensionne pas mes composants en fonction de la taille de la fenêtre, ce coup ci même sur mon portable on peut pas tout voir entierement

  19. #19
    Expert éminent sénior
    Avatar de sinok
    Profil pro
    Inscrit en
    Août 2004
    Messages
    8 765
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Par défaut
    Les scrollbars c'est obligatoire vu taille de ton panel afin qu'il soit un minmum aéré...

    SInon c'est trop dense (il l'est toujours d'ailleurs)

  20. #20
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2006
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Août 2006
    Messages : 41
    Points : 20
    Points
    20
    Par défaut
    Oui c'est sûr ....
    Mais je crois qu'on a perdu l'objectif de vue ...
    Moi à l'origine je demandais comment faire pour qu'on puisse redimensionner ma fenêtre (post compilation) et que ça redimensionne en même temps la totalité de mes composants ... (sans trop refaire tout mon code si possible ^^, une classe qui gére mon objet ihm en paramètre ça serait parfait si ça existe )
    Je veux bien faire des grilles, je croyais que ça m'aurai résolu mon problème mais en fait je suis en train de réaliser que c'est purement esthétique (l'alignement), c'est pas ça que je voulais.

Discussions similaires

  1. redimensionner une jframe et son contenu.
    Par rageice dans le forum Agents de placement/Fenêtres
    Réponses: 4
    Dernier message: 11/07/2007, 17h15
  2. Ne pas redimensionner une JFRAME
    Par sandytarit dans le forum Langage
    Réponses: 2
    Dernier message: 04/01/2007, 21h14
  3. Redimensionnement d'une jFrame
    Par fred978 dans le forum Agents de placement/Fenêtres
    Réponses: 3
    Dernier message: 02/09/2006, 16h19
  4. Redimensionner une JFrame avec valeur limite
    Par ppopov dans le forum Agents de placement/Fenêtres
    Réponses: 11
    Dernier message: 15/01/2006, 20h08
  5. Interdire de redimensionner une JFrame
    Par java_math dans le forum Agents de placement/Fenêtres
    Réponses: 2
    Dernier message: 06/06/2004, 13h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo