Skip to content
Snippets Groups Projects
Commit 1db9d695 authored by CHEVALIER Noemy's avatar CHEVALIER Noemy
Browse files

Création des semestres

parent b0eba9b4
No related branches found
No related tags found
No related merge requests found
......@@ -2,16 +2,15 @@ package shukan;
import javax.swing.*;
import javax.swing.border.LineBorder;
import javax.swing.border.MatteBorder;
import java.awt.*;
/** barre d'outils de Shukan */
/** Barre d'outils de Shukan */
public class ShukanViewBar extends JPanel {
/** Noms des fichiers d'images pour les boutons de la barre d'outils */
private String[] imagesName = {"save", "back", "plus", "delete", "left", "right", "export", "parameter"};
private String[] imagesName = {"save", "back", "plus", "delete", "left", "right","S+","S-","export", "parameter"};
/** Boutons de la barre d'outils */
protected JButton buttons[] = new JButton[8];
protected JButton buttons[] = new JButton[10];
/** Extension des images */
private String imagesExtension = ".png";
/** Hauteur en pixels de la barre d'outils */
......@@ -23,6 +22,7 @@ public class ShukanViewBar extends JPanel {
public ShukanViewBar(int height) {
p_left = new JPanel();
p_right = new JPanel();
this.height = height;
for (int i = 0; i < imagesName.length; i++) {
......@@ -31,13 +31,12 @@ public class ShukanViewBar extends JPanel {
buttons[i].setBackground(Color.WHITE);
buttons[i].setBorder(new LineBorder(Color.WHITE));
if (i<imagesName.length-2)
if (i < imagesName.length - 4)
p_left.add(buttons[i]);
else
p_right.add(buttons[i]);
}
p_left.setBackground(Color.WHITE);
p_right.setBackground(Color.WHITE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment