Questions tagged as 'java'

2
answers

Load data to a Java form from sql

I'm trying to load previously stored data in a bd to a Java form What I want to achieve is that by selecting a list from the combobox load all the corresponding data (name, age, phone) My problem: When selecting a rut from the list...
asked by 27.06.2018 / 04:32
1
answer

refresh - clean JtextArea -java

I have a query: What would be the way to refresh (not duplicate / accumulate) the text of a JtextArea by pressing a button? - For example, pressing the "View Result" button several times, the information is added or duplicated in the textArea.  ...
asked by 05.07.2018 / 18:57
0
answers

Problem with while (! cursorIsAfterLast ())

I have this method public ArrayList<Estadisticas> getStats(int p_id) { String[] columnas = new String[]{"_id", "user_id", "letra", "jugadas", "errores", "acertada", "tiempo"}; Cursor cursor = this.getReadableDatabase().query("est...
asked by 28.06.2018 / 15:48
0
answers

change many Jbutton color when starting the interface

I'm doing a reservation program and I have to change the color of some buttons depending on how many places the package has. I have a start of 60 buttons and depending on the squares are painted x number of buttons     
asked by 25.06.2018 / 23:01
0
answers

Store Date with Spring MVC and MySQL

I have the attribute type Date in a class and when I want to register it in MySQL with type date , I get an error and it may be due to the format of the date, but I do not know what to do. Class attribute:    private...
asked by 26.06.2018 / 01:06
0
answers

How to read ora_java.object

I find myself with the following inconvenience: a client jar for a webService, this will be integrated with oracle forms through a library.pll When importing java class I care about the following data type: -- Method: getPCODRES ()Ljava/m...
asked by 25.06.2018 / 19:14
0
answers

input gives me the value of null in Java EE and PostgresSQL

help I have already gone from error to error with my code and in all the problem is related to "null", my conclusion is that the input of my form gives me a value null and not the one that I type. import javax.servlet.*; import javax.servlet.h...
asked by 25.06.2018 / 20:52
0
answers

Error creating bean with name 'adminController': Unsatisfied dependency expressed through field 'adminS';

Hello, what's wrong with this error because I've already created everything? controller @Controller public class AdminController { @Autowired private AdminService adminS; @RequestMapping("/admin") public String showAdmin(M...
asked by 25.06.2018 / 19:45
0
answers

See images of mysql in jsp

a query when I want to see some images that I upload to mysql on my page does not show me the image, I do not understand the error I hope you can help me. Code to upload: String cadena1,usu,pass; int tamaño; Image i;...
asked by 30.06.2018 / 07:51
0
answers

Notifications in Java web app

I am with a web application developed almost entirely with Java in the back and Angular in the front, using Web Services . One of the requests of the client is that it has a system of notifications, that is to say, that wh...
asked by 30.06.2018 / 07:44