Questions tagged as 'jcombobox'

3
answers

JComboBox update from another JComboBox

My idea was to make a JComboBox whose values were updated according to the options of the previous ComboBox. I'm using multiple ArrayLists. For example, a ComboBox with the option of January and February ... If you choose January in the fi...
asked by 17.06.2014 / 11:06
1
answer

Item in comboBox selected, display data in jTable

Before asking this question, I looked in the forum and in several places but I could not solve ... I have a comboBox that already loads the names of the clients, there I wanted to select the client, and on a ok button to fetch that cli...
asked by 09.07.2017 / 14:46
1
answer

Get selected object id attribute in JComboBox

I have a table in the DB with Id Columns, Number Plate, and Drill on the board. I would like to show in the JComboBox the concatenation of "Plate N ° + Drilling". Example:    Plate 10 - 113.00 mm But when a combobox item is s...
asked by 28.11.2016 / 20:04
1
answer

How to use a JComboBox from one class to another?

I want to create two screens, one registers the values of the JCombobox and in the other I use the values. I can recover the Combobox but it does not appear any value. Class of registration public class Combo extends JFrame{ private JB...
asked by 29.09.2017 / 19:41
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

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 validate jcomboBox before saving

I have the following problem, I am trying to validate these jcombobox, I want that if the user does not select a jcombobox item from the movie, a message appears: "Select Movie", if already the client, a message appears: Select the Client "and i...
asked by 26.11.2016 / 13:03
1
answer

How to validate if a String already exists in the JComboBox list? [duplicate]

package view; import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import javax.swing.DefaultComboBoxModel; import...
asked by 18.01.2017 / 04:51
0
answers

Add Object in JCombobox [duplicate]

I'm trying to add an object in jCombo box, but, it's saying by showing the message that Object can not be converted to String, I'm using public String toString() Follow the model's code: public class Model(){ private int codigo;...
asked by 20.06.2018 / 14:41
0
answers

setar item from JComboBox

I have two JComboBox, the two contain strings for names of buyers and products. I need that by clicking on the table I can set the JComboBox with the names. I saw two examples of codes in this forum but they do not work so I am asking the que...
asked by 08.06.2018 / 05:17