Search:

Type: Posts; User: Junky

Search: Search took 0.21 seconds.

  1. Re: ok i have tried everything but identifier expected keeps popping up!

    OK so how about read the API and see what methods JSlider has, in particular a method that allows you to get the numerical value of the slider.
  2. Re: ok i have tried everything but identifier expected keeps popping up!

    What do you not understand? Of course you can mod 50. Of course you can assign 50 to a variable and mod the variable. But you are not doing either of those you are trying to mod a JLabel.
  3. Re: ok i have tried everything but identifier expected keeps popping up!

    The identifier is the type: int, float, String, Foo etc
  4. Re: ok i have tried everything but identifier expected keeps popping up!

    Huh? A JLabel can not magically turn into a numerical value. What are you trying to do? If you want the user to input some value and it is this value that you want to mod then what in my previous...
  5. Re: ok i have tried everything but identifier expected keeps popping up!

    What identifier? If you are talking about the error message "identifier expected" then it is due to you do something so waaaaay off that the compiler has no idea what your are trying to do and has...
  6. Re: ok i have tried everything but identifier expected keeps popping up!

    No a JLabel is for displaying text. A JTextfield is for the uiser to enter text. Even so you still cannot mod a JTextfield. You have to get the text, parse into an int and only then can you perform...
  7. Re: ok i have tried everything but identifier expected keeps popping up!

    The variable Rank is a JLabel. Please tell me what result you expect from modding a JLabel? Perhaps you meant to mod the text on the JLabel but then I see that the JLabel text has been set to "Rank"....
Results 1 to 7 of 7