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
| import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import java.awt.GridBagConstraints;
import javax.swing.JTextField;
import javax.swing.JDesktopPane;
import javax.swing.JToggleButton;
import java.awt.Rectangle;
import java.io.*;
import javax.swing.JCheckBox;
import javax.swing.JSplitPane;
import javax.swing.JInternalFrame;
import java.awt.List;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JSlider;
import javax.swing.JApplet;
import java.awt.Font;
import java.awt.ComponentOrientation;
import java.awt.event.KeyEvent;
import java.awt.Color;
import java.awt.Toolkit;
public class iHM_Princi{
private JFrame jFrame = null; // @jve:decl-index=0:visual-constraint="127,54"
private JMenuBar jJMenuBar = null;
private JMenu jMenu = null;
private JMenuItem jMenuItem = null;
private JMenu jMenu1 = null;
private JMenu jMenu2 = null;
private JMenuItem jMenuItem1 = null;
private JDesktopPane jDesktopPane = null;
private JComboBox jComboBox_TrueDir = null;
private JComboBox jComboBox_MAJDir = null;
private JButton jButton_Parcourir1 = null;
private JButton jButton_Parcourir2 = null;
private JLabel jLabel_titre = null;
private JLabel jLabel_Source = null;
private JLabel jLabel_Cible = null;
private JLabel jLabel_Filtre = null;
private JTextField jTextField_filtre = null;
private JButton jButton_Validation = null;
/***********************************************************************************************************/
/**
* This method initializes jFrame
*
* @return javax.swing.JFrame
*/
private JFrame getJFrame() {
if (jFrame == null) {
jFrame = new JFrame();
jFrame.setSize(new Dimension(780, 467));
jFrame.setTitle("Composants à mettre à jour");
jFrame.setResizable(false);
jFrame.setFont(new Font("Dialog", Font.PLAIN, 12));
jFrame.setIconImage(Toolkit.getDefaultToolkit().getImage("C:/Documents and Settings/GUINEE_F/Mes documents/SIDES.jpg"));
jFrame.setVisible(true);
jFrame.setContentPane(getJDesktopPane());
jFrame.setJMenuBar(getJJMenuBar());
}
return jFrame;
}
/**
* This method initializes jJMenuBar
*
* @return javax.swing.JMenuBar
*/
private JMenuBar getJJMenuBar() {
if (jJMenuBar == null) {
jJMenuBar = new JMenuBar();
jJMenuBar.add(getJMenu());
jJMenuBar.add(getJMenu1());
jJMenuBar.add(getJMenu2());
}
return jJMenuBar;
}
/**
* This method initializes jMenu
*
* @return javax.swing.JMenu
*/
private JMenu getJMenu() {
if (jMenu == null) {
jMenu = new JMenu();
jMenu.setText("Fichier");
jMenu.add(getJMenuItem());
}
return jMenu;
}
/**
* This method initializes jMenuItem
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getJMenuItem() {
if (jMenuItem == null) {
jMenuItem = new JMenuItem();
}
return jMenuItem;
}
/**
* This method initializes jMenu1
*
* @return javax.swing.JMenu
*/
private JMenu getJMenu1() {
if (jMenu1 == null) {
jMenu1 = new JMenu();
jMenu1.setText("Edition");
jMenu1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent e) {
System.out.println("mouseClicked()"); // TODO Auto-generated Event stub mouseClicked()
}
});
}
return jMenu1;
}
/**
* This method initializes jMenu2
*
* @return javax.swing.JMenu
*/
private JMenu getJMenu2() {
if (jMenu2 == null) {
jMenu2 = new JMenu();
jMenu2.setText("Help");
jMenu2.add(getJMenuItem1());
}
return jMenu2;
}
/**
* This method initializes jMenuItem1
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getJMenuItem1() {
if (jMenuItem1 == null) {
jMenuItem1 = new JMenuItem();
jMenuItem1.setText("A propos de");
}
return jMenuItem1;
}
/**
* This method initializes jDesktopPane
*
* @return javax.swing.JDesktopPane
*/
private JDesktopPane getJDesktopPane() {
if (jDesktopPane == null) {
jLabel_Filtre = new JLabel();
jLabel_Filtre.setBounds(new Rectangle(108, 147, 39, 16));
jLabel_Filtre.setText("Filtre");
jLabel_Cible = new JLabel();
jLabel_Cible.setBounds(new Rectangle(109, 111, 41, 16));
jLabel_Cible.setText("Cible");
jLabel_Source = new JLabel();
jLabel_Source.setBounds(new Rectangle(109, 69, 58, 22));
jLabel_Source.setText("Source");
jLabel_titre = new JLabel();
jLabel_titre.setBounds(new Rectangle(45, 28, 662, 19));
jLabel_titre.setFont(new Font("Dialog", Font.BOLD, 12));
jLabel_titre.setComponentOrientation(ComponentOrientation.UNKNOWN);
jLabel_titre.setDisplayedMnemonic(KeyEvent.VK_UNDEFINED);
jLabel_titre.setText("Dossiers à comparer");
jDesktopPane = new JDesktopPane();
jDesktopPane.setBackground(new Color(215, 217, 228));
jDesktopPane.add(getJComboBox_TrueDir(), null);
jDesktopPane.add(getJComboBox_MAJDir(), null);
jDesktopPane.add(getJButton_Parcourir1(), null);
jDesktopPane.add(getJButton_Parcourir2(), null);
jDesktopPane.add(jLabel_titre, null);
jDesktopPane.add(jLabel_Source, null);
jDesktopPane.add(jLabel_Cible, null);
jDesktopPane.add(jLabel_Filtre, null);
jDesktopPane.add(getJTextField_filtre(), null);
jDesktopPane.add(getJButton_Validation(), null);
}
return jDesktopPane;
}
/**
* This method initializes jComboBox_TrueDir
*
* @return javax.swing.JComboBox
*/
private JComboBox getJComboBox_TrueDir() {
if (jComboBox_TrueDir == null) {
jComboBox_TrueDir = new JComboBox();
jComboBox_TrueDir.setBounds(new Rectangle(161, 69, 422, 24));
}
return jComboBox_TrueDir;
}
/**
* This method initializes jComboBox_MAJDir
*
* @return javax.swing.JComboBox
*/
private JComboBox getJComboBox_MAJDir() {
if (jComboBox_MAJDir == null) {
jComboBox_MAJDir = new JComboBox();
jComboBox_MAJDir.setBounds(new Rectangle(161, 109, 423, 23));
jComboBox_MAJDir.setFont(new Font("Dialog", Font.BOLD, 8));
}
return jComboBox_MAJDir;
}
/**
* This method initializes jButton_Parcourir1
*
* @return javax.swing.JButton
*/
private JButton getJButton_Parcourir1() {
if (jButton_Parcourir1 == null) {
jButton_Parcourir1 = new JButton();
jButton_Parcourir1.setBounds(new Rectangle(602, 71, 103, 23));
jButton_Parcourir1.setText("Parcourir");
}
return jButton_Parcourir1;
}
/**
* This method initializes jButton_Parcourir2
*
* @return javax.swing.JButton
*/
private JButton getJButton_Parcourir2() {
if (jButton_Parcourir2 == null) {
jButton_Parcourir2 = new JButton();
jButton_Parcourir2.setBounds(new Rectangle(602, 109, 103, 23));
jButton_Parcourir2.setText("Parcourir");
}
return jButton_Parcourir2;
}
/**
* This method initializes jTextField_filtre
*
* @return javax.swing.JTextField
*/
private JTextField getJTextField_filtre() {
if (jTextField_filtre == null) {
jTextField_filtre = new JTextField();
jTextField_filtre.setBounds(new Rectangle(161, 145, 424, 23));
}
return jTextField_filtre;
}
/**
* This method initializes jButton_Validation
*
* @return javax.swing.JButton
*/
private JButton getJButton_Validation() {
if (jButton_Validation == null) {
jButton_Validation = new JButton();
jButton_Validation.setBounds(new Rectangle(252, 196, 240, 69));
jButton_Validation.setText("OK");
jButton_Validation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
jLabel_titre.setVisible(false);
}
});
}
return jButton_Validation;
}
public void initialise(){
}
/*********************************************************************************************************/
} |
Partager