Questions tagged as 'swing'

1
answer

Arrange accented words in a list

I wonder if you can organize accented words within JComboBox . So far I have managed to organize the words without an accent, but the accented ones do not. Follow the code. public class OrdenarCombo extends JFrame { JComboBox<...
asked by 11.10.2016 / 02:24
1
answer

Add rows in a JTable in ascending order

I'm doing an RBC system to check for similarity between computers. I would like to sort my table rows by the probability value. The problem is that the table has around 9,500,000 rows. Does anyone know how to sort rows by column? Here is the...
asked by 24.09.2016 / 18:07
2
answers

Doubt in the implementation of ActionListener

I have a college project to make a system of any category which in the case I chose a medical system and had something I did not quite understand about what the implementation would be like: I have a JInternalFrame called CadastroMedi...
asked by 10.09.2016 / 15:52
2
answers

How to receive user date through JTextField, using JodaTime?

I'm not able to do user input. I want the program to make the difference in days between today's date and the date entered by the user. The program has more implementations but it's just that part that is not working. private JTextField dataVe...
asked by 31.07.2016 / 07:36
1
answer

Fill text field with return from another window

I have JTextField instantiated in class rel_tempo . When you click this JTextField , it calls another JFrame of searches. When I perform a search on this new JFrame and click Confirm , I need to fill in the JText...
asked by 11.07.2016 / 16:29
1
answer

Fill a jCombobox using join and hibernate

I am doing a job in college that where should I create a scheduling system for sellers from a car dealership. The technologies used are Java, Swing, and Hibernate. I divided the project into layers to make it easier, I created the client, ven...
asked by 27.06.2016 / 12:41
1
answer

How to make a JFrame return an instance of a given object?

I have a JFrame called JFrameCadastroPessoa that has only two fields first and last name, as the image shows: JFrameCadastroPeople:publicclassJFrameCadastroPessoaextendsjavax.swing.JFrame{privatePessoapessoa=newPessoa();//codigosger...
asked by 29.06.2016 / 23:41
1
answer

Query ORDER BY dynamic from the selection of a comboBox

I'm developing an application in java that manages a database. This application primarily performs a SELECT database, then submits ResultSet to an editable table. I tried to add a comboBox to the user to select the orde...
asked by 04.05.2016 / 11:57
1
answer

Shortcut to main panel via JmenuItem

I'm working on eclipse Mars 2.0 , where I use the windowBuilder , and I'm not able to link the shortcut: Consultar -> Dia (mntmDia) to main page panelConsultarDia , or either when people want to change the day they are entering...
asked by 19.04.2016 / 18:48
1
answer

Draw rows in binary tree graphing

I'm trying to draw a binary tree using swing and awt in java. I can already show the nodes of the tree but I can not draw the rows of a parent node to their children. I have the Node, TreeGUI, DrawTree, and Main classes. This image is like the e...
asked by 27.05.2016 / 19:53