Posts by BulletSentence • 157 points
13 posts
-
1
votes2
answers80
viewsA: How to Recover Data from a Datepicket Add to Mysql/JPA Database
I managed to simply putting: LocalDate localDate = aluno_data_nasc.getValue(); java.sql.Date sqlDate = java.sql.Date.valueOf(localDate); aluno.setDataNasc(sqlDate); Thus returning the date of type…
-
1
votes2
answers80
viewsQ: How to Recover Data from a Datepicket Add to Mysql/JPA Database
I am trying to recover the data from a Datepicker in JAVAFX and put in my database, but I cannot convert in a certain way :( // Desse modo dá certo String cpf = cadastro_alunoCPF.getText();…
-
0
votes1
answer62
viewsA: How to create Queries to generate a JPA SCHEMA
I was only able to change Persistence.xml Using the createDatabaseIfNotExist=true command Stayed like this: <property name="javax.persistence.jdbc.url"…
-
0
votes1
answer62
viewsQ: How to create Queries to generate a JPA SCHEMA
I am trying to create a query to create a schema in sql automatically; as soon as opening the program it executes: createQuery("CREATE NEW SCHEMA IF NOT EXISTS"); My project is like this: -Class…
-
1
votes1
answer340
viewsQ: How to insert a date into an SQL and Java tuple
I tried to insert a date into a tuple in SQL but I couldn’t, using the Calendar.getInstance() I can only get the current date, but I want to choose another date to add. public class Prova { private…
-
1
votes2
answers160
viewsQ: How to change the size of an Edittext contained in a Alertdialog?
I have a problem, inside a Alertdialog there is an Edittext, but it always gets very big and very close to the margins, I want to make it smaller and centered in the middle of Alertdialog, I tried…
-
2
votes1
answer41
viewsA: How to remove Videoview buttons? Android
I tried a few (thousands) of times, I managed using: videoView.setMediaController(null) Thus the buttons of the video view disappeared, and was only the video playing in autoplay…
-
1
votes1
answer41
viewsQ: How to remove Videoview buttons? Android
I’m trying a way to take or hide the buttons of a Videoplayer (forward, pause, back) on android, because the video is part of Splashscreen public class Splash extends AppCompatActivity { @Override…
-
2
votes3
answers100
viewsA: Code in c to calculate hypotenuse with cosine and adjacent
This C code can help you calculate! #include <stdio.h> #include <math.h> float c1, c2, hpt, seno, cosseno, tangente; main() { c1 = 1.0; // Cateto 1 c2 = 1.0; // Cateto 2 hpt =…
canswered BulletSentence 157 -
3
votes1
answer257
viewsQ: Recursiveness and Haskell
How to define recursively in terms of multiplication, the power function, where a base is raised to a non-negative integer exponent? Code: expo (x, y) y > 0 fun(pot) return x*expo(x, y-1)…
-
0
votes2
answers314
viewsA: JVM crashing at random
Make sure your BIOS has CPU Virtualization enabled! Some computers do not have the virtualization system, this causes problems in any application that needs to view your CPU.
-
1
votes1
answer53
viewsQ: Do not re-enter an existing login user
I have a JPA problem with Java. I built a login system, using a self-generated ID, but every time I run the program it creates another user in the database, with a different id but same credentials.…
-
2
votes1
answer34
viewsQ: Javafx imput in textfields
I’m making a program to calculate matrices, but I don’t know how to put an action to the "Confirm" button to take the typed values of the Textlabels (tl_rows and tl_columns) and pass to the…
javafxasked BulletSentence 157