Questions tagged as 'java'

1
answer

Remove 'header' TabHost Android

Hello everyone. I'm developing an android application using TabHost. The problem is that I did not want the top of the tab because it takes up a lot of space. I've looked a lot on the internet and found nothing that would help me. Does anyone kn...
asked by 30.11.2015 / 14:56
1
answer

Java - Class does not display requested information

Good morning, I need to fix a problem when I request in the "dao.Acess" the get of the Class model.User returns empty = null. When it is called: doLogin (model.Access access) I can see the information through JOptionPane now when I do the...
asked by 02.12.2015 / 12:03
2
answers

Application is returning NullPointerException error despite object being set

Error clicking save new process after assigning data in each field: java.lang.NullPointerException: Attempt to invoke virtual method 'long com.example.alex.levprocess.processos.RepositorioProcesso.salvar(com.example.alex.levprocess.processos.P...
asked by 30.11.2015 / 00:02
1
answer

Is it possible to shorten the startup time of my application?

I've seen a lot of things here and StackOverflow in English about Swing and Runnable , even though I could not solve my problem. I am developing a work for college (interdisciplinary work, involving Distributed Systems / Advanced Data S...
asked by 12.10.2015 / 04:01
1
answer

Reduce size of a Bitmap

How do I reduce the size of a Bitmap? For example, take a photo of 600kB and reduce it to 50KB. obs: No java.     
asked by 13.10.2015 / 23:46
1
answer

Problems in setting up the Spring project

Create a controller called HomeController and put the following settings: First Configuration That's good too. After that you have to configure the project so that it can see the page that is in that package: Second Configu...
asked by 15.10.2015 / 18:54
1
answer

Convert BufferedImage to File?

I need to convert a BufferedImage to a File . I tried the following, but it did not work: File file = null; ImageIO.write(image, "jpg", file); image is of type BufferedImage . That was the error:    Exception...
asked by 03.12.2015 / 21:10
2
answers

Error in Android connection with Web Service Restfull

I'm developing an android app for a course in college. I am connecting the Restfull Web Service with the android using the Gson library to pass data. In the method below I am performing a POST request, in that I make this connection via web i...
asked by 07.12.2015 / 21:39
1
answer

How do I access a "List" on the screen?

I'm trying to access a list of values in my code from the JSF screen, but the screen does not find the method that lists the values, can anyone help me? I want to access the values of method listaNatures in f:selectItens . Fol...
asked by 08.10.2015 / 16:49
1
answer

View PDF on android

I need to insert a pdf in my application; how could I do that? Is there a pdf view? The pdf will be inside the application itself in the assets folder. Thank you.     
asked by 01.11.2015 / 21:06