Questions tagged as 'java'

2
answers

Export recursive listing directories

I'm doing a recursive directory tour and I want to export the directories and files found to an excel file. This is my code package packages; import java.io.File; import java.io.FileOutputStream; import org.apache.poi.xssf.usermodel.XSSFCell;...
asked by 08.04.2016 / 15:36
1
answer

Evaluate if a list of Strings contains a number in java

I'm working with a list that contains urls that should be excluded in a filter. List<String> excludeFromFilter = Arrays.asList(ApiResources.Account_LOGIN, ApiResources.Account.URI_GET_MERCHANT, ApiResources.Account.URI_GE...
asked by 01.04.2016 / 20:51
1
answer

High dynamic adjustment of a vLayout

I have a problem using GWT the general problem is that I am inserting a resource using the URL in an HTMLFlow where I give the url of the resource htmlPage = new HTMLFlow(); htmlPage.setContentsURL(urlPage); .... vLayout...
asked by 08.04.2016 / 15:46
4
answers

How to read an external Propertie?

I have a JAR program that I run on a server daily, so that it takes certain values, from the url of a database, folder addresses, etc. I have a file of type properties within the project, the problem that I present, is that I have to cons...
asked by 11.11.2016 / 17:09
1
answer

JTable to block the modification of Java cells

I would like to know how to block the modification of the cells.     
asked by 11.11.2016 / 18:23
1
answer

binary Insertion method, help

binary insert with two errors. import java.util.Scanner; public class Main { public static void main(String[]kyuu) { Scanner teclado = new Scanner(System.in); int[] x = {23,44,12,-19,98,102,56,36,21,33,67}; Main hola...
asked by 11.11.2016 / 17:42
2
answers

HashTable in the state of a Web Service

Designing a web service that uses a login and keeps all user data and passwords in memory (does not use any database) have raised doubts when it comes to ensuring a decent level of efficiency: First, what data structure to choose to save this...
asked by 05.05.2016 / 14:30
2
answers

Skip insert a field with PreparedStatement

I want to ask a question that is difficult to formulate, to apologize in advance. When I am going to perform the PreparedStatement I check if the variable is NULL or it is empty with the textNoNULL () method, if the text is empty, as is the case...
asked by 02.01.2017 / 09:56
1
answer

Open a window when pressing button with dimensions set JAVA

I have a menu in my application / interface Java Swing , by clicking on the " Ayuda " button I want the help system to open. What happens is that I get very minuscule by default and it does not come out centered, I would like to decl...
asked by 03.01.2017 / 10:00
1
answer

Java - How to change the date format of a JDateChooser and compare it with the current date

I need to validate that the date of birth entered into a JDateChooser must not be greater than or equal to the current date. If I'm not wrong the JDateChooser saves the date in dd-mm-yyyy format. I need the date entered and t...
asked by 02.01.2017 / 08:38