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
| import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.BoxLayout;
import javax.swing.JTextPane;
import javax.swing.JSeparator;
import java.awt.Color;
import java.awt.Toolkit;
import java.awt.Font;
import javax.swing.WindowConstants;
public class Erreur extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JTextPane zone_excuse = null;
private JTextPane zone_detail = null;
private JTextPane zone_exception = null;
private JSeparator jSeparator = null;
private JSeparator jSeparator1 = null;
private JTextPane detail = null;
private JTextPane exception = null;
/**
* This is the default constructor
*/
public Erreur() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(525, 220);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/Icones/Bayonne.png")));
this.setBackground(Color.white);
this.setContentPane(getJContentPane());
this.setTitle("ERREUR : Veilleur de messagerie");
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BoxLayout(getJContentPane(), BoxLayout.Y_AXIS));
jContentPane.add(getZone_excuse(), null);
jContentPane.add(getJSeparator(), null);
jContentPane.add(getDetail(), null);
jContentPane.add(getZone_detail(), null);
jContentPane.add(getJSeparator1(), null);
jContentPane.add(getException(), null);
jContentPane.add(getZone_exception(), null);
}
return jContentPane;
}
/**
* This method initializes zone_excuse
*
* @return javax.swing.JTextPane
*/
private JTextPane getZone_excuse() {
if (zone_excuse == null) {
zone_excuse = new JTextPane();
zone_excuse.setEditable(false);
zone_excuse.setText("Le veilleur de messagerie a rencontré une erreur critique. Veuillez nous excuser pour le dérangement occasionné par cette erreur.");
zone_excuse.setFont(new Font("Dialog", Font.BOLD, 12));
zone_excuse.setBackground(new Color(255, 255, 204));
}
return zone_excuse;
}
public void set_Zone_excuse_text(String new_value) {
zone_excuse.setText(new_value);
}
/**
* This method initializes zone_detail
*
* @return javax.swing.JTextPane
*/
private JTextPane getZone_detail() {
if (zone_detail == null) {
zone_detail = new JTextPane();
zone_detail.setEditable(false);
zone_detail.setFont(new Font("Dialog", Font.PLAIN, 10));
}
return zone_detail;
}
public void set_Zone_detail_text(String new_value) {
zone_detail.setText(new_value);
}
/**
* This method initializes zone_exception
*
* @return javax.swing.JTextPane
*/
private JTextPane getZone_exception() {
if (zone_exception == null) {
zone_exception = new JTextPane();
zone_exception.setEditable(false);
zone_exception.setFont(new Font("Dialog", Font.PLAIN, 10));
}
return zone_exception;
}
public void set_Zone_exception_text(String new_value) {
zone_exception.setText(new_value);
}
/**
* This method initializes jSeparator
*
* @return javax.swing.JSeparator
*/
private JSeparator getJSeparator() {
if (jSeparator == null) {
jSeparator = new JSeparator();
}
return jSeparator;
}
/**
* This method initializes jSeparator1
*
* @return javax.swing.JSeparator
*/
private JSeparator getJSeparator1() {
if (jSeparator1 == null) {
jSeparator1 = new JSeparator();
}
return jSeparator1;
}
/**
* This method initializes detail
*
* @return javax.swing.JTextPane
*/
private JTextPane getDetail() {
if (detail == null) {
detail = new JTextPane();
detail.setEditable(false);
detail.setFont(new Font("Dialog", Font.BOLD, 12));
detail.setText("Détails et solutions :");
}
return detail;
}
/**
* This method initializes exception
*
* @return javax.swing.JTextPane
*/
private JTextPane getException() {
if (exception == null) {
exception = new JTextPane();
exception.setEditable(false);
exception.setFont(new Font("Dialog", Font.BOLD, 12));
exception.setText("Message système à communiquer au service informatique :");
}
return exception;
}
} // @jve:decl-index=0:visual-constraint="10,10" |
Partager