Re: Text file to text area and Radiobuttons?
I get 11 errors when I compile this code. Is that what I should expect?
Re: Text file to text area and Radiobuttons?
this should compile. i just commented out the text reader stuff. i have images but you dont really need that. should be able to run D:
Re: Text file to text area and Radiobuttons?
Quote:
commented out the text reader stuff
You should write a small testing program that does just the text reader stuff to get the techniques and classes to work like you want it to. Then move the code into the larger program.
Re: Text file to text area and Radiobuttons?
how would you get the contents of each line of the text file?
Re: Text file to text area and Radiobuttons?
The Scanner class would be an easy way for a simple file.
The other file reading classes get more complicated.
Re: Text file to text area and Radiobuttons?
i will look into the scanner class. does anyone know how to make a ball (uses thread) to move a bit faster every 20 seconds?
Re: Text file to text area and Radiobuttons?
Quote:
I made a game that has two balls.
How are you controlling the ball movement now?
Re: Text file to text area and Radiobuttons?
one is being controlled with arrow keys. other one is controlled, look at mainpanel. my game is my mainpanel.
Re: Text file to text area and Radiobuttons?
Quote:
Originally Posted by
donaldmax
i will look into the scanner class. does anyone know how to make a ball (uses thread) to move a bit faster every 20 seconds?
If you're using a timer in the thread, reduce the timer delay; if you're just sleeping the thread in a loop, reduce the sleep time.
Incidentally, when posting code, please use the Java Naming Conventions - class names begin with an uppercase letter, method and variable names begin with a lowercase letter. If you don't follow the convention, people will be confused reading your code, and people like me won't read it at all.