Questions tagged as 'java'

1
answer

How do I call a progressBar within Dialog?

I would like to know if there is any way to call a ProgressBar within an AlertDialog ... If so, how do I?     
asked by 17.08.2017 / 21:08
2
answers

String to Double - Help!

I'm trying to add a column to a JTable. Any suggestions on how to do it? public void actionPerformed(ActionEvent arg0) { try { double itens = 0; double soma = 0; for...
asked by 19.07.2017 / 20:46
1
answer

Interfaces can be instantiated?

Hello. I know interfaces can not be instantiated, but I came across a code that does not make much sense to me. EditText nameField = (EditText) findViewById(R.id.name_field); String name = nameField.getText().toString(); This second line th...
asked by 29.10.2017 / 06:50
1
answer

How to solve SQLite auto increment gap?

I have a code that deletes a whole row of a database , but there is a problem because I get a hole getting an ID with no data (which I deleted) by this being autoincrement , does not delete the ID value. How do I solve the problem?    ...
asked by 19.07.2017 / 00:08
1
answer

application with screen Full Screen

I'm not able to get my app to stay in full screen and just leave the navigation button. getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_H...
asked by 18.07.2017 / 20:02
1
answer

How to display images in the ListView from Firebase?

Well I'm getting lots of information from the firebase, and displaying them, but I would like to receive images as well, without overcoming the storege, I already saved some urls in the database and when I pulled the url it would mount the image...
asked by 25.06.2017 / 20:09
2
answers

Reverse the positions

package pag1; import java.util.Arrays; import java.util.Scanner; public class ex3 { public static void main (String[] args){ Scanner x = new Scanner (System.in); int posicao = 0; int[] numeros = new int [5]; System...
asked by 04.07.2017 / 05:23
1
answer

Doubt with the switch of the Generator of Lexical and Syntactic Analyzers (GALS)

GALS generates the code in Java. I want to put it in the eclipse to make a little screen and such. I was told that in method nextState of class lexico , you have to put a switch with a number. But where do these numbers co...
asked by 24.06.2017 / 01:05
3
answers

How to call the same method with different arguments but inherit from the same parent class?

I have two classes ( ColunaDoGrafico and ColunaDoRelatorio ) that extend from Coluna . My Column class has the following structure: public class Coluna { protected String tipoFiltro; protected boolean exibeFiltro...
asked by 03.04.2018 / 21:01
2
answers

Doubt how to leave a single attribute - JPA

I am creating an entity, and I have a CPF field and this field that is unique, how to map this CPF field? My entity. @Entity public class Client { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long codigo; private Stri...
asked by 20.03.2017 / 18:25