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
Favorite Tags
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
93
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
82
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
64
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
60
Member Avatar for luvthug

My Printwriter method is not writing to a text file. the code runs fine it displays the text on screen but nothing appears in the text file. [CODE] public void run() throws IOException { Scanner sc = new Scanner(System.in); boolean cont = true; while (cont) { System.out.println("Enter your line text"); …

Member Avatar for charlieruns
0
167
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
110
Member Avatar for jordanhagen

Hey I'm having trouble with this program, for some reason im stuck and dont know what to do. If you could help me out that woud be great. What i have to do it this. Using classes, arrays, sorting and searching write a java program to manage an online address …

Member Avatar for javaAddict
0
979
Member Avatar for senormateo2011

[B]Redo the Lucky Sevens dice-playing program so that it uses dice objects. That is, design and implement a Dice class. Each instance of this class should contain the die's current side. There should be an accessor method for a die's current value. The method roll is the only mutator method. …

Member Avatar for charlieruns
0
821
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
177
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
78
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
120
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