1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
public void paintComponent(Graphics g2) {
String racine=null;
super.paintComponent(g2);
XmlLogCol result = new XmlLogCol();
result.unSerialize("C:\\Documents and Settings\\karnan\\My Documents\\RECUPERER_DEPUIS_PROJECT31\\Projet_interface_graphique_java\\gemprojetvincent\\Gemlca\\test2.obj");
Iterator i = result.iterator();
racine = new String(((XmlLogLine)i.next()).getLog_method());
Shape s=new Rectangle();// creer un Shape rectangle pour tester avec la fontion draw
Graphics2D g = (Graphics2D) g2;
g.setColor(Color.blue);
g.drawRoundRect(10, 10, 150, 30, 15, 15);
g.draw(s);// cette fonction na pas dincidence: elle ne fait rien....que doit elle faire?
g.drawString(racine, 30, 30);// cest un test...ne pas tenir compte
|