Questions tagged as 'java'

1
answer

Error No value specified for parameter 4

When I run the code through the browser, the error mentioned in the title appears    "No value specified for parameter 4". Below I will leave my DAO and my MySQL configuration if someone can help me, if I need more information let me know...
asked by 14.09.2017 / 14:48
2
answers

Is it possible to reuse the parameters of a Query in the JPA?

Hello, I have a question about Parameters of object Query on JPA . I am implementing pagination of my tables using Primefaces with LazyDataModel and in the function that I use to perform pagination I do 2...
asked by 15.09.2017 / 16:42
1
answer

Using database coordinates in google maps API

I'm trying to use in Google Maps the data that is in a sqlite database, but I'm not able to access the loader's return. I used the same logic to connect using the database number and it worked, but for the map, it only returns 0,0 coordin...
asked by 09.08.2017 / 15:47
2
answers

Because I'm getting the error: android.content.res.Resources $ NotFoundException: Resource ID # 0x0

Can anyone explain what the error in this code is? I honestly do not understand why I'm getting this error! Java: public class Chose_curso extends AppCompatActivity { private TextView pickLetraText; private ListView cursoList;...
asked by 16.08.2017 / 17:33
1
answer

Error generating report with parameter id

I'm making a small system print a budget by passing the id. The following situation occurs; By netBeans I pass the id when prompted and the normal report appears. ButwhenIdogeneratethereportthroughmyprogramitlookslikethis: Mymethodthatgener...
asked by 15.08.2017 / 02:57
1
answer

Fragments work as an activity? [duplicate]

I have seen that to continue using a Navigation Drawer, do I have to use Fragments, or can I use activity? or is there no difference between the two?     
asked by 12.10.2017 / 20:37
1
answer

NullPointerException when calling method return in another class

I have the following method in the LoginController class @RequestMapping(value = "/usuarioEntidade", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) public Resposta usuarioEntidade(@RequestBody EntidadesAdministr...
asked by 11.10.2017 / 18:31
2
answers

How to calculate two sums with just one button?

I would like to know how I can do to calculate with just one button two different sums, as I did in the example in the image. I have the code this way, but only with 2 numbers. How do I make another calculation at the same time with the same...
asked by 11.10.2017 / 02:39
1
answer

Java - Full screen in 16Bit

How can I put a JFrame in full screen and change the screen resolution using: device.setDisplayMode(new DisplayMode(Width,Height,16,DisplayMode.REFRESH_RATE_UNKNOWN)); Should I use a new library? Thank you     
asked by 15.10.2017 / 05:26
1
answer

Add a lower menu

I would like to make a lower menu in my java application, to put time and runtime or even some configuration part itself. I already have JMenuBar on top. This is my code. package tela; import componente.MeuJDesktopPane; import java....
asked by 04.08.2017 / 17:52