Questions tagged as 'java'

1
answer

Configure local server for angularjs

As a developer I have always uploaded my projects to a cloud server, in which you just follow the steps they give you to upload it, these are already adequate. But now I have to upload it to a local server located in the company, the project is...
asked by 23.02.2017 / 15:31
1
answer

List visible files

When I do this in a program: File[] ficheros2=new File(".").listFiles(new FileFilter() { public boolean accept(File fichero2) { return fichero2.isFile(); } }); for(File fichero :ficheros2) { System.out.print( ficheros2.length+ "...
asked by 23.02.2017 / 18:32
2
answers

FileFilter problem with the if-else

I have a problem, I guess many hours programming but I do not know how to see, and surely that is the dumbest thing in the world. I have the following program: FileFilter directoryFilter = new FileFilter() { public boolean accep...
asked by 23.02.2017 / 14:23
1
answer

Sort a FirebaseRecyclerAdapter

Hello, I'm doing an app that shows the days of the week from FireBase, the problem is that I have messy and I want to be ordered. I have searched in many places and they put in order with the sort method of the adapter: link The probl...
asked by 22.02.2017 / 19:10
2
answers

How do I go from a DecimalFormat (String) to Double?

I want to work with the decimal part of a number, for example 123.332341 I just want to get the ' .332341 ' only with 3 digits after the period, like this: '< em> .332 ' I use DecimalFormat formato = new DecimalFormat(".###"); (which I...
asked by 23.02.2017 / 02:30
1
answer

how to update a jtable from another jframe

How can I update the table when I modify another jframe. Is it possible? I have a form in java Netbeans in which I insert data and modify, the action of modifying it in a popup window by clicking on a row of a table, up to here everything is...
asked by 21.02.2017 / 21:48
1
answer

How to create a file with the data of an InputStream using commands?

I have asked this question to be able to solve my doubt or obstacle, which is: I want to be able to create a file but not empty already created with its data from the command terminal. Why from the command terminal and not from java with...
asked by 20.02.2017 / 21:34
2
answers

Java: you can put two one-dimensional arrays in a bidemensional array

They ask me for a program, this should read the ages of the students of two classes separately, then I have created two arrays, class A, class B, read one class and then the ages of the other class, but the program asks that when they are introd...
asked by 21.02.2017 / 09:08
1
answer

Select2: Does not show results, but if you search

the last days I'm trying this topic I try to use the select2 I do the search but it does not show the results, apart from the select2 I have 2 inputs that are autopleted with the information that brings ajax , I hope to find a solution to t...
asked by 12.06.2017 / 19:37
1
answer

The mouseclicked event for menu item does not work for me

The event mouseclicked for menu item in swing does not work for me. I changed it to mousepressed and it works for me ... it's practically the same, but I wanted to know why this does not work in a menu item. EDITED: the code was...
asked by 19.02.2017 / 03:13