Questions tagged as 'java-swing'

1
answer

Java FocusLost Event using Swing

I would like the message that is programmed to be shown once the JTexfield1 loses focus, does not show if I click outside of my application anywhere on my desktop. Here I put the sample code: private void jTextField1FocusLost(java.awt.e...
asked by 15.05.2017 / 19:57
1
answer

Place the same image in several jframe

I have a program with about 10 jframe, and I have to put in all a logo, which consists of a title and an image. I thought to create an object (I do not know if jpanel, jframe ..) and add it to the jframe of the program, but I do not know how it...
asked by 29.05.2017 / 15:14
2
answers

(Incomparable Types: String and Order) Compare an entry in JTextField with the database in JPA

I try to make a way that the value entered by the user can be compared with the data of a database column or a JTable (not what is better for that purpose), for example: when the input of the control number to be: 123456 and in the coluna numCon...
asked by 10.04.2017 / 18:18
0
answers

Print four JPanels of a JAVA SWING program on a single page using PrinterJob

Taking advantage of the fact that my JAVA SWING application, of which I want to make a report, (Print the data to have them in physical format) has a very accomplished and worked appearance that could be used by printing the JPanels that show th...
asked by 11.04.2017 / 14:52
2
answers

Message Dialog - Jtable

First I select two rows or more of a JTable and when I record those selected rows, I get several messages "" The Document "+ doc +" was requested correctly "", (doc is the name of the document), and so on the documents that have been recorded co...
asked by 01.02.2017 / 18:17
1
answer

Problems with the JCheckBox item listener

I am using this code to make the key entered in the JPasswordfield "jp_clave" readable by checking the JCheckBox "jcb_key" private void jcb_claveActionPerformed(java.awt.event.ActionEvent evt) { j...
asked by 05.02.2017 / 05:54
3
answers

Include JLabel in JPanel

I am trying to show a JLabel in a JPanel, but it is not shown to me. I do not know why it will be My code is as follows: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DialogoCancion extends JFrame { pri...
asked by 26.12.2016 / 23:21
1
answer

JRadioButton on TitledBorder

How can I implement a radio button where the title of a title border goes? It's the only thing I do not know how to put that component there, I clarify, I do not want the radiobutton to be inside the titleborder, if not the radio button is where...
asked by 26.01.2017 / 01:30
1
answer

My JTabbedPane Doubles

Greetings. I have a problem with a JTabbedPane inside a JDialog. What happens to me is that I load the window with data that is shown in 3 different panels of a JTabbedPane. The first time I call the main JFrame there is no problem. But the seco...
asked by 05.09.2016 / 16:08
1
answer

com.sun.net.httpserver I can not mount SSL certificate

Good morning, Currently I have an application built in PHP, Codeigniter and Jquery. But a specific part I was forced to build a Java application that the user must download to his personal computer for a specific topic, the information captur...
asked by 19.08.2016 / 18:13