Ro00
-
27 févr. 2021 à 21:56
Whismeril
Messages postés18416Date d'inscriptionmardi 11 mars 2003StatutContributeurDernière intervention 1 juin 2023
-
28 févr. 2021 à 11:51
hi, i tried to create an interface were the user inserts thepath of the file to analyze in jTextField1 & when jButton1 clicked the process starts ...but i find a problem of Nullpointer at line 175 !
package compilateur;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JToggleButton;
import javax.swing.JButton;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.io.*;
import java.io.FileInputStream;
public class compilateur extends javax.swing.JFrame {
JPanel contentPane;
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JTextField jTextField1=new JTextField();
JButton jButton1 = new JButton();
JScrollPane jScrollPane1 = new JScrollPane();
JScrollPane jScrollPane2 = new JScrollPane();
JTextArea jTextArea1 = new JTextArea();
JTextArea jTextArea2 = new JTextArea();
public compilateur(){
try{
setDefaultCloseOperation(EXIT_ON_CLOSE);
jbinit();
}catch(Exception e){
e.printStackTrace();
Whismeril
Messages postés18416Date d'inscriptionmardi 11 mars 2003StatutContributeurDernière intervention 1 juin 2023624 Modifié le 28 févr. 2021 à 11:51
Bonjour
CodeS SourceS est un forum francophone, soit
tu écris en français
tu vas poster ta question sur le forum anglophone du groupe ccm.net