All Questions
26 questions
-1
votes
2
answers
77
views
Scanning the next line, but only to a certain length
I have an existing code, where I have to scan the next sentence that the user types into the console. This sentence can be no longer than 99 characters. My current code takes the .nextLine() method, ...
0
votes
0
answers
40
views
How to set limit of length inside JTextField? [duplicate]
I'm working on a Java Swing application that involves the use of JTextField for user input. I want to restrict the minimum and maximum length of text that users can enter into the JTextField component....
0
votes
1
answer
411
views
Odata V2 Java set EDM String MaxLength
We are using Apache org.apache.olingo odata jar in order to expose as odata Service in Java.
Facing one issue in EDM String MaxLength property. Not able to expose a string which is more than 255 ...
1
vote
0
answers
55
views
Universal max length for EditText - Android
I know about the similar max length method for EditText that looks like this
editText.maxLength = "21"
But the problem is that this type of method isn't effective in my case. I have an ...
1
vote
1
answer
306
views
Android Studio Throws an error if a user reaches the character limit
I used the maxLength method. I want you to be notified "Limit characters here are 10 characters"
I know the user can't add characters anyway, but I still want to be notified.
How do i get ...
0
votes
2
answers
5k
views
Does BigInteger not have a maximum length ? If it has how can I find the maximum length of BigInteger datatype?
We can find the maximum length of Integer with Built-in MAX_VALUE. But for BigInteger it doesn't work.
When I try to use MAX_VALUE for BigInteger it gives >> ERROR >> can not find symbol variable ...
0
votes
2
answers
5k
views
Failing to store keyword text field length above 32766
I had been trying to store a field as type keyword to support case-sensitive text search,
But when I try to store text with length above 32766 characters it is failing to store it, giving the below ...
0
votes
1
answer
172
views
javax.servlet.ServletException: HV000030: No validator could be found for type: char[]
I want to validate a form input. Specifically a name parameter which has a maximum length of 255 characters. But I get this exception
UnexpectedTypeException: HV000030: No validator could be found ...
1
vote
2
answers
5k
views
How to use Maxlength in Spring <Form:Input> tag?
I am stuck with issue of setting 'Maxlength' to Spring 'Form:Input' tag. It is not reflecting in HTML
Spring Code:
<form:input path="admin[${loop.index}].firstName" id="firstName${loop.index}" ...
0
votes
2
answers
63
views
How can I get the length of the name of each MySQL database?
I am trying to mimic the output of show databases; using java. I want to output something exactly or very similar to this:
+--------------------+
| Database |
+--------------------+
| ...
1
vote
1
answer
1k
views
Android Eddystone broadcast data too large
I am trying to develop a Eddystone based app.
I took the google sample code and tried modifying it.
The android specs says maximum length of service data is 31 bytes
I tried changing the service ...
4
votes
1
answer
852
views
Understanding maximum length of an AppEngine key-name in the Java API
I am trying to figure out what the maximum length for an AppEngine key name is in the Java API.
This question has been asked in much less depth before:
How long (max characters) can a datastore ...
12
votes
3
answers
8k
views
JavaFX - Limit TextArea rows?
In Swing I created a custom Document which was able to determine and limit the number of rows in a TextArea whether a line was being wrapped or a line feed was pressed. I was hoping to find something ...
23
votes
8
answers
20k
views
android EditText maxLength not working
This is my xml
<EditText
android:id="@+id/et_comment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="...
0
votes
4
answers
4k
views
Find the maximum of the length of 2 arrays
I am passing 2 arrays to the controller with different lengths, I want to execute a for loop and length of that will be the max of the length of 2 arrays.
I am not getting how to execute that. I ...
13
votes
4
answers
13k
views
Maximum Length of Android versionName / versionCode (Manifest)
I am trying to find out the maximum length of both the android:versionName and android:versionCode attributes of the android manifest file?
<manifest xmlns:android="http://schemas.android.com/apk/...
3
votes
1
answer
4k
views
Max length for email validation with regular expression
I find this regular expression for email validation.
[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})
I want max length for email will be 20 character so i change it to :
([_a-z0-...
6
votes
3
answers
6k
views
Is there a longer than int Java List?
I can't seem to find a Java List that's max length is long's max value.
Does such a List exist?
If so, where?
5
votes
2
answers
2k
views
What is the largest possible length of a string-representation of a float?
Title pretty much says it all...
I am trying to enforce the maximum length of text input on a form. One of the fields can be any valid floating-point number. What would its maximum length be?
For ...
-3
votes
3
answers
78
views
Android size package decimals (java)
i can display the size of a app package in MB but i have too much decimal numbers..
ApplicationInfo appInfo = packageInfo.applicationInfo;
try{
File file = new File(appInfo....
0
votes
1
answer
2k
views
Why PlainDocument() setted in JtextField.setDocument() excludes one character of the text
Someone knows why in a JtextField, when I set the setDocument() property -class PlainDocument- when I execute the program, it shows me the field ok, but only I can enter N-1 characters, when I set the ...
18
votes
9
answers
59k
views
JavaFX 2.2 TextField maxlength
I am working on a JavaFX 2.2 project and I have a problem using the TextField control. I want to limit the number of characters that a user will be able to enter into each TextField. However I can't ...
1
vote
2
answers
334
views
Access maxlength of JSF inputfield in java custom validation
I need to access the maxLength of an inputField in custom validation. Although I see maxLength as one of the fields in UIComponent, I don't see a getter for the same.
Can anyone tell me how can I ...
2
votes
6
answers
306
views
Length of specific substring
I check if my string begins with number using
if(RegEx(IsMatch(myString, @"\d+"))) ...
If this condition holds I want to get the length of this "numeric" substring that my string begins with.
I ...
2
votes
2
answers
5k
views
set maxlength in a textfield according to the size of the text
how to set the maxlength in a textfield according to the size of the text?How to set the textfield size irrelated to the character?
When setting max length say for example my textfield size is 10. ...
5
votes
1
answer
26k
views
How can I know if 10385274000 fits into: NUMBER(10) for Oracle?
I been working the whole week to troubleshot a production error.
I have eventually got the the point where I can find the culprit record which is causing all the mess.
I've got the following error ...