Questions tagged as 'java'

2
answers

Problem getting Java JComboBox data

I am learning to use Java and I want to get the information of a JTextField and a JComboBox already generate them in the Jframe the problem is that I am trying to get its content through a method and it marks me the error    Exception in thre...
asked by 23.07.2017 / 18:02
1
answer

Rounded edges java fx

I want to make the edges of my applications rounded, such as Mac OS, however the result I get is the following: How can I remove the white piece that remains in the corners of the application? This is my code: Main class :...
asked by 23.07.2017 / 14:53
1
answer

I have a problem with re defining columns and rows in an array only once and when I use it again I leave it the same

public static void main (String args[]) { int f = Integer.parseInt(JOptionPane.showInputDialog("Cuantas filas")); int c = Integer.parseInt(JOptionPane.showInputDialog("Cuantascolumnas")); int [][]mat = new int[f][c];int cont = 0; while...
asked by 13.08.2017 / 20:42
1
answer

Select query with JComboBox

Hi I have a problem I want to make a JComboBox I can select an article from my BD and I do the query to load well and everything but when I want to select another article the query that I have to look at the stock of said article fails me here I...
asked by 14.08.2017 / 00:16
2
answers

Add files between two ArrayList in Java

My question is, you can go through two ArrayList<String> causing both to load with a for loop running for a couple of milliseconds triggered with a timer and that first ArrayList loses the focus and go through t...
asked by 15.08.2017 / 21:03
0
answers

Problems generating CFDI 3.3 with JAX-B

Based on the proof xsd and the retail complement I have generated the necessary java classes to fill them. With this code the proof and detailed class is full. try { String cfdi="",complemento_det=""; cFunctions functions=new...
asked by 28.07.2017 / 20:29
1
answer

How can I get all the children of a category?

I have the next class public class AllCategory { int id; String nombre; int padre; List<Clase> hijos; } I receive a list of the following object: public class Category { int id; String nombre; int pa...
asked by 14.07.2017 / 23:38
0
answers

Return an image from binary data in JAVA - Rest Service

Good afternoon. I have the next portion of code that is within a REST service. String a = "0xFFD8FFE0........."; //el valor de a es un dato tipo image de SQL Server Blob blob2 = connection.createBlob(); blob2...
asked by 12.07.2017 / 21:13
1
answer

Images in the header of Itext 5.0

I am working with Itext 5.0 for JAVA (use Idea), but I can not find information on how to add images in the header (as if it were a letterhead). The only thing I can do is declare the absolute position of the image with Imagen.setAbsolutePo...
asked by 13.07.2017 / 12:52
1
answer

Java | Jframe | Generate with anchor to the right of the screen

Good afternoon. I want to generate a main jframe that when instantiated is anchored, automatically, to the right of my display, it is a desktop aplication. I want that when it appears it comes out of that side so automatic. [With its high...
asked by 14.07.2017 / 02:41