Questions tagged as 'java'

2
answers

Swipe Refresh in TextView

I wonder if there is any way to implement a swipe refresh in android studio to update only one textview when triggering? I'm using android studio, the activity has only a two text view on the top static that does not change, six buttons, and fin...
asked by 04.08.2017 / 20:14
1
answer

Refactoring for Spring Data returning ListObject []

I came across a project where I have several methods in Repository of this type: @Query(value = "SELECT " + " i.uf, " + " i.cidade " + "FROM Imovel AS i " + "WHERE i.ativo = 'Sim' AND " + "...
asked by 03.08.2017 / 13:25
2
answers

"Expression expected" error [closed]

I got this code that worked to some extent. But the updateLabel method I can not do because of the problem: Ineedtopickthedateselectedfromthecalendar.I'musingaformwherebyclickingeditText,thecalendaropens.finalDatePickerDialog.OnDat...
asked by 22.08.2017 / 20:23
1
answer

Problems with p: selectManyCheckbox using Enum

Good evening, I'm doing a registration page but I came across a problem with p:selectManyCheckbox <p:outputLabel value="Nome" for="nomepa" /> <p:autoComplete id="nomepa" size="40" dropdown="true" value="#{cadastroListaBean....
asked by 18.09.2017 / 03:38
2
answers

Java - parseInt ()

public void OK(View v) { EditText editTextView = (EditText) findViewById(R.id.editTextView); String myEditValue = editTextView.getText().toString(); int equação = Integer.parseInt(myEditValue); editTextView.setText(equação + "CERT...
asked by 20.07.2017 / 21:28
1
answer

Problem in identifying the time in the Game of the Old

I'm trying to implement the Old Game in Java with Swing, but my counter that defines the moves, does not change, so always displays the same move: import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Grap...
asked by 07.07.2017 / 01:03
2
answers

ImageView inside HBox in FXML file

I'm trying to insert an image inside a HBox through a ImageView but I'm not getting it. fxml code: <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import java.util.*?> <?import javafx.scen...
asked by 17.07.2017 / 03:43
2
answers

How to ignore sentence and case in Java .startsWith

This is my code: if(e.getMessage().startsWith("/reciclar") || e.getMessage().startsWith("/ereciclar")){ e.setCancelled(true); p.sendMessage("§cComando Bloqueado/Em Manutenção!"); } But if you use / RECYCLE uppercase or in a different senten...
asked by 30.07.2017 / 17:46
1
answer

Read the txt and return it all in a String in Java [duplicate]

I have this code to read txt and I would like to return a string with the txt all copied, but this algorithm it only read the lines and shows how to return all what content did it read in a string variable? public static...
asked by 09.09.2017 / 03:59
1
answer

Javascript field validation in JSP

function validar() { var nome = document.getElementById("nome_passageiro").value; var data = document.getElementById("dt_nascimento").value; var cpf = document.getElementById("cpf").value; var modelo = document.getElementById("mod...
asked by 08.09.2017 / 20:27