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() {...
Type: Posts; User: john123
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() {...
Thanks, i will try that
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.
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...
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 ?
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...
I`m gonna get back to you on this,because as your signature says, i shouldn't ignore the answer :)
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...
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
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...
Ok tnx , i will see what next
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...
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...
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 .
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...
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...
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 .
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...