Questions tagged as 'java'

1
answer

How can I create a popup or popup window in a java app?

Good afternoon. I'm doing a desktop app using the java swing library and I'm stuck with a popup problem. In my app, there are some checkboxes that when you mark them you have to appear a popup with several options to choose from, spinners,...
asked by 05.12.2017 / 12:59
0
answers

Go through all the positions of the matrix with 4 loops

I am trying the following: To go through all the positions (not elements) of a matrix. The normal way to traverse a matrix is usually done with two for, but in this case I want to get the two, that is. In the position matrix 00 01 02 03 10 11...
asked by 04.12.2017 / 17:03
3
answers

ProgressBar JavaFx

I need to start a progressBar when I execute a method and it ends when the method finishes processing, this is the method. @FXML private void procesarImagen(ActionEvent event) { ArrayList<String> col = null; DecimalFormat df =...
asked by 05.12.2017 / 01:20
2
answers

Problem with do while loop in JAVA [duplicated]

I have the following dive while: ArrayList<String> nombreP = new ArrayList(); ArrayList cantidadP = new ArrayList(); do{ System.out.println("Producto?: "); nombreP.add(i, sc.nextLine()); if(nombreP.get(i).equal...
asked by 15.12.2017 / 23:00
0
answers

Error trying to make a system executable in java?

Hello, I want to make a system executable in netbeans but when I try to do the jar it throws me the following error messages: warning: [options] bootstrap class path not set in conjunction with -source 1.7 Note: Some input files use or ov...
asked by 04.12.2017 / 03:09
1
answer

"AWT-EventQueue-0" java.lang.NullPointerException

I am generating this code: public void llenarTabla(){ this.modelSalon = new DefaultTableModel(){ public boolean isCellEditable(int row, int colum){ return false; } }; this.modelSalon.setColumnCount(0); this.modelSal...
asked by 02.12.2017 / 01:49
1
answer

Problem generating report JasperReport in JavaFx

When I try to generate a report it turns out that the "The document does not have pages", this is the code with which I generate it. public class Reporte { public void generarReporte() throws JRException{ try{ HashMap paramet...
asked by 05.12.2017 / 23:36
1
answer

Help with NullPointerException in jsf?

I have a combo that shows a list of a catalog that is in the database <h:outputText value="#{datospersonalesmsgs['datospersonales.descuento.title']}:" /> <p:selectOneMenu id="catBeneficio" value="#{DatosPersonalesComponent.soli...
asked by 30.11.2017 / 19:48
1
answer

How can I execute this algorithm in java?

Hello everyone, I hope you are very well, I would like to know how I can implement this code to run it in java main: public class InterpolationSearch { public static void main(String[] args) throws IOException { InputStreamRe...
asked by 30.11.2017 / 23:32
1
answer

The threads of my executor are not executed in order

I'm trying to make a program write to a file using the RandomAccessFile class in a parallel and mutually exclusive way. When compiling and executing works, the problem comes when, when I open the file, I see that the letters are in order but...
asked by 28.11.2017 / 19:05