Questions tagged as 'java'

1
answer

I want to know the amount of non-hidden items in a java folder

I'm doing a program which can count the amount of selected elements in a folder, this using JFileChooser. @Override public void actionPerformed(ActionEvent e) { JFileChooser selecto = (JFileChooser) e.getSource(); String comand = e.ge...
asked by 08.01.2018 / 16:45
2
answers

jTable does not name the columns

I have a jTable for a future pool that I want to make. The problem is that when I create the jTable, I open where it says model, I put the number of columns and the number of rows and I also put the name but in the jFrame only the jTable leaves...
asked by 06.01.2018 / 08:22
1
answer

How can I link two maven projects to use the classes from one to the other?

            com.controller             EJBCARGA_ATM_REMOTO_MAVEN             1.0-SNAPSHOT             runtime             jar          I have tried to include it that way, but it gives me an error when building the projects with the dependenci...
asked by 05.01.2018 / 17:33
0
answers

How to make a for loop inside a h: dataTable in JSF

I'm making a list with a table in JSF, it's really easy to do it with the <h:dataTable> tag, but I need to loop inside the table to be able to filter certain data from another list. My code follows the following structure. <...
asked by 04.01.2018 / 14:23
0
answers

Http: URL to upload files to onedrive with java

I am trying to upload files to my account Onedrive . In the example that I have in the Service is: https://independentsoft-my.sharepoint.com/personal/info_independentsoft_onmicrosoft_com    The problem, I have, is that as I understand i...
asked by 02.01.2018 / 11:54
1
answer

Security by roles in spring boot api

Good, I'm having a problem with the securization of my API, I have everything mounted, a login that returns a token which passed through headers and a series of classes that authorize me to enter thanks to that token, but I want to go beyond tha...
asked by 04.01.2018 / 15:38
1
answer

Refresh JtextArea

Good morning, I have a java code that sends data to a JtextArea the problem is that when you re-run the method and send other data the new data is well displayed, but when you select them in the jtextArea it shows me the ones I sent by first tim...
asked by 07.01.2018 / 16:45
2
answers

android.widget.TextView.setText (java.lang.CharSequence) on a null object reference

I have a very strange error in android (api 25), I tried many things and still could not, help! please I try the application, calculator type to make payment calculations, in which you select year, months and situation, and with these parameters...
asked by 03.01.2018 / 05:16
1
answer

How do I fill an ObservableList from an ArrayList?

I am learning to play with JavaFX, I try to make a TableView show the elements of a Database. For that, create a class (Methods) with a method that fills an arrayList (Jewel works with Swing Jtable). The method returns an ArrayList named list...
asked by 01.01.2018 / 03:08
1
answer

How to separate records from a query through ResultSet

I have the following problem, I try that, from a query that is saved in a ResultSet enter the information of the query (returns a table) in a file txt , the problem that arises is that keeps as it all the query, does not respect or...
asked by 02.01.2018 / 02:15