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

correction bug interface

parent 0152150a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -60,7 +60,7 @@ public class Shukan
// Preparing the window closing button and adding a confirmation dialog
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
int choix = JOptionPane.showConfirmDialog(frame, "Êtes-vous sûr de vouloir quitter sans sauvegarder ?", "Quitter", JOptionPane.YES_NO_OPTION);
int choix = JOptionPane.showConfirmDialog(frame, "Êtes-vous sûr de vouloir quitter ?", "Quitter", JOptionPane.YES_NO_OPTION);
if (choix == JOptionPane.YES_OPTION) {
frame.dispose();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
......
......@@ -146,6 +146,8 @@ public class ShukanView extends JPanel
g2.setFont (new Font ("Helvetica", 0, 12));
fontMetrics = g2.getFontMetrics ();
fontHeight = fontMetrics.getAscent ();
g2.setColor(BACK_COLOR2);
drawBox (g2, appliWidth - w, appliHeight - h, w, h);
int i;
for (i = 0; i <= nbModules + 2; i++)
{
......
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