Questions tagged as 'swing'

1
answer

Popular JComboBox with strings and IDs brought from the database

I need to popular%% with the data brought from a table in my MySQL Database, but I do not know how to leave an item linked to the corresponding ID. Example: ID 1 refers to the ADM profile and ID 2 refers to the Default profile. If the user se...
asked by 11.05.2017 / 23:23
1
answer

IllegalArgumentException: illegal value in JPA when recovering JSpinner value

I'm testing an event on a JTable of type tableMouseClicked(evt) , but I'm having some errors returning the values in the respective JTextField and a JSpinner I've set up. Below is the Stack Trace for the given output when I click on...
asked by 07.04.2017 / 19:49
0
answers

Select item in JCombobox and return associated value in JTextField in JPA

I try several times in a Swing form so that when selecting the option in the JCombobox the column item value of the same row appears in the JTextField. Once I was able to do this logic however it was with JDBC and some functions that I used for...
asked by 09.04.2017 / 04:56
0
answers

(JAXB) Retrieve XML file in the input fields of a JSwing form with Unmarshalling

I am new and I started to learn these days XML because of an implementation that should have in my application, I did some tests with marshall and unmarshall in the main class first (see at the end) to understand better, I am making a form that...
asked by 11.04.2017 / 09:26
0
answers

How to do Jframe with JmenuBar calling another JFrame?

Hello, I have a main class that is working but at the time of clicking on the Registration menu and then client it does not call the other JFrame screen CustomerContentUI. Here is the snippet that was to call the other JFrame that is implemen...
asked by 02.03.2017 / 20:16
0
answers

Java - Canvas blinks when redrawing screen

I'm doing a graphical application with the Component class, but every time I delete the canvas to draw a new frame, Canvas flickers! The clearBackground function: public void clearBackground() { Graphics g = bs.getDrawGraphics();...
asked by 23.02.2017 / 14:43
0
answers

Class modularisation doubts

I am developing an application for didactic purposes, college end of semester work, in this will do CRUD of the disciplines in a table in the already created bank, "DISCIPLINES" , I thought about creating a list of processes, if you want to red...
asked by 04.10.2016 / 19:22
0
answers

Show JProgressBar while connecting to database

I have a desktop application in java with netbeans doing the connection through JDBC, and I'm with a class that connects to the database and returns me some items that are stored there. I would like to display progressBar while the databa...
asked by 20.09.2016 / 14:43
0
answers

How to fix accent problems in Strings in JTextPane?

I have a Java application, I did it in NetBeans. The problem is when there are strings with accents. When I run NetBeans, it shows everything perfect (the string with accents correctly), but when I create the JAR and execute it, the strings are...
asked by 24.08.2016 / 16:44
0
answers

How to draw in a JDialog

Hello. I have a window in JDialog, where I put several components, which looks like this:
asked by 14.07.2016 / 19:53