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 �m�rite
    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
    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 �clair� 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
    Par d�faut
    Ok merci

    Si tu veux un petit dessin repr�sentant la frame avec les poids, largeur,etc...je te le fais.

  3. #23
    Membre �m�rite
    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
    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 �clair� 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
    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?

  5. #25
    Membre �m�rite
    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
    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 �clair� 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
    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

  7. #27
    Membre �m�rite
    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
    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 �clair� 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
    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.

  9. #29
    Gfx
    Gfx est d�connect�
    Expert confirm�
    Avatar de Gfx
    Inscrit en
    Mai 2005
    Messages
    1 770
    D�tails du profil
    Informations personnelles :
    �ge : 43

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 770
    Par d�faut
    Je maintiens que c'est horrible. Sincerement, Substance est LE look and feel a ne pas utiliser.

  10. #30
    Expert confirm�
    Avatar de sinok
    Profil pro
    Inscrit en
    Ao�t 2004
    Messages
    8 765
    D�tails du profil
    Informations personnelles :
    �ge : 45
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Ao�t 2004
    Messages : 8 765
    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...

  11. #31
    Membre �m�rite
    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
    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 �m�rite
    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
    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("[email protected]");
     
            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 �clair� 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
    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?

  14. #34
    Membre �m�rite
    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
    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 �clair� 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
    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�

  16. #36
    Expert confirm�
    Avatar de sinok
    Profil pro
    Inscrit en
    Ao�t 2004
    Messages
    8 765
    D�tails du profil
    Informations personnelles :
    �ge : 45
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Ao�t 2004
    Messages : 8 765
    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...

  17. #37
    Membre �m�rite
    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
    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 �clair� 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
    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...

  19. #39
    Expert confirm�
    Avatar de sinok
    Profil pro
    Inscrit en
    Ao�t 2004
    Messages
    8 765
    D�tails du profil
    Informations personnelles :
    �ge : 45
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Ao�t 2004
    Messages : 8 765
    Par d�faut
    Oui les L&F platic poss�dent un syst�me de th�mes

  20. #40
    Membre �clair� 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
    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

+ 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