No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
So i have this input.txt file, and there are 5 entries in it, I want to take each entry( in the format of Image1.jpg, Image2,jpg, etc) and store it into an arraylist. Then use java GUI to display each image by clicking a button, from image1 to image5. First I … |
|
I want to read an input from a text file: Test1.jpg Test2.jpg Test3.jpg each name is separated by an empty line, i want to get all the names and store them into a arraylist. I am using while((line=inputFile.readLine())!=null) will this work because when it hits the empty line, it will … |
|
How do I write an event listener that displays an image when I click the upload button? so far i have [CODE] jButton1 = new javax.swing.JButton(); jButton1.setText("Upload"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } });[/CODE] and then [CODE]//the LOAD button for loading the file private void jButton1ActionPerformed(java.awt.event.ActionEvent … |