Questions tagged as 'java'

1
answer

How can you create a JTable with 2 Columns with Checkbox (Boolean) {Yes and No}

and that are validated so that if one is selected, the other one is not selected? Although I do not know if it is better with the RadioButtom for unique selections both work the same as I understand, however in the NetBeans Graphical enviro...
asked by 31.05.2017 / 20:42
1
answer

JAVA: Method, Classes, Variables and Subprograms

From the main, I want to call a subprogram of a class, putting a parameter to it. I want to print it later. public class main { public static void main(String[] args) throws Exception { String cleartext = "hola"; System.out.println(crypto.Cif...
asked by 30.05.2017 / 18:17
1
answer

Color row where cell has value of arraylist

What I want to do is: Color the rows of a table where the cell in column x has a value present in an arraylist. In more detail: I fill the array list with the values 1000000, 1000001, 1000007 of a query to the database. Now, I go t...
asked by 23.05.2017 / 01:57
0
answers

Web service Google or similar

I have to do a google web service or a similar one in netbenas for class. I have to use java, and I have been looking for a long time, but I can not find any examples. The google, apparently, do not use web service, are an api that you put the l...
asked by 23.05.2017 / 16:58
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
1
answer

Implement Security Filter API REST - CORS - Spring Framework 4.1

I am trying to implement security by URL to my REST API, I MEANT THAT PETITIONS FROM A SPECIFIC DOMAIN CAN ONLY BE CARRIED OUT, the solutions I find online tell me to use @CrossOrigin but the project in which I am working has the SPringFrameWork...
asked by 23.05.2017 / 23:00
0
answers

Logical error with the StyledEditorKit.ForegroundAction class in Java

I'm doing a text editor, it turns out that I'm using the class StyledEditorKit.ForegroundAction to be able to set the color to the selected text, the question is that when I call the class from the method actionPerformed the text i...
asked by 26.07.2018 / 15:23
1
answer

How to know if a ResultSet contains Null in column?

I try to formulate a condition which is if my column x contains Null send me a message, if it is not so I fill a excel . I have a lake of this style, Thanks !!. if (res.next()) { while (res.next()) { Row filaDatos =...
asked by 26.07.2018 / 17:30
1
answer

How to save an audio stream?

Very good, I do not know if my question is well formulated, but I have an application in which I play an audio stored in my hosting, what I want is to save it, I have searched for everything and can not find a way to store it. I have a listvi...
asked by 27.06.2017 / 14:31
1
answer

Compress a complete Zip folder and enter the name of which folder will be compressed. JAVA

I am doing a program that compresses zip file, but it does not compress the folders, only individual files and what interests me is compressing folders, I would also like to know how the program asks for the name of the folder that you have to c...
asked by 01.06.2017 / 17:30