Questions tagged as 'java'

2
answers

How to create Pojos with annotations quickly?

I have a database with many tables, do I have to create the Pojo of each table? If so, can you automate?     
asked by 07.10.2015 / 21:23
1
answer

Get value of the item in focus in a JList?

I have a JList and would like to get the value of the item that is in focus in it, I do not want to capture this value with a click or button, but only by changing the focus (clicking on the item or with the up or down arrows). For example: A...
asked by 20.11.2015 / 18:48
1
answer

onClick on Android

I made a EditText with the text = 100, attribute but when I use my onClick() function, which is to do the following text - 50 calculation, when I click the button and execute the routine my application closes. / p> Follow...
asked by 18.01.2016 / 22:42
1
answer

Media Player, stop sound before playing another

Good morning, I'm with a project so that when a button is pressed it performs a pre determined sound but if I press a button dps the other, the two sounds are playing, I tried for an if in case something is playing it pause and start the other...
asked by 01.11.2015 / 21:27
1
answer

Java, difference between Integer.TYPE and int.class

What's the difference between using Integer.TYPE and int.class ? I made some tests and both can be passed as a parameter to a Class<?> .     
asked by 31.10.2015 / 02:54
1
answer

error in $ http with ionic and spring

I have an API with spring framework follow the method below: @RequestMapping(value = "/users", method = RequestMethod.GET) public @ResponseBody ResponseEntity<List<Usuario>> listUsers () { return new ResponseEntity<List<U...
asked by 08.02.2016 / 15:30
1
answer

File Template for Eclipse IDE

Good evening guys. In Netbeans, when you right-click on any file you can create a template with the option Save as Template ... Does Eclipse have this option? If not, are there any plugins that do this?     
asked by 02.02.2016 / 03:07
1
answer

Error Conversion String to Int

I'm doing a simple program, where it reads a .csv file (Excel) and then generates a graph of it. But I'm having trouble converting from String to Int. Below is the Button event code: private void jButton2ActionPerformed(java.awt.event.ActionEv...
asked by 04.02.2016 / 06:40
1
answer

How do I open a window inside a main Frame?

I'm doing a program and I'm creating the layout manually with swing using GridBagLayout and GroupLayout . I would like to know how to open a window within the program I am doing. For example: When the user clicks the Register...
asked by 05.02.2016 / 18:39
1
answer

Tomcat 9 boot problem - #algaworks

Following the #algaworks book, I tried to install and verify Tomcat functionality (both version 8 and version 9), and when opening the startup.bat file and accessing localhost: 8080, nothing happens. I tried opening it via the command prompt and...
asked by 23.02.2016 / 22:13