Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~4K People Reached
Favorite Forums

12 Posted Topics

Member Avatar for charlieruns

I am trying to read all the files in a folder and for some reason it keeps reading only 1 file over and over again... [CODE]private void openFile() throws IOException { status.setText("Adding Photos"); File file; JFileChooser fileChoose = new JFileChooser(new File("charlie/photo/")); int success = fileChoose.showOpenDialog(this); if (success == JFileChooser.APPROVE_OPTION) { …

Member Avatar for charlieruns
0
108
Member Avatar for charlieruns

How can you get a JList to simple display a one word string. I know the method of JList.setListData(Object[]); I have an object[], but it is multiple lines of information and it looks weird in the list display. How can I get an Object[] to simply display the first line …

Member Avatar for charlieruns
0
92
Member Avatar for charlieruns

I need to get my jlist to simply display a one word subject. When I do it the way below, it obviously prints: "subject: blah location: blah date: blah path: blah." How can I get to set an JList to simply display the string title of the picture rather than …

Member Avatar for charlieruns
0
75
Member Avatar for charlieruns

I have a gui with an ADD, EDIT, and DELETE button. All of which are not active until you click their respective name from the menu bar. Once I click on the DELETE key in the menu, it actives my delete button fine, but when I select an object from …

Member Avatar for charlieruns
0
70
Member Avatar for luvthug

Im not to sure (beginner), but can you just do the following: [code] File file = new File("outfile.txt") # String result = shorthand(line); # System.out.println(result); # PrintWriter pw = new PrintWriter(file); # pw.println(result); # pw.close(); [/code]

Member Avatar for charlieruns
0
198
Member Avatar for charlieruns

My project was already due, and incomplete but I would still like to better understand a few things. I have three classes. A Photo Class, PhotoAlbum Class, and a CommandLineMenu class. Each photo has a subject, location, date, and path. the PhotoAlbum is an array of different photo objects. I …

Member Avatar for javaAddict
0
126
Member Avatar for jordanhagen

So you have to load the information of the people from a file? Do you have a file with peoples information already?

Member Avatar for javaAddict
0
1K
Member Avatar for senormateo2011

I believe he asked for you to set the face value and heres a simple way to do it. [code]private final int MAX = 6; // highest possible dice face value private int faceValue; // current value shown on the dice face /** Constructor: Sets the initial face value. */ …

Member Avatar for charlieruns
0
860
Member Avatar for charlieruns

I have a Photoalbum class and a Photo class. The Photoalbum class obviously holds a bunch of photos in an array. Each photo has a subject, location, date, and path. I need to make a method to search for a a photo with a certain String path. I tried: [code] …

Member Avatar for vchandra
0
187
Member Avatar for charlieruns

So I have all these methods that I need to run for multiple files through command line arguments. How to I get it to allow more than one file? I know how to get it to work with one file by just using String first = args[0]; The code I …

Member Avatar for peter_budo
0
84
Member Avatar for charlieruns

Alright. So this is just one part of my multiple part project. I need to try and get the frequency of how many times each word of 'X' amount of letters shows up. I am pretty bad at using arrays, but I realize this is the best way to do …

Member Avatar for rue64ja
0
138
Member Avatar for charlieruns

To be honest...I am horrible at java. I just got a job and have missed class a few times because of it and im supposed to create a project that can read the number of lines, words, characters, average words length, and letters in a file. I am trying to …

Member Avatar for javatechgirl
0
1K

The End.