Questions tagged as 'java'

1
answer

Error adding placeholder to a text component

I'm implementing the component of this topic along with the following instruction: PromptSupport.setPrompt("Digite..", field); This command is from biblioteca swingx-core-1.6.2 and adds a kind of placeholder . But using it t...
asked by 14.07.2017 / 02:15
2
answers

Biometrics in base64 generating different codes for the same digital

I'm having problems with digital encoding (biometrics) in base64 for parameter passing via http . The problem is that each capture of the same digital are generated different codes, in this way it is not possible to compare with tho...
asked by 18.07.2017 / 13:54
1
answer

Doubt with Java code snippet EL [closed]

I'm studying a code and I'm not understanding this excerpt from EL: <c:choose> <c:when test="${not empty pedidoMesa}"> Pedido: ${pedidoMesa.id} ${pedidoMesa.nomeCliente} </c:when> <c:otherwise>...
asked by 20.07.2017 / 20:04
1
answer

Is it possible to select all text in EditText when it is in focus?

I have a EditText and when I use: editText.requestFocus(); I would like you to select the whole text, is it possible?     
asked by 28.09.2017 / 19:19
1
answer

Regular expression for Java (validating password)

I need a regular expression to validate the following password: The password must contain at least one element of each : More than 6 characters; Uppercase and lowercase letters; Numbers; Special characters. Currently, I have thi...
asked by 30.09.2017 / 20:33
1
answer

Modifying a JSlider

I'd like to do two things: 1st: add a label, or anything, that allows me to put a "text" below the colors. Example in the illustration: 2nd:Makethepointer/pointerofslider,gotocoloraccordingtoacertainnumberenteredinthefield(inthemethodbe...
asked by 28.05.2017 / 00:32
2
answers

Give replace in chars of a string

Well, the topic title says it all. Type, I have String a = "Banana é uma ótima fruta." , how do I replace the chars of the word "Banana"? I wanted the replace to stay, "****** é uma ótima fruta." .     
asked by 26.02.2017 / 16:15
1
answer

Redo Spring cache?

Is it possible to schedule the Spring cache to be redone at midnight every time? I've read the Springs Cache Docs and found nothing about how to get it back.     
asked by 09.03.2017 / 07:16
1
answer

How to pause the chronometer and continue from where did it stop?

Android has view Chronometer , which automatically boots when it enters ativity . To restart the timer from 0 I use the following code: chronometer.setBase(SystemClock.elapsedRealtime()); chronometer.start(); When I use...
asked by 28.04.2017 / 17:21
2
answers

How to exclude white space

Example String str = " texto com espaços em branco "; Result     "text with spaces"     
asked by 09.05.2017 / 22:57