Posts by vilok600 • 169 points
11 posts
-
1
votes1
answer456
viewsQ: Read the name or type of a remote file opened with "fopen"
In my PHP script I have a line that reads a file with fopen, using the url "https://api.modarchive.org/downloads.php?moduleid=".$i ($i is an accountant of a loop) where I save the file in the…
-
0
votes1
answer672
viewsA: How to compare user-typed strings to Strings already saved in a . txt
This code: String[] vet = nomearq.split(";"); it shouldn’t be like this? String[] vet = linha.split(";"); because as stated, the variable nomearq is the file name . txt, not its content per line…
-
1
votes1
answer393
viewsA: Jbutton how to get the Text from the Button inside event
Why do you make 2 Fors? couldn’t add the Actionlisteners in the same for popular vector? So you wouldn’t even need that vector. Besides, in that code: int l = Integer.parseInt(btn[i].getText()); as…
-
3
votes1
answer5784
viewsQ: ERROR: "only one use of each socket address is normally allowed"
Before you say that "the door is already being used, try another one", I have received this answer several times, and changing the door simply does not work. Well, I’m developing a game that uses…
-
0
votes1
answer193
viewsQ: System.Threading.Thread does not exist?
I’m trying to learn how to use multithreading in C#, but all tutorials ask me to use the System.Threading.Thread class, but it seems that in my Visual Studio this class does not exist! A print for…
-
0
votes2
answers280
views -
2
votes2
answers119
viewsA: How to get the type of component clicked?
you can use the instanceof in an if, checking which class belongs to the object, example: if(getSource() instanceof JButton){ //Foi clicado em um botão } else if(getSource() instanceof JLabel){…
-
0
votes1
answer567
viewsQ: Running a java applet in the browser
Well, I made a program in applet, (extending the Japplet class) and generated the file . jar, put it in a folder and wrote an HTML page to run it: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0…
-
1
votes1
answer410
viewsQ: Write only one line in Bufferedwriter
Well, I have a text file with a few lines, for you to understand better, here’s what I have in this file: 0 Zombie+160+-50 Zombie+160+290 Robot+-50+120 Spider+370+120 doors 1+BossRoom1 3+Loja1…
-
4
votes1
answer1078
viewsQ: "No suitable driver found" in Java database connection
Well, I use the eclipse and I’m trying to connect a Mysql database with my project, my code, compared to other tutorials I found, it’s perfect, and it’s this: package pack; import java.sql.*; import…
-
1
votes1
answer1218
viewsQ: Problem importing new libraries into Java
I am trying to create an application that can interact with a MIDI device, for this I am using the Jmusic library, but after putting the file . jar in my Workspace and have it added to the project,…