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

Interfaces Graphiques en Java Discussion :

[L&F] encore ..


Sujet :

Interfaces Graphiques en Java

  1. #21
    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
    joli

    hahahah
    je vais essayer de voir comment tu utilise le GridBagLayout. C'est la deuxieme fois que je vois quelqu'un l'utiliser avec des vecteur ou il y a dedans les contraintes...
    pas simple pour debugger

  2. #22
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Ok merci

    Si tu veux un petit dessin représentant la frame avec les poids, largeur,etc...je te le fais.
    Pourquoi ca marche jamais?Vive le café!

  3. #23
    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
    ah ouaip je veut bien

    c'est un peu bizzare votre facon d'utiliser le gb layout mais bon....

    je viens de rapidement faire ce truc. 3 panel dans une frame... si tu sais rapidement convertir mes contrainte en tes tableau pour les 3 panel global.(je les ai mise de maniere detailler) parce que normalement j'aurai ecri juste la moitie de ca. (y'a plein de truc repetitif dans ces contrainte).


    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
     
    import java.awt.Color;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.EventQueue;
     
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.border.Border;
     
    /**
     *  @author bebe
     */
    public class MyFrame extends JFrame {
        private JPanel codeBarrePanel = new JPanel();
        private JPanel modificationsPanel = new JPanel();
        private JPanel descriptionPanel = new JPanel();
     
        private Border lineBorder = BorderFactory.createLineBorder(Color.black, 1);
     
        public MyFrame() {
            initGui();
            setSize(400, 300);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setLocationRelativeTo(getParent());
        }
     
        private void initGui() {
            setLayout(new GridBagLayout());
     
            codeBarrePanel.setBorder(lineBorder);
            modificationsPanel.setBorder(lineBorder);
            descriptionPanel.setBorder(lineBorder);
     
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(5, 5, 5, 5);
     
            gbc.gridx = gbc.gridy = 0;
            gbc.gridwidth = gbc.gridheight = 1;
            gbc.weightx = gbc.weighty = 0.4;
            gbc.anchor = GridBagConstraints.CENTER;
            gbc.fill = GridBagConstraints.BOTH;
            add(codeBarrePanel, gbc);
     
            gbc.gridx = 1;
            gbc.gridy = 0;
            gbc.gridwidth = 1;
            gbc.gridheight = GridBagConstraints.REMAINDER;
            gbc.weightx = 0.6;
            gbc.weighty = 0;
            gbc.anchor = GridBagConstraints.CENTER;
            gbc.fill = GridBagConstraints.BOTH;
            add(modificationsPanel, gbc);
     
            gbc.gridx = 0;
            gbc.gridy = 1;
            gbc.gridwidth = 1;
            gbc.gridheight = GridBagConstraints.REMAINDER;
            gbc.weightx = 0;
            gbc.weighty = 0.6;
            gbc.anchor = GridBagConstraints.CENTER;
            gbc.fill = GridBagConstraints.BOTH;
     
            add(descriptionPanel, gbc);
        }
     
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new MyFrame().setVisible(true);
                }
            });
        }
    }

  4. #24
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Le problème c'est que je ne sais le faire que comme ca, je veux bien essayé de le faire normalement(j'y arrive quand même un peu) ,mais çà risque d'être long...

    PS: Sinon as tu tester le code?à ne le fait peut-être que chez moi...non?
    Pourquoi ca marche jamais?Vive le café!

  5. #25
    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
    non j'ai pas tester pour 2 raison
    - j'ai pas les jar de swingx (trouvable ok )
    - y'a pas de main (je peut le faire aussi)

    allez je vais le tester de suite :-)

  6. #26
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    non j'ai pas tester pour 2 raison
    - j'ai pas les jar de swingx (trouvable ok )
    - y'a pas de main (je peut le faire aussi)

    allez je vais le tester de suite :-)
    Ok, merci beaucoup
    Pourquoi ca marche jamais?Vive le café!

  7. #27
    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
    bon je vient de tester ton code. apres je ne sais combien de ligne en commentaire (DocumentListener pas implementer, ret_nbl() inconnu, inf_fourn aussi inconnu...)

    il y a pour sur des probleme dans tes contrainte et tes min/pref size. quand on joue un peu a redimentioner la fenetre, on le remarque direct.
    tu veux quel proportion pour tes panel?

    combien pour les deux panel sur la gauche 30% et 70% pour le reste?

  8. #28
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Non 50/50,
    Mais là c'est pas ma frame principale en fait donc ne tente pas de "me la faire", à moins que ca soit pour savoir d'où vient le problème.

    Je vais également m'attarder sur les contraintes.
    Pourquoi ca marche jamais?Vive le café!

  9. #29
    Gfx
    Gfx est déconnecté
    Expert éminent
    Avatar de Gfx
    Inscrit en
    Mai 2005
    Messages
    1 770
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 770
    Points : 8 178
    Points
    8 178
    Par défaut
    Je maintiens que c'est horrible. Sincerement, Substance est LE look and feel a ne pas utiliser.
    Romain Guy
    Android - Mon livre - Mon blog

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

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Par défaut
    Citation Envoyé par Gfx
    Je maintiens que c'est horrible. Sincerement, Substance est LE look and feel a ne pas utiliser.
    +1, ça fait un peu pièce rapportée, couleurs criardes...
    Hey, this is mine. That's mine. All this is mine. I'm claiming all this as mine. Except that bit. I don't want that bit. But all the rest of this is mine. Hey, this has been a really good day. I've eaten five times, I've slept six times, and I've made a lot of things mine. Tomorrow, I'm gonna see if I can't have sex with something.

  11. #31
    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
    tu sais nicotine, ce genre de fenetre ca prend pas plus de 10minutes a faire normalement avec de bon outils.
    je te conseille de t'habituer avec un bon ide qui produit du code propre (et pas netbeans).

  12. #32
    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
    tu vois moins de 10 minutes meme :-)

    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
     
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import java.awt.Font;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
     
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.border.Border;
     
    public class MyFrame extends JFrame {
        private JPanel codeBarrePanel = new JPanel();
        private JPanel modificationsPanel = new JPanel();
        private JPanel descriptionPanel = new JPanel();
        private JPanel fournisseurPanel = new JPanel();
     
        private JComboBox fournisseurCombobox = new JComboBox();
     
        private Border lineBorder = BorderFactory.createLineBorder(Color.black, 1);
     
        public MyFrame() {
            initGui();
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            pack();
            setLocationRelativeTo(getParent());
        }
     
        private void initGui() {
            setLayout(new GridBagLayout());
     
            codeBarrePanel.setLayout(new GridBagLayout());
            modificationsPanel.setLayout(new GridBagLayout());
            descriptionPanel.setLayout(new GridBagLayout());
            fournisseurPanel.setLayout(new GridBagLayout());
     
            codeBarrePanel.setBorder(lineBorder);
            modificationsPanel.setBorder(lineBorder);
            descriptionPanel.setBorder(lineBorder);
     
            fournisseurPanel.setBorder(BorderFactory.createTitledBorder("Fournisseur"));
     
            JLabel codeBarreLabel = new JLabel("Code barre:");
            codeBarreLabel.setFont(new Font("Verdana", 1, 15));
            JTextField codeBarreTextField = new JTextField();
            codeBarreTextField.setMinimumSize(new Dimension(100, 20));
            codeBarreTextField.setPreferredSize(new Dimension(150, 20));
     
            JLabel fournisseurLabel = new JLabel("Fournisseur :");
     
            fournisseurCombobox.setPreferredSize(new Dimension(175, 20));
            fournisseurCombobox.setMinimumSize(new Dimension(175, 20));
     
            JLabel quantiteLabel = new JLabel("QuantiteLabel");
     
            JTextField quantiteTextField = new JTextField();
            quantiteTextField.setMinimumSize(new Dimension(175, 20));
            quantiteTextField.setPreferredSize(new Dimension(175, 20));
     
            JLabel neufLabel = new JLabel("Neuf");
            JLabel occasionLabel = new JLabel("Occasion");
            JLabel prixVenteLabel = new JLabel("Prix de vente :");
            JTextField prixVenteTextField = new JTextField();
     
            JCheckBox occasionCheckbox = new JCheckBox();
            occasionCheckbox.setMargin(new Insets(0,0,0,0));
     
            JCheckBox neufCheckbox = new JCheckBox();
            neufCheckbox.setMargin(new Insets(0,0,0,0));
     
            JLabel nomFournisseurLabel = new JLabel("Nom :");
            JLabel lblMadrics = new JLabel("Madrics");
     
            JLabel icon1Label = new JLabel();
            icon1Label.setPreferredSize(new Dimension(36, 36));
            icon1Label.setMinimumSize(new Dimension(36, 36));
            icon1Label.setBorder(lineBorder);
     
            JLabel telCommLabel = new JLabel("Tel Comm:");
            JLabel emailCommLabel = new JLabel("E-mail Comm:");
            JLabel numeroLabel = new JLabel("0123457896");
            JLabel emailLabel = new JLabel("tomtom@wnadoo.fr");
     
            JLabel icon2Label = new JLabel();
            icon2Label.setMinimumSize(new Dimension(36, 36));
            icon2Label.setPreferredSize(new Dimension(36, 36));
            icon2Label.setBorder(lineBorder);
     
            JButton validerBouton = new JButton("Valider");
            JLabel informationArticleLabel = new JLabel("Informations relatives a l'article :");
            informationArticleLabel.setFont(new Font("Verdana", 1, 15));
            JLabel articleNomLabel = new JLabel("Nom:");
            JTextField articleNomTextField = new JTextField();
            articleNomTextField.setPreferredSize(new Dimension(120, 20));
            articleNomTextField.setMinimumSize(new Dimension(120, 20));
            JLabel consoleLabel = new JLabel("Console:");
            JTextField consoleTextField = new JTextField();
            JLabel quantiteNeufLabel = new JLabel("Quantite neuf:");
            JTextField quantiteNeufTextField = new JTextField();
            JLabel quantiteOccasionLabel = new JLabel("Quantite occasion:");
            JTextField quantiteOccasionTextField = new JTextField();
     
            codeBarrePanel.add(codeBarreLabel,
                    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0), 0,
                            0));
            codeBarrePanel.add(codeBarreTextField,
                    new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE,
                            new Insets(0, 0, 0, 5), 0,
                            0));
            this.getContentPane().add(codeBarrePanel,
                    new GridBagConstraints(0, 0, 1, 1, 0.5, 0.3, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(5, 5, 5,
                                    5), 0, 0));
            modificationsPanel.add(fournisseurLabel,
                    new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0),
                            0, 0));
            modificationsPanel.add(fournisseurCombobox,
                    new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.HORIZONTAL,
                            new Insets(5, 0, 0, 5),
                            0, 0));
            modificationsPanel.add(quantiteLabel,
                    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0),
                            0, 0));
            modificationsPanel.add(quantiteTextField,
                    new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.HORIZONTAL,
                            new Insets(5, 0, 0, 5),
                            0, 0));
            modificationsPanel.add(neufLabel,
                    new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0),
                            0, 0));
            modificationsPanel.add(neufCheckbox,
                    new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 0, 0, 0),
                            0, 0));
            modificationsPanel.add(occasionLabel,
                    new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0),
                            0, 0));
            modificationsPanel.add(occasionCheckbox,
                    new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 0, 0, 0),
                            0, 0));
            modificationsPanel.add(prixVenteLabel,
                    new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0),
                            0, 0));
            modificationsPanel.add(prixVenteTextField,
                    new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
                            new Insets(5, 0, 0, 5),
                            0, 0));
            fournisseurPanel.add(nomFournisseurLabel,
                    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(0, 5, 0, 0), 0, 0));
            fournisseurPanel.add(lblMadrics,
                    new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(0, 30, 0, 0), 0, 0));
            fournisseurPanel.add(icon1Label,
                    new GridBagConstraints(2, 0, 1, 2, 1.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE,
                            new Insets(0, 5, 0, 5), 0, 0));
            fournisseurPanel.add(telCommLabel,
                    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(10, 5, 0, 0), 0, 0));
            fournisseurPanel.add(emailCommLabel,
                    new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE,
                            new Insets(10, 5, 0, 0), 0, 0));
            fournisseurPanel.add(numeroLabel,
                    new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(10, 30, 0, 0), 0, 0));
            fournisseurPanel.add(emailLabel,
                    new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE,
                            new Insets(10, 30, 0, 0), 0, 0));
            fournisseurPanel.add(icon2Label,
                    new GridBagConstraints(2, 2, 1, GridBagConstraints.REMAINDER,
                            0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE,
                            new Insets(5, 0, 5, 5), 0, 0));
            modificationsPanel.add(fournisseurPanel,
                    new GridBagConstraints(0, 5, GridBagConstraints.REMAINDER,
                            1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
                            new Insets(20, 10, 0, 5),
                            0, 0));
            modificationsPanel.add(validerBouton,
                    new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE,
                            new Insets(10, 0, 5, 5),
                            0, 0));
            this.getContentPane().add(modificationsPanel,
                    new GridBagConstraints(1, 0, 1, GridBagConstraints.REMAINDER,
                            0.5, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(5, 5, 5,
                                    5), 0, 0));
            descriptionPanel.add(informationArticleLabel,
                    new GridBagConstraints(0, 0, GridBagConstraints.REMAINDER,
                            1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(5, 10, 0, 0), 0,
                            0));
            descriptionPanel.add(articleNomLabel,
                    new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(20, 10, 0, 0),
                            0, 0));
            descriptionPanel.add(articleNomTextField,
                    new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE,
                            new Insets(20, 0, 0, 5), 0,
                            0));
            descriptionPanel.add(consoleLabel,
                    new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(10, 10, 0, 0),
                            0, 0));
            descriptionPanel.add(consoleTextField,
                    new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
                            new Insets(10, 0, 0, 5), 0,
                            0));
            descriptionPanel.add(quantiteNeufLabel,
                    new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(10, 10, 0, 0),
                            0, 0));
            descriptionPanel.add(quantiteOccasionLabel,
                    new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                            new Insets(10, 10, 0, 0),
                            0, 0));
            descriptionPanel.add(quantiteNeufTextField,
                    new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
                            new Insets(10, 0, 0, 5), 0,
                            0));
            descriptionPanel.add(quantiteOccasionTextField,
                    new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
                            new Insets(10, 0, 0, 5), 0,
                            0));
            this.getContentPane().add(descriptionPanel,
                    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.7,
                            GridBagConstraints.CENTER,
                            GridBagConstraints.BOTH,
                            new Insets(5, 5, 5,
                                    5), 0, 0));
        }
     
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new MyFrame().setVisible(true);
                }
            });
        }
    }

  13. #33
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Ok merci,

    Il est vrai que ca me prend plus de 10min mais pas beacoup plus.
    Sinon que me conseilles tu comme IDE pour me faciliter la vie?

    A propos des lnf, je veux bien en utilisé un autre, si la majorité l'emporte pour me dire qu'il est horrible...mais j'en cherche un sous BSD ou LGPL donc je pense que ca sera déjà plus difficile à trouver non?
    Pourquoi ca marche jamais?Vive le café!

  14. #34
    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
    Demetra (tu attendais une autre reponse?)

    plus serieusement,
    netbeans produit un code horrible. j'aime pas les outil qui rajoute des balise dans le code...

    les bon plugins pour faire des gui avec eclipse sont payant.faut voir si ca a pas changer, j'ai tester il ya plusieur mois deja.

    jbuilder ca va mais c'est un peu depasser.

    jdev ca va encore assez bien. le support des layouts standard est assez bon.

    c'est a toi de voir celui avec lequel tu aime bosser.

    les 2 bon l&f que je connais sont payant (Alloy et Jide)
    sinon les gratuis qui font "profesionel", tu a Kunstoff (-), Metouia(+/-) et
    JGoodies Look (+)

  15. #35
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Ok merci pour la réponse,

    Le code que je t'ai fait voir, je l'ai fais entierement, rien n'a été ajouté de la part d'un ide(j'utilisais netbean pendant un temps mais je repris un ide tout simple il y a quelque temps).
    Je n'ai encore jamais essayé jdev, je vais aller voir de ce coté

    Sinon pour le lnf, je voudrais un truc pro mais quie ne soit pas non plus trop "austère". Je vais allez voir les JGoodies pour trouver mon bonheur je pense.
    Mais j'irai d'abord voir Kunstoff et Metouia que je ne connais pas

    Encore merci.

    PS: je vais quand même ecouter Gfx pour le lnf, il doit toucher un minimun à ce niveau là
    Pourquoi ca marche jamais?Vive le café!

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

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Par défaut
    En même temps pour demetra il faut pouvoir se payer la license IntelliJ, et bon, sortir 500$ comme ça directement....
    Et sinon au niveau des L&F gratuits qui valent la peine au niveau de la consistance, tu as avant tout le PlasticXPLookAndFeel JGoodies (ou le Plastic3DLookAndFeel...) qui valent la peine, Nimrof qui avec un peu plus de travail supplémentaire (en même temps je critique mais je ne fais rien pour que ça avance) pourrais donner quelquechose de pas mauvais de tout, sinon kunstoof et metouia peuvent fairent l'affaire mais moins...
    Hey, this is mine. That's mine. All this is mine. I'm claiming all this as mine. Except that bit. I don't want that bit. But all the rest of this is mine. Hey, this has been a really good day. I've eaten five times, I've slept six times, and I've made a lot of things mine. Tomorrow, I'm gonna see if I can't have sex with something.

  17. #37
    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
    Citation Envoyé par sinok
    En même temps pour demetra il faut pouvoir se payer la license IntelliJ, et bon, sortir 500$ comme ça directement....
    gratuit si tu participe a un projet open source.
    beaucoup moin que 500€ si t'es etudiant.

  18. #38
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Ok je vais me lancer sur le PlasticXPLookAndFeel et je mettrai 2 screen avant/apres.

    Je crois aussi que l'on peut changer de "thème" dans ce lnf?

    Je vais essayer de faire çà pendant que je suis au boulot...
    Pourquoi ca marche jamais?Vive le café!

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

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Par défaut
    Oui les L&F platic possèdent un système de thèmes
    Hey, this is mine. That's mine. All this is mine. I'm claiming all this as mine. Except that bit. I don't want that bit. But all the rest of this is mine. Hey, this has been a really good day. I've eaten five times, I've slept six times, and I've made a lot of things mine. Tomorrow, I'm gonna see if I can't have sex with something.

  20. #40
    Membre averti Avatar de nicotine002
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    577
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 577
    Points : 409
    Points
    409
    Par défaut
    Je dois vraiment avoir mauvais goût quand même pour aimer le lnf Substance...je me remet au boulot de suite
    Pourquoi ca marche jamais?Vive le café!

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 4 PremièrePremière 1234 DernièreDernière

Discussions similaires

  1. Programmer encore en VB 6 c'est pas bien ? Pourquoi ?
    Par Nektanebos dans le forum Débats sur le développement - Le Best Of
    Réponses: 85
    Dernier message: 10/03/2009, 14h43
  2. TEdit (encore)
    Par dj.motte dans le forum C++Builder
    Réponses: 5
    Dernier message: 23/12/2002, 19h02
  3. TPalette (encore)
    Par Flipper dans le forum Langage
    Réponses: 3
    Dernier message: 28/11/2002, 23h45

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