Commit e6fb6f2a authored by pfreon's avatar pfreon
Browse files

Adding Climprod ico + FAO & IRD logos to Help->About

Adding FAO & IRD logos to Help->About
Climprod icon size reduced
parent 81a822cb
......@@ -14,12 +14,13 @@ public class CadreMain_AboutBox extends JDialog implements ActionListener {
JPanel jPanImage = new JPanel();
JPanel jPanText = new JPanel();
JButton cmdOK = new JButton();
JLabel imageIcone = new JLabel();
ImageIcon imageIcon;
JLabel imageIconeClimprod = new JLabel();
JLabel imageIconeIRD = new JLabel();
JLabel imageIconeFAO = new JLabel();
ImageIcon imageIconClimprod;
ImageIcon imageLogoIRD;
ImageIcon imageLogoFAO;
BorderLayout borderLayout1 = new BorderLayout();
BorderLayout borderLayout2 = new BorderLayout();
FlowLayout flowLayout1 = new FlowLayout();
......@@ -28,6 +29,8 @@ public class CadreMain_AboutBox extends JDialog implements ActionListener {
// String product = "Climprod";
// String version = "1.0";
JTextArea jTextAreaCopyRight = new JTextArea();
public CadreMain_AboutBox(Frame parent) {
super(parent);
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
......@@ -37,14 +40,18 @@ public class CadreMain_AboutBox extends JDialog implements ActionListener {
catch(Exception e) {
e.printStackTrace();
}
imageIcone.setIcon(imageIcon);
imageIconeClimprod.setIcon(imageIconClimprod);
imageIconeIRD.setIcon(imageLogoIRD);
imageIconeFAO.setIcon(imageLogoFAO);
pack();
}
private void jbInit() throws Exception {
imageIcon = new ImageIcon(getClass().getResource("resources/images/Climprod.ico"));
imageIconClimprod = new ImageIcon(getClass().getResource("resources/images/Climprod2.jpg")); // Avant .ico
imageLogoIRD = new ImageIcon(getClass().getResource("resources/images/logo_IRD.jpg"));
imageLogoFAO = new ImageIcon(getClass().getResource("resources/images/logo_FAO.jpg"));
this.setTitle("About");
setResizable(false);
setResizable(true); // Avant false 2021
panel1.setLayout(borderLayout1);
jPanAbout.setLayout(borderLayout2);
jPanCmd.setLayout(flowLayout1);
......@@ -109,13 +116,16 @@ public class CadreMain_AboutBox extends JDialog implements ActionListener {
"available on related topics.");
jTextAreaCopyRight.setAutoscrolls(true);
setResizable(false);
setResizable(true);
jTextAreaCopyRight.setEditable(false);
jTextAreaCopyRight.setMargin(new Insets(5, 5, 5, 5));
jTextAreaCopyRight.setMargin(new Insets(5, 5, 5, 0));
jTextAreaCopyRight.setFont(new java.awt.Font("Serif", 0, 13)); // Fenetre Help ->About du menu principal. Avant 0, 11. Modif 2020.
jPanText.setLayout(flowLayout1);
cmdOK.addActionListener(this);
jPanImage.add(imageIcone, null);
jPanImage.add(imageIconeClimprod, null);
jPanImage.add(imageIconeFAO, null);
jPanImage.add(imageIconeIRD, null);
jPanAbout.add(jPanImage, BorderLayout.NORTH);
jPanAbout.add(jPanImage, BorderLayout.WEST);
jPanImage.add(jTextAreaCopyRight, null);
this.getContentPane().add(panel1, null);
......
// Fenetre Help ->References du menu principal pour présenter copyright FAO-IRD.
// Fenetre Help ->References du menu principal pour présenter la référence du logiciel pour citation.
package fr.ird.climprod;
import java.awt.*;
......
......@@ -52,7 +52,7 @@ public class Global {
static int stock_divise; // Is the single stock subdivided into various geographical sub-stocks (all must be exploited by the fleet)
static int unite_standardisee; // Is the fishing effort unit standardized and is the CPUE proportional to abundance
static int effet_delais_abundance_negligeable; // Do time-lags and deviations from the stable age structure have negligible effects on production rate
//static String pdf$ = "resources/Freon_et_al_FAO_Manuel_Climprod_1993.pdf"; // Name of the pdf file of Help menu
static String pdf$ = "resources/Freon_et_al_FAO_Manuel_Climprod_1993.pdf"; // Name of the pdf file of Help menu
/**
* ******* Stabilite de la modélisation *****
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment