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
|
public class PanelReponse extends javax.swing.JPanel {
public JPanel panelReponse;
public JPanel panelReponseOuverte;
public JLabel labelReponseOuverte;
private JTextArea jtaValeurReponseOuverte;
public JScrollPane panelJtaValeurReponseOuverte;
private JLabel labelValeurReponse;
public JLabel labelReponse;
private JButton btnReset;
public JPanel panelBoutonRestet;
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.getContentPane().add(new PanelReponse());
frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
public PanelReponse() {
super();
initGUI();
}
private void initGUI() {
try {
BorderLayout thisLayout = new BorderLayout();
this.setLayout(thisLayout);
this.setPreferredSize(new java.awt.Dimension(629, 84));
this.setSize(657, 84);
{
panelReponse = new JPanel();
BorderLayout panelReponseLayout = new BorderLayout();
this.add(panelReponse, BorderLayout.NORTH);
panelReponse.setLayout(panelReponseLayout);
panelReponse.setPreferredSize(new java.awt.Dimension(723, 21));
{
labelValeurReponse = new JLabel();
panelReponse.add(labelValeurReponse, BorderLayout.CENTER);
labelValeurReponse.setText("Valeur Reponse");
labelValeurReponse.setBackground(Color.white);
}
{
labelReponse = new JLabel();
panelReponse.add(labelReponse, BorderLayout.WEST);
labelReponse.setText("Réponse :");
labelReponse.setPreferredSize(new java.awt.Dimension(67, 21));
}
}
{
panelBoutonRestet = new JPanel();
this.add(panelBoutonRestet, BorderLayout.EAST);
panelBoutonRestet.setPreferredSize(new java.awt.Dimension(62, 156));
{
btnReset = new JButton();
panelBoutonRestet.add(btnReset);
btnReset.setText("Reset");
btnReset.setPreferredSize(new java.awt.Dimension(62, 51));
}
}
{
panelReponseOuverte = new JPanel();
BorderLayout panelReponseOuverteLayout = new BorderLayout();
panelReponseOuverte.setLayout(panelReponseOuverteLayout);
this.add(panelReponseOuverte, BorderLayout.CENTER);
{
labelReponseOuverte = new JLabel();
panelReponseOuverte.add(labelReponseOuverte, BorderLayout.WEST);
labelReponseOuverte.setText("Valeur");
labelReponseOuverte.setPreferredSize(new java.awt.Dimension(45, 156));
}
{
panelJtaValeurReponseOuverte = new JScrollPane();
panelReponseOuverte.add(panelJtaValeurReponseOuverte, BorderLayout.CENTER);
panelJtaValeurReponseOuverte.setPreferredSize(new java.awt.Dimension(521, 63));
{
jtaValeurReponseOuverte = new JTextArea();
panelJtaValeurReponseOuverte
.setViewportView(getJtaValeurReponseOuverte());
jtaValeurReponseOuverte.setPreferredSize(new java.awt.Dimension(540, 58));
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
} |
Partager