Correction Bug avec WindowBuilder

This commit is contained in:
pablo rodriguez 2022-05-25 09:30:49 +02:00
parent ce81774df8
commit 4009b01d22
14 changed files with 145 additions and 189 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,9 +11,12 @@ import javax.swing.SwingConstants;
import MEPTL.commandes;
@SuppressWarnings("serial")
public class about extends JFrame {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Launch the application.
@ -61,12 +64,12 @@ public class about extends JFrame{
lblNewLabelTitre.setIcon(img2);
lblNewLabelTitre.setHorizontalAlignment(SwingConstants.LEFT);
lblNewLabelTitre.setFont(new Font("Pacifico", Font.PLAIN, 26));
lblNewLabelTitre.setBounds(10, 10, 357, 69);
lblNewLabelTitre.setBounds(10, 10, 357, 90);
contentPane.add(lblNewLabelTitre);
JLabel lblNewLabelVersion = new JLabel("<HTML><B><U>Version :</U></B> " + commandes.version + "</HTML>");
lblNewLabelVersion.setFont(new Font("Tahoma", Font.PLAIN, 16));
lblNewLabelVersion.setBounds(20, 80, 240, 20);
lblNewLabelVersion.setBounds(20, 90, 240, 20);
contentPane.add(lblNewLabelVersion);
JLabel lblNewLabelAnnee = new JLabel("<HTML><B><U>Année :</U></B> " + commandes.Annee + "</HTML>");
@ -106,4 +109,5 @@ public class about extends JFrame{
}
}

View File

@ -1,9 +1,25 @@
package app;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.JToolBar;
import javax.swing.border.EmptyBorder;
import javax.xml.parsers.ParserConfigurationException;
@ -12,31 +28,10 @@ import org.xml.sax.SAXException;
import MEPTL.commandes;
import MEPTL.feedbacks;
import MEPTL.meptl;
import MEPTL.verificationFichierAnalyse;
import cXML.Run;
import cXML.node;
import net.lingala.zip4j.exception.ZipException;
import javax.swing.JFileChooser;
import javax.swing.JToolBar;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.awt.event.ActionEvent;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import javax.swing.JCheckBox;
import java.awt.Insets;
import java.awt.Font;
import javax.swing.JSeparator;
import javax.swing.JTextPane;
import java.awt.Color;
import java.awt.Toolkit;
@SuppressWarnings("unused")
public class evaluate extends JFrame {
/**
@ -362,4 +357,5 @@ public class evaluate extends JFrame {
}
}

View File

@ -5,7 +5,6 @@ import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
@ -16,14 +15,15 @@ import javax.swing.filechooser.FileNameExtensionFilter;
import MEPTL.commandes;
import MEPTL.meptl;
import MEPTL.verificationFichierAnalyse;
import cXML.Run;
import cXML.node;
@SuppressWarnings("serial")
public class filechooserXML extends JFileChooser {
/**
*
*/
private static final long serialVersionUID = 1L;
public filechooserXML() {
setDialogTitle("Choisir un fichier d'analyse");
@ -136,5 +136,4 @@ public class filechooserXML extends JFileChooser{
return true;
}
}

View File

@ -1,7 +1,9 @@
package app;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@ -13,14 +15,15 @@ import javax.swing.SwingConstants;
import MEPTL.commandes;
import java.awt.Color;
import java.awt.Toolkit;
@SuppressWarnings("serial")
public class mainApp extends JFrame implements ActionListener{
//public static final String LOOK_AND_FEEL_1 = "javax.swing.plaf.nimbus.NimbusLookAndFeel";
/**
*
*/
private static final long serialVersionUID = 1L;
private JFrame frmEvalwriter;
// public static JFrame Creer ;
@ -133,8 +136,5 @@ public class mainApp extends JFrame implements ActionListener {
}
}
}

View File

@ -1,43 +0,0 @@
package app;
import java.awt.EventQueue;
import javax.swing.JFrame;
public class test {
private JFrame frame;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
test window = new test();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public test() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 450, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}