Questions tagged as 'java'

1
answer

Requestmapping for a large URL

I wanted to know how I @RequestMapping to a large URL. In case I wanted to map the word authenticate. http://localhost:8080/DataIdea/autenticar?email=0fS3w9wOg6WkJB%2BBdvEmlKxQxYOhF8nqt2lPx801R5M%3D I'm trying to use the code below,...
asked by 11.02.2015 / 18:11
3
answers

Setting a Field for a Proxy

Hello, I have a problem: I need to change the value of a Field to a proxy. My proxy works perfectly, but I can not modify a Field. Whenever I try it returns an IllegalArgumentException saying that I can not set the field of such type to Proxy...
asked by 11.07.2014 / 03:39
2
answers

ArrayList in JAVA

I have a question about ArrayList Example: I made a graphical interface in Java to register players in ArrayList . after registration, the player goes to a Jlist , then my question comes. I want to buy this player for my team, I...
asked by 04.06.2014 / 14:02
1
answer

How to play audio file using the AudioTrack class?

I want to make an app to play drums, but as I'm starting to develop for android, I'm having trouble. I need to play an audio file with the class AudioTrack (because it has the lowest latency), but I did not understand how to use it to pla...
asked by 28.05.2014 / 05:24
1
answer

How to communicate between classes?

I'm starting in JavaFX and I'm having second thoughts. The main class creates an HBox with a button. This button has the action of creating a TableView in the Center of bdPrincipal . Only they are in different classes / packages....
asked by 09.05.2014 / 06:25
2
answers

Removing object from the ArrayList, the object is still there

I and a friend are creating a game in which the character captures coins and earns points. I created an ArrayList of coins and when the rectangle of the character intersects with the rectangle of the image of the coin the image disappears. *...
asked by 31.05.2014 / 00:44
1
answer

How to apply a setNull (index, Types.Blob)?

How can I insert null into the database if an image is not loaded? FileInputStream cabecalho = null; conn.setAutoCommit(false); File fileLogotipo = new File(imagemCabecalho); //imagemCabecalho = path cabecalho = new FileInputStream(fileCabecal...
asked by 17.11.2014 / 16:31
2
answers

Retrieving list of outdated objects with Hibernate

When I manually enter an object in MySQL via terminal, Hibernate does not retrieve the list with the updated object, it is always the same as the last query, as if it were taken from a cache. I tried to do this but it did not work. public...
asked by 21.11.2014 / 14:00
1
answer

SQLite Android Data Update

How to get the information that is on the screen and do a Update in the database. Code that displays information in EditText. public class DatabasesDAO extends SQLiteOpenHelper { private static final String DATABASE = "baseteste"; privat...
asked by 14.04.2014 / 16:05
1
answer

Problem with table extension in Postgresql, Person and Physical Person

I'm making an application that has a people register, it's a Person CRUD that can be both physical and legal. the problem is that in my design a Pessoa and a Pessoa Fisica should be created in the database, but it is creating only...
asked by 20.04.2014 / 03:32