Questions tagged as 'swing'

1
answer

Image not updated [closed]

I am making an application where I use a JFileChooser to choose an image, I take that image and I copy it to a folder that is in network. After that it executes a method that shows this image saved in a Label, transformed into icon. The probl...
asked by 17.08.2017 / 17:39
3
answers

Allow only integers in a column of JTable

Below I have a Jtable template. There is only one column that is editable for number (seconds). How do I validate to accept only integers, and in case the user types something else, except integer, return ZERO? public class Tabela_Fluxo...
asked by 21.08.2017 / 21:49
1
answer

Create method that takes the time entered

How can I create a method that takes the time typed in a field? It will grab the contents of the field to save to the database. I use pojo and Dao. I made a well-summed example, what I need to do is a method that takes this String content...
asked by 01.07.2017 / 00:47
1
answer

Open JInternalFrame from another

I was learning how to deal with JDesktopPane in order to use in future projects because I find this function very interesting. I tried calling a JInternalFrame of a button from within another JInternalFrame , but I did not su...
asked by 22.06.2017 / 01:03
0
answers

Use same component in JTabbedPane

Before describing the problem itself, I will explain what I am trying to do. I'm going to need to use some buttons that will basically do the same thing, except that the actions they're going to apply change from one (JTabbedPane) to a...
asked by 16.06.2017 / 21:57
1
answer

How to manipulate the location of the JLabels, having a wallpaper?

I'm trying to make an app that has a wallpaper, but I can not change the JButton or JLabel position. I can only do it if I do not have a background. Follow my code: public class teste extends JFrame{ public teste(){ JLabel t...
asked by 31.05.2017 / 15:05
0
answers

Graphics Type

I'd like to know if there is any component or library that generates a similar "graph" with this. I have read the documentation of JFreeChart , and there are some kind of graphics, but nothing close to this. Whatthis"chart" does is mov...
asked by 26.05.2017 / 20:49
1
answer

Set selected ComboBox item as clicked on jTable

I'm trying to fill in the fields of a form as the item clicked on jTable. Text fields are filled in normally, but the comboBox remains with the default value selected. //método que preenche a comboBox public void fillCBFornecedor(){ fornCt...
asked by 19.05.2017 / 01:28
0
answers

Increase amount of equal service

I have a table with the service code, service, quantity, value, and total. When I add in the table an ITEM 1 for example, the data of this service will be added to the table. But if I add again this same ITEM 1 in the table, I wanted to increase...
asked by 08.05.2017 / 19:13
1
answer

Close screen through JMenuItem

I'm doing a simple system of registering students and teachers and wanted to interact with a JMenuItem called exit , the program closed. I made the whole algorithm, but with that exclamation informing me that my ActionPerformed method...
asked by 07.05.2017 / 20:44