dude... first post the code as Norm said...
also post the errors.......
Type: Posts; User: rougeking
dude... first post the code as Norm said...
also post the errors.......
I think you first need to understand concept of threads very clearly........
lets try this way
if the output is as you expected....what's the use of setting priority of a thread?
as far as i can understand.. u missed a lots of '}'....
also you declared Scanner object "tangentbord" twice.....
assuming you have written Pryl and Person classes.....i couldn't find any more...
dude.....you are passing buttons as key and value....but searching for integer...
also....i don't think while loop here can give you desired results...
btw...why is panel p1 used??
dude....its not a big mistake....
its just misplace of '}'
please format your code carefully and you will find it.
if you still didn't get it.......we are here :D
errors::
1.you missed "." while importing
ex:import java.awt.*;
2.please check the parameters of setDefaultyCloseOperation
its DO_NOTHING_ON_CLOSE
3.parameter of actionPerformed()
its...
wats "Input" in here......
post ur entire code.....
ya I too agree with curmudgen.....every layout has got it drawbacks....
I just gave it so that u'll have an idea about null also.....
use it only there are less components,frame is set to...
yep ur logic is correct....
you made a minor mistake...
you should assign a value to variable/field...i.e., variable=value
but in ur code....u wrote word[counter]=longest;
it means your are...
You can use "null" layout....then use setBounds() method to specify exactly where you want to display your component...
like....
setLayout(null);
component.setBounds(a,b,c,d);
here--a= starting...
yeah......for( ; ; ) is an infinite loop.....u can use it like...
for( ; ; )
{
if(somecondition) break;
}
it means until and unless that condition is satisfied loop runs :)
yeah......for( ; ; ) is an infinite loop.....u can use it like...
for( ; ; )
{
if(somecondition) break;
}
it means until and unless that condition is satisfied loop runs :)
Another thing....try using array of components instead of having 1,2,3,....
if u use array, it reduces the code to very very much.
u can use "for" loop while allocating memory,adding them to...
problem is... compareToIgnoreCase() method returns "int" not "boolean"