Questions tagged as 'java'

1
answer

Via reflection in java, set and get values of inherited variables

I have the following class hierarchy (POSTRequestHTTP extends ReqeustHTTP) (RequestHTTP extends ComunicationObjectHTTP ) Assuming that each object can have variables corresponding to an item in a header, and I have to set its values by pas...
asked by 21.05.2014 / 23:49
1
answer

Jframe Paint Method Does Not Display Drawings on Screen

I have overloaded the paint method of Jframe and am using the Graphics2D class to try to draw the drawings, but nothing is being drawn on the screen, I could see with the debugger that the method runs constantly but the drawings do not...
asked by 18.05.2014 / 19:17
1
answer

How to make a button blink?

I created a simple code for a game similar to Genius, where a random button on a set of 20 buttons starts flashing, but I can not seem to break the color change. Here is an example, basically I just need the color of the button to change rand...
asked by 09.05.2015 / 12:46
1
answer

Can not get a text value from a numeric cell "Poi"

I'm trying to consume data from an excel spreadsheet, but I always try to format the spreadsheet for text and number, and even then the error persists. How do you arrange this? I saw that a person resolved using this cell.setCellType(Ce...
asked by 08.05.2015 / 15:42
2
answers

Manipulation Directories java / python / c

I have a directory A, and this directory A has several subdirectories, and in each subdirectory, it has a variety of files. I would like to put the all files in a directory in the order they are in subdirectories, any idea how can I do this in j...
asked by 19.02.2014 / 05:01
2
answers

Hybrid Android Apps. Is performance loss so great?

Someone there has already developed hybrid apps for Android and can you tell me if the performance loss is great? I have already read in various articles on this web as there are problems such as delay in the touch event, possible slows, etc. If...
asked by 20.02.2014 / 11:38
1
answer

How to get the date and time of the day with LocalDateTime

I have this date in the database: 21/07/18 15:52:00,000000000 When the query passes parameter LocalDateTime , I want to list all dates that start the day. How to get the minimum date with LocalDateTime , and make the data query?...
asked by 22.08.2018 / 01:38
1
answer

Read JSON and transform into Java list

I have the following JSON: { "_status": "sucesso", "_dados": [ { "IdIntegracao": "H1xo7lOOX", "SacadoCPFCNPJ": "08896903912", "SacadoEmail": "[email protected]", "SacadoEnde...
asked by 14.09.2018 / 16:34
1
answer

Error when another class calls method of an Activity

In monitoring it sends an SMS to an equipment that responds with another SMS and refresh the screen and at the moment it calls the method to refresh the screen of the error. Error Log: 01-14 22:45:30.907: E/AndroidRuntime(8661): FATAL EXCE...
asked by 15.01.2015 / 02:54
1
answer

Order a LIST based on another LIST

I have a class that has a property that is another class. Here's an example: Menu Class public class Menu implements Serializable { private static final long serialVersionUID = 1L; private Long id; private String descricao;...
asked by 16.01.2015 / 16:13