Questions tagged as 'java'

1
answer

Which API to use for Java Desktop applications

I'm wanting to develop a Java Desktop project and would like to analyze what would be the best API for this. I'm needing something like the state of the art desktop APIs for Java. I've done a search and found more references to Electron, which i...
asked by 17.06.2018 / 04:41
2
answers

java.lang.NullPointerException

Main class presenting problem in call of method createNewContact and insertCustomer: case 1: cliente = new Cliente(); cliente.setNome(JOptionPane.showInputDialog("Nome: ")); cliente.setCpf(Long.par...
asked by 22.06.2015 / 16:18
3
answers

Doubt about why it does not give nullpointexception

It's a stupid question but why does this code work? public static void main(String[] args) throws ParseException { List<String> lista2 = teste(); System.out.println(lista2.toString()); } In this method I should return a lis...
asked by 04.05.2017 / 20:24
2
answers

How to create menu in Android?

I'm trying to create a menu similar to this: Can anyone explain how to ride? I would like some tips.     
asked by 23.04.2014 / 22:08
1
answer

Help with pointer error in Java

I'm doing a Priority Bank Queue project, I did everything the way I learned, but this is giving some null pointer error that I can not understand, could anyone please help me understand where I'm going wrong? Project link: Java Project...
asked by 27.05.2018 / 00:50
1
answer

How to properly configure proguard?

How to make the right configuration of proguard , bringing better security, smaller size, and deleting classes when you want or when creating problems? I basically enable the default settings by changing minifyEnabled to true...
asked by 12.07.2016 / 01:59
1
answer

Prevent insertion into the bank with String "" (with space in the name)

My problem consists of the following: I have a JTextField that will receive the name of my entity, will pass pro controller, which will create the bean and finally call the DAO to insert into the bank. Simple thing is a basic CRUD. The tab...
asked by 28.09.2016 / 16:38
2
answers

Icons in the actionbar do not appear

I have a fragment and I'm putting these two methods in the class @Override public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) { menuInflater.inflate(R.menu.alerta, menu); super.onCreateOptionsMenu(menu, menuInfl...
asked by 02.02.2017 / 20:10
2
answers

How do I remove a part of a string?

I have text saved in a string and need to copy a portion of this text to the find a certain word in it. Eg: I need to remove my name and age from this text, I know they always come after: and in quotation marks. String texto = "Meu nome: "+...
asked by 08.09.2017 / 21:46
1
answer

How to cite cesar

When you paste (ABCDE) with offset 5 it encrypts (FGHIJ), when in fact it should be (EFGHI). I've tried everything I can not solve. In case he is doing the next offset to my input. package cifracesar; import java.util.Scanner; public class C...
asked by 12.09.2017 / 18:40