Questions tagged as 'java-swing'

1
answer

Is it possible to mount two ImageIcon in a JOptionPane?

I would like two images to appear in a single JOptionPane of either input or message. Object seleccion = JOptionPane.showInputDialog( null, "Seleccion Respuesta Correcta", "Preguntas",JOptionPane.QUESTION_MESSA...
asked by 04.07.2017 / 22:30
1
answer

Problem with BufferStrategy and JPanel

Good, I'm trying to make a program in which you can use Graphics with BufferStrategy, so you can draw for example one circle on top of another and respect the order without oscillating. And also be able to use the Jpanel type components in which...
asked by 29.05.2017 / 09:10
1
answer

JTable does not appear in the frame

I have the following code: public class FacturacionGenericaApp extends JFrame { // Componentes Graficos private JFrame frame; /** * Launch the application. */ public static void main(String[] args) { EventQu...
asked by 22.05.2017 / 18:23
1
answer

Problem when running a chat in java

I am doing a java chat that goes from one point to another and I have an error when executing both. When I execute them one by one there is no error, but when I do it simultaneously it throws a'NullPonterException 'exception and when I want to c...
asked by 31.01.2017 / 15:34
2
answers

Create a Swing or Layout form in Java

Very good. I am looking for a way to create forms that contain JLabel, JTextField, JButton, that is, to register the data of a person or search in a JTable. I have been working so far with the NetBeans GUI but my program is getting very big a...
asked by 19.10.2016 / 23:23
1
answer

JDialogs are repeated

I am developing an application in which I call several JInternalFrame from a menu. These JInternalFrames open a JDialog in turn. The problem arises when I open for second, third and so on said frames, because when calling the dialogs, they open...
asked by 06.09.2016 / 15:41
1
answer

How to obtain the properties of the parent container?

Good, I would like to know how to get the parent container properties, for example: If I add a panel to a JFrame I would like the panel to obtain the size of the component that is maintaining it or get its layout. Any method (s) to choose the...
asked by 29.04.2016 / 22:29
1
answer

How to save the input of a Java dialog?

When I try to read or write to an external file in java. The program compiles to me but when the code is executed and I write the name of the file that I want that it reads, the program stays run but it does not show anything to me in screen....
asked by 09.12.2018 / 09:11
1
answer

How to create a personalized query using JPA?

I am migrating a Java Swing application to JavaFX and please if someone could help me to the following: Use PostgreSQL database. In native SQL I have this query that works perfect: SELECT count(t.idremision) as entregados, COUNT(*)-cou...
asked by 10.12.2018 / 13:00
1
answer

How to change the java logo of a Jframe in netbeans?

I want to change the java logo which appears in the upper left part of the JFrame window. I use the following code in the Main constructor: Image ico=Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("img/holger2.jpg")); This...
asked by 12.12.2018 / 22:51