Search Results

Showing results 1 to 40 of 55
Search took 0.01 seconds.
Search: Posts Made By: christiangirl ; Forum: Java and child forums
Forum: Java May 21st, 2009
Replies: 8
Views: 366
Posted By christiangirl
I expect it to return where in the word the letter is.
Forum: Java May 21st, 2009
Replies: 8
Views: 366
Posted By christiangirl
What the user enters in the JTextField is stored to the variable fine, I out put that variable just a couple of lines later. But when I test it in the indexOf() or contains() methods, it does not...
Forum: Java May 21st, 2009
Replies: 2
Views: 229
Posted By christiangirl
Hey,
I am trying to find a way to limit how many characters a user can enter into a JTextField.
Does anyone know how to do this?
Thanks!
Forum: Java May 20th, 2009
Replies: 8
Views: 366
Posted By christiangirl
Hello,
I am having problems with indexOf() and contains() they work if I put letters in the code to test, but I want it to test what the user enters. And that is not working. The user enters a...
Forum: Java Apr 7th, 2009
Replies: 5
Views: 368
Posted By christiangirl
These are the packages:
sun.audio.AudioPlayer;
sun.audio.AudioStream;
sun.audio.AudioData;

Thanks for your help!
Forum: Java Apr 7th, 2009
Replies: 5
Views: 368
Posted By christiangirl
it was thrown here: myBackgroundMusic = new AudioStream(new FileInputStream("youtube - gift of gab - way of the light.wav"));
myData = myBackgroundMusic.getData();
myLoop =...
Forum: Java Apr 7th, 2009
Replies: 5
Views: 368
Posted By christiangirl
Hello, this code is throwing and IOException and FileNotFoundException and I am having trouble figuring out why. Where exactly does the song need to go in order for the program to pick it up? Also,...
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Nevermind, I figured it out. Thanks for all of your help!
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Hey, have gone through the whole code looking for what could be causing the problem and have found nothing.
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Thanks everyone! All of your comments actually did help me!
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Ya, I was looking for a missing or extra one yesterday but couldnt find it. I guess I'll keep looking. Or I'm hopping he found it today at school.
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Ok, let me explain: I started tutoring him last thursday, while he was in middle of this program. That is why the code is formatted badly, the comments arent good, and other various problems you...
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Sorry it took me longer to post the errors, I didnt see that someone else had replied.
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
And heres the errors:
File: F:\Math.java [line: 384]
Error: F:\Math.java:384: illegal start of type
File: F:\Math.java [line: 384]
Error: F:\Math.java:384: <identifier> expected
File:...
Forum: Java Jan 14th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
I am tutoring him, and ya sometimes I need help. And I will make sure he understnds the solution.
Forum: Java Jan 13th, 2009
Replies: 18
Views: 1,769
Posted By christiangirl
Hello,
I am getting Identifier expected and Illegal start of Expression erros in this code:



//"Math is our Game" - A math testing program for First through Fourth grade students

//Import...
Forum: Java Jan 7th, 2009
Replies: 5
Views: 359
Posted By christiangirl
that right there may solve my problem. Thanks!
Forum: Java Jan 7th, 2009
Replies: 5
Views: 359
Posted By christiangirl
Ok I'll try that. The code isn't mine, if I had written it I would have definitely formatted it better and named stuff better.
Forum: Java Jan 7th, 2009
Replies: 5
Views: 359
Posted By christiangirl
I figured out the addLabel thing. The main problem I am having now is wth the main method, I dont know what to put in it to make the program run.
Forum: Java Jan 7th, 2009
Replies: 5
Views: 359
Posted By christiangirl
Hey, I am tutoring this kid in java and he has to use TurtleGraphics and BreezySwing, neither of which I have used in a while. I am having trouble figuring out some of his problems. I will post...
Forum: Java Jan 7th, 2009
Replies: 1
Views: 602
Posted By christiangirl
Hey, I need to download the TurtleGraphics package but am having trouble findng a place to dwnload it from, I tried a couple of places but they did not work. Do you know of a good website to get it...
Forum: Java Jan 5th, 2009
Replies: 0
Views: 1,179
Posted By christiangirl
Hey, I am trying to make a program that has pictures on the GUI, but am having trouble making the picture show up.

Here is the code:

import java.awt.*;
import java.awt.event.*;
import ...
Forum: Java Dec 2nd, 2008
Replies: 4
Solved: File I/0
Views: 375
Posted By christiangirl
thanks! That worked! I really appreciate your help, I was really having trouble with File I/O but I think I get how to do it now!
Forum: Java Dec 2nd, 2008
Replies: 4
Solved: File I/0
Views: 375
Posted By christiangirl
Do I just do it like this? writer.append(fileName + ".txt");
I tried it like that in my if else statement for if the file name is the same as before, and that didnt work.
Forum: Java Dec 2nd, 2008
Replies: 4
Solved: File I/0
Views: 375
Posted By christiangirl
This program is all working except when a user chooses the same file as before it needs to show both orders in the file but it is only showing the latest one.


import javax.swing.*;
import...
Forum: Java Nov 29th, 2008
Replies: 2
Solved: File I/O
Views: 406
Posted By christiangirl
that worked! Thanks! I dont know why but before when I had that line I would get an error. But I didnt this time.
Forum: Java Nov 29th, 2008
Replies: 2
Solved: File I/O
Views: 406
Posted By christiangirl
Hello,
I had to make this program and it is all working except it is not writting to the file. Can you help me out?

Here is the code:

import javax.swing.*;
import java.awt.*;
import...
Forum: Java Nov 20th, 2008
Replies: 6
Views: 427
Posted By christiangirl
Forum: Java Nov 20th, 2008
Replies: 6
Views: 427
Posted By christiangirl
I cant get the BufferedWriter to write. Thats what I used originally but nothing would show up in the file, so I used FileWriter. Could you give me an example of how to write with BufferedWriter?...
Forum: Java Nov 20th, 2008
Replies: 6
Views: 427
Posted By christiangirl
I tried newLline and couldnt get it to work.
Forum: Java Nov 20th, 2008
Replies: 6
Views: 427
Posted By christiangirl
I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same.

Here's the code:

import javax.swing.*;...
Forum: Java Nov 20th, 2008
Replies: 11
Views: 872
Posted By christiangirl
Sorry, I usually do I'm just tired lol.

Its not having an error, the file just isnt storying all submitted orders. It is still only storing the last one.
Forum: Java Nov 20th, 2008
Replies: 11
Views: 872
Posted By christiangirl
I'm having trouble getting the if statement to work.
Forum: Java Nov 20th, 2008
Replies: 3
Views: 436
Posted By christiangirl
this is what it outputs:

Order:
Exception in thread "main" java.lang.NullPointerException
0
at OrderSummary.main(OrderSummary.java:35)
0
0
0
Java Result: 1
Forum: Java Nov 20th, 2008
Replies: 3
Views: 436
Posted By christiangirl
I have to make a program where I take a file that contains users order information(the file is from another program I had to make), and then tests it and outputs how many of what it orders. I cant...
Forum: Java Nov 20th, 2008
Replies: 11
Views: 872
Posted By christiangirl
I figured that out, but am still having problems. here is my new code:


import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
/*
* class LogOrder
* Allows...
Forum: Java Nov 20th, 2008
Replies: 11
Views: 872
Posted By christiangirl
I have to write two programs, one writes to file based on what the user selects. The other reads the file, and outputs what the user selects. And I'm really not sue if I'm doing this right.

Here...
Forum: Java Nov 20th, 2008
Replies: 15
Views: 763
Posted By christiangirl
Glad to help! You can message me questions any time you want!

The switch statement pretty much does something based on what is entered, it "switches" betwen different options. If a 1 is entered...
Forum: Java Nov 20th, 2008
Replies: 15
Views: 763
Posted By christiangirl
All you need to do is in the last for loop, make it go till j < i instead of j <=i.
Forum: Java Nov 19th, 2008
Replies: 15
Views: 763
Posted By christiangirl
where does it add one at?
Showing results 1 to 40 of 55

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC