As the title suggests I am trying to read the data that is dynamically entered by the user. This is my first time using JTables.
This is how I am reading the data:
public void readData() {...
Type: Posts; User: frozen java
As the title suggests I am trying to read the data that is dynamically entered by the user. This is my first time using JTables.
This is how I am reading the data:
public void readData() {...
Hello everyone, I am working on a server and client pair and they connect just fine my problem is that the server needs to detect when the client disconnects. Right not I am using
...
Nevermind I just fixed it!
In my application I am trying to make it run on startup but for what ever reason it wont add to the registry. I've done this manually from the command prompt and it worked fine I've also tried...
Thanks this works!
Hello everyone I am working on an update function for a project that I've been working on, I can send the update perfectly fine but when it tries to execute it I get the following error:
...
I am working on a program and I need to be able to send files from the server over to the client via tcp. Sending the files is no problem on the same network but how could I open a port on the...
I fixed it! It was so simple
String[] command = cmd.split(" ");
Then just
switch(command[0])
Hello I'll get straight to the point, I am working on an application where I get input from the user (cmd) and send it off to a switch statement (switch(cmd)). I don't know how to explain the rest so...
When I do this
public void write(String key, String password, File data) throws IOException { // Writes the encrypted string to a file.
System.out.println(data);
out = new...
I am working on this program and I'm almost done but when I try to write a string to a file I get this error:
java.lang.ArrayIndexOutOfBoundsException: 98
I'm just wondering what causes this...
So I am working on creating a bot to automate a process for me, I don't have any problem moving the mouse around and clicking stuff. However, I only want the mouse to be able to move inside of a...
No I'm not sure, how would I be able to tell without decompiling?
Is it possible to create a window with say a JFrame and inside that have a java applet run?
Reason why I am asking is because I have a pre-compiled JAR file that I don't have the source code to...
I'm working on a programming and its loading strings from a file and settings variables equal to them. It's weird because in some class's they value of these variables is equal to what I am...
commands has a length of 2. I'm assuming that the 2 represents the number of arrays? Quick question here, does that "2" include 0,1, and 2 or just 1 and 2?
I wrote this quick little program to debug the array:
package encrypter;
public class test {
static String[][] commands = {{"commands", "new", "ls"},
{" - Lists current commands."," -...
I have a double array with 3 elements in it, however when I print the array it only shows the first two.
Here's my array:
private static String[][] commands = {{"commands", "new", "ls"}, ...
It wont compile because I did not paste all of the classes, and yes.
I'n trying to get this server I wrote running on one of my clients computers but they are getting this error:
java.net.BindException: Cannot assign requested address: JVM_Bind
at...
alright i got it working thanks
so how would I make it read \b and know to remove one character back?
the character its out printing is 921 for some reason it didnt post it.
Correct me if I'm wrong here but \b is supposed to remove the last letter in a string like \n is supposed to go to a new line.
For what ever reason \b is not backspacing but instead my a character...
The title basically says. What I'm trying to do it to get the output of the my program to write to a text file (which i have working) but I want to to go a the next empty line every time the program...