Search:

Type: Posts; User: rougeking

Search: Search took 0.28 seconds.

  1. Replies
    4
    Views
    339

    View Post

    dude... first post the code as Norm said...
    also post the errors.......
  2. Replies
    2
    Views
    175

    Re: synchronization

    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?
  3. Replies
    4
    Views
    339

    View Post

    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...
  4. [SOLVED] Re: trying to use hashtable in tic tac toe game

    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??
  5. Replies
    6
    Views
    505

    Re: Can't find Main Class??

    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
  6. Replies
    17
    Views
    406

    Re: My code doesn't have a main clss?

    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...
  7. Replies
    22
    Views
    301

    Re: compile error

    wats "Input" in here......
    post ur entire code.....
  8. [SOLVED] Re: Beginner question about setHorisontalAlignment!

    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...
  9. Replies
    2
    Views
    327

    Re: Array and FOR

    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...
  10. [SOLVED] Re: Beginner question about setHorisontalAlignment!

    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...
  11. Replies
    3
    Views
    349

    Re: Having trouble with for loop statement.

    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 :)
  12. Replies
    3
    Views
    349

    Re: Having trouble with for loop statement.

    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 :)
  13. Re: My Code is not working [URGENT] Help Needed

    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...
  14. Replies
    5
    Views
    423

    Re: Incompatible types

    problem is... compareToIgnoreCase() method returns "int" not "boolean"
Results 1 to 14 of 15