Questions tagged as 'java'

0
answers

How can I get an int to use with the store procedure?

The method to insert has as parameters a String and an int, I want to take the data that is obtained from the txtField but I can not find the way that I do not pull error and let me get it .. In sql server I have declared them exactly the same...
asked by 30.09.2017 / 17:51
1
answer

Avoid copies of an app

I had already asked a similar question, I was told to use Google licenses to prevent users from sharing my application via Bluetooth or other means. But it did not work for me, in the end I chose to get the android ID and compare it with SharedP...
asked by 29.09.2017 / 12:57
0
answers

Pass value to another class

I have in a class called Entrance the following program: public class Entrada { public static void main(String[]args) throws IOException{ Scanner lector = new Scanner (System.in); String fichero ; Syst...
asked by 29.09.2017 / 14:46
1
answer

Avoid booting tomcat Spring Boot

Hello I'm starting with Spring Boot (using netbeans as IDE), I'm using the tomcat plugin, and every time I make a modification to the html I have to stop the tomcat and start it again. My query is, what should I configure to avoid this. <?x...
asked by 28.09.2017 / 21:07
1
answer

Error creating service in the background android

How about! I commented: Create a service on Android, but when you start the application it closes and removing the service removes that problem. Here I start my service: @Override protected void onCreate(Bundle savedInstanceState) { su...
asked by 29.09.2017 / 00:04
0
answers

How to run tests in Netbeans?

Good morning. I have a set of java files and their corresponding tests. These are more or less like this: programs tests prueba1.java prueba2.java [...] programa1.java programa2.java [...] T...
asked by 01.10.2017 / 00:24
0
answers

Question about discounts in java

I have the following statement:    Design and implement the following    program: - Decide (use constants):       ● What is the minimum value to qualify for the discount? ● How much   will discount what is the maximum possible value ● - Ask...
asked by 28.09.2017 / 07:49
0
answers

JPA Query to login

Good evening, stackOverflow colleagues, I have a problem when creating the next method that validates a login. public Usuarios loginExist(String username, String password) { try { EntityManager em; EntityTransaction t;...
asked by 24.09.2017 / 02:57
1
answer

Get image URL in Processing (JAVA)?

How can I get the URL of the images that are displayed in a viewer, from a page where I do not have the php code? The page shows different images, with different urls, but always in a <img id="imgVisor" src="..."> How can I obtain,...
asked by 28.09.2017 / 14:49
0
answers

Problem with JPanel in Java Swing

Hello, how are you? I'm new to the community. I come to consult you about a problem that I have with Java Swing. The issue is, in short, that I have a JFrame to which I set an empty JPanel, something like this: principal = new JPanel (); get...
asked by 24.09.2017 / 06:20