Questions tagged as 'java'

1
answer

DAO / VO Custom?

Good evening, I'm doing a project with connection to MySQL, I'm using the design patterns: MVC, DAO / VO. I have several tables in my database, 11 in total, so I have 11 VO and 11 DAO, with which I make my queries and keep the information of...
asked by 26.01.2018 / 02:49
1
answer

Java swing duplicates the JTextField when resizing

Good, I've been studying a bit of user interface design in Java and I have a problem, the case is that when you add a text entry to a JPanel (With JTextField) and change the size of the window , several more cells are created, when I understand...
asked by 26.01.2018 / 11:59
1
answer

How to get the progress and speed of download from Java?

I found a example to download an http file from java public class DescargaHttp { private static final int BUFFER_SIZE = 4096; public static void descargarArchivo(String URLArchivo, String Directorio) throws IOException...
asked by 24.01.2018 / 18:15
1
answer

Error Table JavaFx FXML

I'm learning a bit with the view model -controller and JavaFXML . The fact is that I want to make an application that adds data (students' notes) to a tableView , I can edit and delete them. With the following code, all the fields of...
asked by 15.11.2017 / 16:31
1
answer

Problem when linking two database tables with JPA?

Hello my problem is that I can not relate two tables that are one to many, simply by executing my code in netbeans the table without foreign shows the record well, but in which contains foreign key does not show simply limited to write where the...
asked by 10.11.2017 / 06:27
1
answer

PendingIntent works well the first time but then its actions are repeated twice as many times

I am making a custom notification for a player, I use a method to create the notification works well the first time but when sending data to the notification by the MainActivity to change the name of the song the button works as if I pressed the...
asked by 13.11.2017 / 22:30
1
answer

Implementing methods of a Frame in server class

I have a game implemented in java, to roll a dice and to pass the points and if 1 points are left at zero and if the turn passes the points are saved and the one that reaches 100 wins now I have only two frames but what happens is that nle add t...
asked by 14.11.2017 / 08:12
1
answer

parent="@ android: style / TextAppearance.Material.Title" API 19

I have a problem with compatibility with the following code <style name="ExpandedAppbar" parent="@android:style/TextAppearance.Material.Title"> <item name="android:textColor">@color/colorPrimary</item> <i...
asked by 14.11.2017 / 20:54
2
answers

Threads to show counter JAVA SWING

I have the next class of Thread public class Hilo extends Thread{ public Hilo(String name) { super(name); } @Override public void run(){ int cantMaxima = Sistema.TIEMPO; in...
asked by 14.11.2017 / 23:27
1
answer

how to clean the fields of a form in jsf?

Hi, I have my form in jsf with primefaces what I want to know is how to clean the data once I fill them and I gave in submit button because if I go back in, it paints me the data that I had already entered, I do not know if it is from the view o...
asked by 09.11.2017 / 16:22