Skip to content
Snippets Groups Projects
Commit a6536959 authored by PIQUEREZ Corentin's avatar PIQUEREZ Corentin
Browse files

rajout boutons dans barre outils

parent bec648ca
Branches
No related tags found
No related merge requests found
......@@ -30,35 +30,7 @@ public class ShukanViewBar extends JPanel {
}
}
/* @Override
public void paintComponent(Graphics g) {
super.paintComponents(g);
// load images
try{
for(int i = 0; i<imagesName.length; i++){
Image im = ImageIO.read(new File("data/images/"+imagesName[i]+imagesExtension));
g.drawImage(im, i*(100), 0, this);
}
}
catch(Exception e){System.out.println("Image manquante");}
}*/
public int getHeight(){return height;}
public static void main(String args[]){
ShukanData data = new ShukanData ();
ShukanIO io = new ShukanIO (data);
EventQueue.invokeLater(new Runnable() {
public void run() {
JFrame f = new JFrame("esssai");
ShukanViewBar s = new ShukanViewBar (io,data, 90);
f.setSize(1000, s.getHeight());
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.add(s);
f.setVisible(true);
}
});
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment