Questions tagged as 'java'

1
answer

How to change the background color of a JTable in java?

I want to change the gray color that has a JTable default in netbeans. How can I do it?     
asked by 13.07.2017 / 20:26
2
answers

Avoid saving credentials in the browser

How can I avoid saving a user's credentials inside the browser, for example, Chrome? I am performing two authentication queries within a single account that has already been authenticated. It's bad practice, but I need users and secondary passwo...
asked by 15.07.2017 / 00:00
2
answers

How to upload files from the JAR

Hello friends, I have a code for a program that changes the color window and has 3 buttons with an icon or image but I really do not understand why the images do not appear in the JAR, I have the images in the src folder and in sources packages...
asked by 18.06.2017 / 23:51
1
answer

java.sql.SQLException: No suitable driver found for jdbc: mysql // localhost: 3306 / java

package conexion; import com.mysql.jdbc.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class conexion { Connection co; Statement stm; //jdbc:mysql:/...
asked by 28.06.2017 / 01:46
1
answer

Android Studio message: Missing Constraints in ConstraintLayout

It was not until recently that I learned in Java how to program applications on Android and I am practically a novice in this technology, it would help me a lot if you helped me with this warning message.    Message: This view is not constrai...
asked by 01.07.2017 / 01:45
1
answer

Execute ssh command on a remote server

I'm working on an Ant to pass files to a remote server and that works well for me, but at the time of running a .bat on the remote server to organize all the files that happened, I do not know what the problem is so that, instead of running exec...
asked by 13.06.2017 / 09:46
3
answers

Validate Java records if there is or not

I need to know how to validate whether or not there is a record in a database. This is the search code (there is no error in itself): public void buscar(String id_usu) { try { conectar conexion = new conectar();...
asked by 13.06.2017 / 05:47
2
answers

I use a Thread Runnable or an Intent Service?

when we use for example new Thread(new Runnable() { public void run() { try { DatagramSocket clientsocket= new DatagramSocket(5005); byte[] receivedata = new byte[30];...
asked by 12.06.2017 / 19:04
2
answers

Reset values of a Session Bean in JSF

Good afternoon, I wanted to know if please someone could help me with the following, as I search and I can not find a solution. I have a form called "formuPrestamo", which collects values from a Session-managed managedBean called "frances" in...
asked by 08.06.2017 / 20:05
2
answers

Error: incompatible type in constructor, string can not be converted to int

The solution to my problem must be a dull one but I can not see it. I am creating constructors with different variables and constants and one of them has two variables and two constants. This throws me a compatibility error that I do not underst...
asked by 05.12.2018 / 13:48