Questions tagged as 'java'

0
answers

How to open the previous panel in two different GUIs?

The problem is as follows, my program consists of a kind of A2 that is separated in a top panel (where I have customized closed buttons), a lower panel (where the icons of the different A2 modules go) and a large central panel where it shows the...
asked by 17.11.2018 / 08:38
1
answer

Problem of creating a Java 2d array

I have the following code which I need to create a bidimentional array in a dynamic way. The problem arises when you want to create the two-dimensional array fixTemp while assigning the array variable. The compiler tells me it's not easy....
asked by 17.11.2018 / 11:02
0
answers

Error using arrayList, help with exercise syntax

When trying to receive the data of the Player object to be able to list them, an error appears, more precise when you select option 2 on the switch the following errors. Line 111 corresponds to String n= jugadorBaby.get(i).getNomb...
asked by 17.11.2018 / 22:54
0
answers

Java concurrence

How about? I am a student and in one of the subjects that I have (concurrent programming) I am asked to perform an exercise. Which says that a series of threads (cars) come to a river and get on a boat (another thread) this boat crosses them fro...
asked by 17.11.2018 / 20:23
1
answer

Problem to graph inside a JPanel

I have a problem, I want to put a graph that I did in a jframe in a jpanel inside that jframe. I'm working in Netbeans. Can someone solve it? The graphic I did was importing this class to draw a perlin noise function: link For the graphic u...
asked by 17.11.2018 / 20:34
0
answers

Read and upload a JSON file from URL

With the Volley library I can load a JSON from a URL and add it to a ListView, the test of the article I saw works well. This is the code: public class MainActivity extends AppCompatActivity { ListView fruitsList; String url = "ht...
asked by 18.11.2018 / 12:01
2
answers

No suitable driver found for jbdc: sqlserver

I have followed all the steps I find, I have tried several versions of the driver but still it does not let me connect and says that the driver version is not compatible This is the code I use to try to connect package dbtienda; import java.sq...
asked by 22.11.2018 / 04:50
12
answers

How to correctly compare Strings (and objects) in Java?

I am creating a mini game in which the user tries to guess a name. But when I want to compare two text strings to see if they are equal it does not seem to work. final String miNombre = "Jordi"; Scanner input = new Scanner(System.in); System.o...
asked by 02.12.2015 / 12:35
1
answer

Problem with mysql query from java

First I make a record to the database from a Frame and without leaving the application I enter another Frame where I consult the data but the data that I just entered from the previous Frame does not appear, if I close the program and I'll run i...
asked by 25.11.2018 / 06:58
1
answer

Fill a Polygon in Java

I'm doing a little program in which I have come across a detail when trying to draw a polygon in a JPanel in which I want the color of its edges to be fully configurable as well as its background. I made an attempt with the following code segmen...
asked by 25.11.2018 / 03:39