Questions tagged as 'java'

1
answer

How to delete not only tables but a database in SQLite

I would like to delete not only a table but the whole database in SQLite. Searching, I was told of a Context.deleteDatabase() method, but I can not use it, if I try to call a method, it says it is not static to be used in a static class,...
asked by 31.08.2017 / 01:28
2
answers

Automate opening of sequential files?

I want to open multiple binary files in Java at once, but I do not want to instantiate all of them manually in this way as follows. Is there an automatic way, or a method for me to streamline it? Example: File arquivo = new File("temp0.bin...
asked by 31.08.2017 / 01:37
1
answer

Popular spinner with data stored on a node in Firebase for Android

I'm performing a service for a client where I need to populate a Spinner with data stored on a node in Firebase. I've tried several tutorials, but I did not get results. I have created two entities in my project, a Clientes , whi...
asked by 06.10.2017 / 18:55
1
answer

How to select multiple checkBoxs?

I have a for loop, in which I create a new checkBox every time it goes through the loop. I'm adding these checks inside an item of treeTableView . I wanted to know how I could mark all the created checks. How can I retriev...
asked by 19.09.2017 / 13:27
3
answers

Array overriding elements

I made the registraReclamacao() method in this class and every time I call it on main, it overwrites and only stores the last record. package testelp2; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Ran...
asked by 19.09.2017 / 15:40
1
answer

Problem with CSS in JSF & Primefaces

Project - JSF CDI Mysql // I'm not using Maven Good afternoon guys, my question is this: I would rather than use style="....."; in xhtml code, to make code more elegant, make use of css. For example, I want instead of: <p:fieldset sty...
asked by 31.08.2017 / 23:37
1
answer

Running Java Webservice out of eclipse with Maven

Hello, I have a webservice project that on my computer runs normally, using eclipse and tomcat. And now I want to transport this project to a server and that it runs only with Tomcat. There is also a question: Will the Tomcat and project pull th...
asked by 18.08.2017 / 20:15
1
answer

Android Studio Screen - Completely Lock Touch

My question is this: I have an Activity that finalizes an order and inserts the data of that request into the bank and it takes a while ... I wonder if there is any way to lock the touch to prevent the user from pressing some button, textEdit, s...
asked by 17.08.2017 / 20:06
1
answer

get and set value of a JDateChooser

I've created a JDateChooser propio, so I can make more custom changes to it later. The problem, is that I realized, that if I choose a date on it, it just moves me to the current date. For example, if I choose 1990 or 2020, it will ret...
asked by 02.09.2017 / 21:08
1
answer

Create a Java application for WEB that also runs via desktop

Good night everyone. I'm thinking of developing an application with the following features: Backend: Java Frontend (Option 1): JavaFX Frontend (Option 2): HTML5 + CSS3 I want to start the right way, internationalizing the ap...
asked by 09.08.2017 / 04:36