got it i know know what the problem was, i am so stupid when i compiled the
PFrame the was two extra class files that where compiled that i deleted because i thought
that they where some error...
Type: Posts; User: mdstrauss
got it i know know what the problem was, i am so stupid when i compiled the
PFrame the was two extra class files that where compiled that i deleted because i thought
that they where some error...
ok here it is i changed a couple things and it worked a couple times
do you think i should stop the thread (try finely block) or put an executor instead????
ok here is the full code thanks allot i...
in my main frame (EDT) that has a listener (separate class) that uses the songGeter...
the program compiles but when run it is wired sometimes it works some times it shows what i posted
i maybe i...
well i have a swing component that supposed to write strings on a jtextarea
but i have a problem with tread that updates that string everything compiles but when used
some Exception is thrown...
i want to update my EDT what is better to use a swingworker OR a swingUtilites.invokeLater() method??
will both update strings to a JTextArea instantly (separately) or will i have to wait for the...
i want to update a list of strings so it will roll down the JTextArea...
want to update my EDT ,what is better to use a swingworker OR a swingUtilites.invokeLater() method??
will both update...
i want to update my EDT what is better to use a swingworker OR a swingUtilites.invokeLater() method??
will both update strings to a JTextArea instantly (separately) or will i have to wait for the...
thanks very much for the advice that was actually my first idea but i read some where
that you should keep your listeners on a different class so you can develop them separately
well i tell you if...
still same thing but great advice thanks anyway...
other advice???
i think i well send the frame from PFrame class or put the listener under the class so i can yous <.this>
any other ideas well...
i forgot to say that it does compile but when in the program when it gets to
the lines in the listener that supposed to write to the jtexterea this is what
the console throws .......
...
so i have a frame with a jtextarea and i want to write to it from a separate class i (for example)
try to write to it from the eventlistener here they are:
import java.awt.*;
import...
well thanks every one i found out the problem there was some how some space that got caught at the end of the input when the input stream ended so all i did is add a trim() method to the return from...
i don't think that the problem is with replacestring method because even if i change the if statement to
if (seeIf. equals(inputS)) the same output is shown ..... but here it is ...
import...
i have a console input class that works on buff = new BufferedInputStream(System.in);
it returns a string of the input ....
now when i use it the string that comes back is in some way different ....
thank you very very much your write it dose not work it keeps open a strem even if my input is enter say what is a memory leak and well it happen no matter if i get a exception i'll check your advice...
ok i understood that if my program catch's a exception then there would be no return but way dose the program no recognize my sLine string it is still in the method ?????
i checked all these...
i don't get it way do i need two of the returns one before the catch and one after
way not put only one after the catch and way the second one is "return readLine()"
and not "return sLine" ?
...
thank you it works but i don't understand in method readLine i have all ready a return statement that returns string
return sLine;
way do i need the second return statement
return...
i can't figure out way the compiler say's the class has no return statement .....
import java.io.*;
class ConsoleInput { // open class
public static String readLine() { // open...
so can i run the program from a portble hard disk..?
i have an arraylist of 7000 files that i send to an comparator if i send an array with 2000 everything works but over that ioexeptions are thrown and other things what is the problem no memory ??...
never mind i got it my problem was that some of my objects that where in my arraylist where null so my comparator did not know what to do with them
beginners mistakes .....sorry for the post i...
i have a arraylist of file objects and a class of Id3Tags that get from files a couple of strings
i want to sort this list alphabeticly so i thought about two ways i think i can do
the first is ...
both methods have a compareTo method in them that return 0,1,-1 can i build some other comparing system that returns the same ints ???
thank you very very much
let me see if i understand the sort method forces the arraylist (that is a abstract of collection) to use the comparator or the Comparable interface to organize the objects...