Questions tagged as 'java'

1
answer

Parameter passing from one fragment to another

I do not know how to work with two fragments, I looked for a few things here but could not find it right. From Activity to another I use Bundle and it works, but I'm not sure how to use it with Fragment. I'm working with Navi...
asked by 04.10.2016 / 01:35
1
answer

Equivalence of the Firebird GEN_ID () function in ORACLE

Speak, I'm learning BD Oracle, before I used firebird. But I'm having a problem that I can not solve. I can not add a new country through the system (java), if I enter it through SQLDeveloper, it appears in the query. The error that appears when...
asked by 07.03.2017 / 17:55
1
answer

Update data in ListView with ArrayAdapter

I have a ListView that will be populated with some different data, which may or may not be called (concurrently or not). Example: The user can add and remove ingredients from a product. However, it can only remove or only add. If it does b...
asked by 05.03.2017 / 15:38
2
answers

Call Stored Procedure with JPA 2.0

I need to call the following procedure below, so the company projects use JPA 2.0 and all the examples I encounter are for JPA 2.1 + . prc_performance_vendas_obter(vdataini => :vdataini, vdatafim => :vdatafi...
asked by 06.03.2017 / 21:27
1
answer

Timer with Chronometer

I am developing an application and it uses the timer by clicking on the play to start and pause for it to pause, but when I click again on play How could I continue counting the time? java code: public class FutebolSimples extends AppCo...
asked by 30.08.2016 / 21:54
1
answer

Place a table created in an existing container

I need help! I'm developing an application in college that will use BubbleSort - yes! We had the misfortune to get this! - to sort some data within a table. I created the table through a class that extended AbstractTableModel, however I ca...
asked by 26.08.2016 / 18:22
1
answer

How to change the Look and Feel of an application?

Can anyone explain how I can change the layout of my application's windows? I was building the application and testing the main method normally, but since it took a long time to wait to connect to the server and still have to log in ev...
asked by 26.08.2016 / 18:55
1
answer

Database + java [closed]

How do I check if a database exists in java? Example: If you have one, create a new one.     
asked by 05.01.2017 / 21:41
1
answer

The import org.springframework.web.bind.annotation.CrossOrigin can not be resolved

I'm not able to import the annotation @CrossOrigin . Ide does not find the required package even though all other annotations are working normally. The error that occurs is this:    The import org.springframework.web.bind.annotation.C...
asked by 08.02.2017 / 23:33
1
answer

ArrayList repeating itself

I have an array that whenever I refresh my page, it doubles. I did some testing to see if it was not duplicating in JavaScript, but I did not find anything. This is JavaScript: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3....
asked by 07.02.2017 / 19:45