Questions tagged as 'java'

1
answer

jTextField is not updated with keyboard event

Good, I try to make a field where I can not write numbers, just alpha characters [a-zA-Z] in a jTextField. What I want is that when you type letters that comply with this, they are placed in the textField and if they are number or something else...
asked by 18.05.2017 / 04:23
3
answers

Create in MySQL Database a Table State_Vehicle

I am doing a program for the administration of services of an auto mechanic workshop, in the there are tables like: Users, Clients, Staff, Services, Appointments, Vehicles and VEHICLE STATUS and a ternary table that could be called ServantServic...
asked by 18.05.2017 / 02:25
0
answers

Problems with datatable

I have a datatable that collects all the data stored in a database table, this table of the database has 2 foreign keys and which are associated by their respective ID, the point is that when running the What I want is not to see the ID of the f...
asked by 18.05.2017 / 21:47
1
answer

Unwanted value when printing the value of a JComboBox in a JTable - Java

I have a Jtable ( tbDocSolicitud ) that is filled with information from the database Sql Server 2008 R2 . It has 10 columns and in the first column there is a CheckBox and in the second column there is a ComboBox that i...
asked by 19.05.2017 / 15:19
1
answer

Help with serialization in java

I have in the main method: cargarDatos() : It is responsible for entering data from a .dat file. Ventana v=new Ventana() : It is responsible for opening a window with which you enter data. It ends with a defaultCloseOperatio...
asked by 19.05.2017 / 18:01
1
answer

Can I use STATEMENT with references like PREPAREDSTATEMENT?

With PREPAREDSTATEMENT the references of the values are passed to the QUERY but will there be any way to do it with STATEMENT ? With prepared statement I do it this way: String sql = "SELECT * FROM alumons WHERE nombre =...
asked by 28.05.2017 / 16:57
1
answer

save a fix in java

Good evening friends, I'm new to this, they let me make a code from the ulam series (you give a number and if a pair is divided by 2 and if odd it is multiplied by 3 and 1 is added, so until you reach 1 that would be the end) but they ask me to...
asked by 14.05.2017 / 06:42
1
answer

Make a textfielf javaFX disable but selectable [closed]

I have created a textfiel disable in JavaFX, but when I run and load the data it does not let me copy or select anything, apparently disable property disables my text box. textFiel.setDisable (true); I tried to change the editable property...
asked by 13.05.2017 / 22:01
2
answers

Error when deselecting data from a table

Good morning, This is my code: public void seleccionarTodos(AjaxBehaviorEvent event){ if(isIsSelectedAll()==true){ this.selectedFuentes=fuente; setIsSelectedAll(false); }else{ this.selectedFuente...
asked by 16.05.2017 / 16:29
1
answer

Java FocusLost Event using Swing

I would like the message that is programmed to be shown once the JTexfield1 loses focus, does not show if I click outside of my application anywhere on my desktop. Here I put the sample code: private void jTextField1FocusLost(java.awt.e...
asked by 15.05.2017 / 17:57