Questions tagged as 'swing'

1
answer

Display multiple columns [closed]

I am developing a basic program in Java Application (Desktop) that performs a simple registration and displays in another screen through a JTable the data recorded in it. My problem is that there are 24 columns to display in this table, so I...
asked by 19.07.2017 / 17:49
1
answer

Add JInternalFrame in another Class

I have JInternalFrame for budget editing, my JDesktopPane is in a class other than the class I call JInternalFrame , how to add JInternalFrame to JDesktopPane . Class Start public class Inicio { JFram...
asked by 25.06.2017 / 15:45
1
answer

Insert a submenu into a JMenu

When I click on the woman or man icon in JFrame , it is called a JPanel where I enter the data as weight and height. But when I click save, I can not call another JPanel to show the result of the calculation, since I'm alread...
asked by 07.06.2017 / 22:57
1
answer

How to change the color of the lines of a JTable?

I need the line color to change whenever the cell value equals 0. However, all lines are being painted. View with a simple JTable import javax.swing.JTable; public class View extends javax.swing.JFrame { private EstoqueActionL...
asked by 05.05.2017 / 22:43
1
answer

Problem inserting JTextField into JPanel that is inside JTabbedPane [closed]

I have a Swing application where the main window is composed of a JtabbedPane that contains some classes that extend JPanel [ViewPrincipal, ViewCadastro, ViewReport, etc ...]. When I add JLabels and JButtons, they appear and win...
asked by 21.04.2017 / 21:38
1
answer

Render image size in table cell

I created a table in java that shows my images stored in blob in the database. However, the height of the table is not automatically resized by having to put a value manually, for example: Tabela.setRowHeight(60); I would like to get the im...
asked by 15.05.2017 / 01:09
1
answer

Display an image with Java Swing JLabel

I'm trying to display an image in an app using Swing Java. I get some frames from a video and display them as images. private void updateView(){ Image tempCurrent = imageProcessor.toBufferedImage(currentImage); currentImageView.set...
asked by 14.03.2017 / 20:52
1
answer

How do I position JTabbedPane on the bottom half of the screen?

I would like to have my screen split into at least two parts, at the top I will add some fields, and at the bottom, a% with_with% of tabs. The problem is that I do not know how to do this, I can only do JTabbedPane occupying the entire screen....
asked by 02.12.2016 / 18:03
3
answers

How to validate a field of type double?

Good afternoon guys, I'm not able to validate the value field of type double The field that I can not validate for the cadaster is the valor field. Follow the class method to validate the data to register: public boolean v...
asked by 23.01.2017 / 16:14
2
answers

How to play the data of a Jlist in another Jlist that is in another Jframe?

I tried several ways, but I could not find a solution.    When I click the save button. I want it to throw the data from this Jlist to the other Jlist that is in the Other Jframe. "I could not activate the code block, sorry." //Método para Adi...
asked by 07.11.2016 / 12:27