Search:

Type: Posts; User: john123

Search: Search took 0.09 seconds.

  1. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Yess! I Done it!
    I just want to brag a little ,this is big thing for a n00b :)
    I use a mouse listener and it works perfectly:



    textField.addMouseListener(new MouseAdapter() {...
  2. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Thanks, i will try that
  3. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Accidental is when i double click accidentally so the focus is in the whole content and that annoys my desired mouse selection
    that trys to select only few numbers in the field.
  4. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Yes,when i accidentally double click on it ,i dont want contents to be selected ,but that doesn't mean that i am not using
    manual or desired mouse focus selection ,so its not like i can turn off...
  5. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Maybe i am spelling it wrong ;highlighting =focus is selected in the whole jtextfield ,
    and that happens when i doubleclick on it.
    Any advice on avoiding this ?
  6. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    I decide to drop this,since changing the fonts i cant even reproduce the problem.
    One small annoying thing is left.
    Is there any way to disable JTextField highlighting when i double click it,and i...
  7. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    I`m gonna get back to you on this,because as your signature says, i shouldn't ignore the answer :)
  8. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Hmm, i dont think this is a big issue because there are no visible bugs after it happens but i am curious ,
    When i select numbers over the new jspinner textfield editor i sometimes ,not always, get...
  9. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Thank you ,formatting the string was the key: String x = String.format("%.5f", name);
    I was trying decimal format before but i think that it lost decimal place again when it was converted to string
  10. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Ok , i am 99% done .
    I resolve empty string problem and few other issues as well , and only 1 little thing is left.
    In this example i manage for jspinner to finally start spinning numbers displayed...
  11. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Ok tnx , i will see what next
  12. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    This is the error message


    112.0
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at...
  13. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    I am trying to do a jspinner with jtextfield editor as advised here but i dont understand why in code below when i click(second time) on a button
    error appears?


    package components;
    import...
  14. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Can you,or anyone please give me any useful link to a code that resembles the solution to my jspinner problem described in the first post.
    I just need something to start with .
  15. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Bah , i `m trying the whole day doing something with listeners and JTextField but it gives me this error:
    The method addFocusListener(FocusListener) in the type Component is not applicable for the...
  16. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    I would love to do that but i`m not java programmer and i am just trying to edit existing program i own.
    If i see the code i can apply it just like i already rearrange 50 different things to my...
  17. Replies
    31
    Views
    4,343

    Re: n00b asking jspinner question

    Ok thanks for replying.
    That is way beyond may limited knowledge so if someone has the will to maybe show some code here .it would be great.
    I`l understand if its to complicated .
  18. Replies
    31
    Views
    4,343

    n00b asking jspinner question

    Here is some random code i found just to illustrate the problem .
    Two things:
    1.When i enter data in jspinner i have to click on enter for data to be accepted ,is it possible for data to be...
Results 1 to 18 of 18