Questions tagged as 'java'

1
answer

Spiral-shaped matrix

I try to make a spiral-shaped matrix, but when I execute it in cmd I get an error that I could not correct. I enclose the error and the code respectively.    exception in thread main java.lang.ArrayIndexOutOfBoundsException:   -2147...
asked by 20.12.2017 / 04:53
1
answer

How can I store the characters entered in a JTextArea in a variable?

I am learning java and I have seen a problem in creating a login, I want to store the data that a user enters in a JTextArea in a variable, but it is not stored, and when I give a button that compares it with a name that I have put (since I stil...
asked by 20.12.2017 / 15:11
2
answers

GIF as wallpaper JFrame Java

I'm trying to place a GIF as wallpaper, the problem is that the GIF does not occupy the entire screen. How can I fix it so that the GIF occupies the whole screen so that even if the window size is changed, it keeps occupying everything?...
asked by 20.12.2017 / 16:28
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
0
answers

Search wifi network printers (android app)

How I am developing an application and I need to send it to print but I do not know how to do it, the only thing I have is how the pdf I want to print is generated but I need to know how to send it to print but selecting the printer that is conn...
asked by 02.01.2018 / 20:55
1
answer

Stripe and google endpoints

I have a webhook in Stripe that connects to an endpoint sending a Json in the body, however I'm not sure how to get that json using the google endpoints, since I understand that only manages pojos, I'm trying with the following: import com.goo...
asked by 03.01.2018 / 00:21
1
answer

4 in a row in java

I'll see you doing a java program that consists of the typical 4 in a row of a lifetime. The issue is that I have no idea how to do so that when I press one of the buttons I put in a column, I painted another color to simulate that the card h...
asked by 02.01.2018 / 16:36
1
answer

Java Applet in Browser

I have an applet that I want to run in my ASP.NET application, I was looking for how to load it and I found a method that works for me, I run it from jscript with: <script src="http://www.java.com/js/deployJava.js" type="text/javascript">...
asked by 02.01.2018 / 18:33
1
answer

Problems to import the Jgrapht library into a netbeans project

good morning, I consult here if someone else has had this problem and has found a solution, I downloaded from the official website of jgrapht link the zip file they have, for windows, then I try to import into my netbeans the library by right...
asked by 18.12.2017 / 22:08
1
answer

How to identify a post database database with hibernet?

Good afternoon, I have the following problem I need to send an email to a specific user within my database, that user is in a specific scheme different from the pubic scheme. How can I identify the scheme that the user belongs to? Curre...
asked by 18.12.2017 / 22:35