I'm writing a database application, and I want to use a tree to display the information.
Say there are three fields (a,b,c) for each entry in the database. Each 'a' can have more than one 'b', and...
Type: Posts; User: techwiz24
I'm writing a database application, and I want to use a tree to display the information.
Say there are three fields (a,b,c) for each entry in the database. Each 'a' can have more than one 'b', and...
I'm taking a shot at an SQL application in java, and I have "set up" a mysql server on 192.168.1.123 on my network.
Here's what I did to install it on Ubuntu:
sudo apt-get update
sudo...
Nevermind :P I had already created the directory in the code. Crap...
I'm attempting to create an installer of sorts. When created, everything is stored inside a zip file named DATA.mpk and then put inside the jarfile for distribution.
The structure looks like this...
Sorry to bump, but I've recently started up on the project again. I ended up starting over as the gui didn't scale -_- (forgot about that)
My new save method
...
protected void...
Nevermind, I was dividing by zero in my origional program :X
Here's the problem.
I am trying to implement a custom slider in a game written in java. Due to the nature of the game engine, the slider only supports values from 0.0f to 1.0f. In reality, I may...
...
public void saveSettings(){
Gson gson = new Gson();
BufferedWriter writer = null;
try {
writer = new BufferedWriter(new FileWriter(configFile));
if(configFile.exists()){...
I am using Gson for the settings file of my project. Currently, i'm using the gson.toJson(settings) method. Is there any way to get this to return as a string-array or something so that I can write...
I was afraid of that. I think I might have to change the standard then, and make the name of the file match the name of the last directory. Thanks for the help though.
Here's an example of the structure i'm using: "http://techwizmc.co.cc/Test/"
In that url, there is a file called project.repo. Using standard directory listing methods, I get null pointer...
The code executes client side. My program is opened by the end user on their computer. When given a web url entered by the user(ex: "http://example.com/Plugin/"), the program should try to search...
Basically, My program pulls information from plugin developers "repositories" that they host on their web servers. In the base path that they give out to users is a file PLUGIN_NAME.repo. At runtime...
Ok, so java doesn't treat it as a directory. Is there a way around this without mirroring the whole directory on the local filesystem?
I'm working on a project that I started, and an attempting my first shot at networking so to speak. Lets say my program looks for "updates" by reading in a few lines from a textfile on a webserver. I...
Thanks, but I implemented it in a different way.
I wanted to try something for a small program I'm writing. I'm trying to write a mouse listener that can detect if the right mouse button is pressed without having to write a gui. I've implemented...
I am trying to make my program/application more customizeable, but here's the problem:
The color codes it uses are are integers in the form of 0xffffff and so on, but when I save it to a...
I think I might have figured it out, but a question still remains. I switched over to Eclipse Subverse, and had the same problem. I noticed that because of the way I build my project locally, the src...
I have an existing non-svn project in eclipse. I'd like to add svn to it, so I made an assembla account. When I tried to add it to my svn repo, it only uploaded the .settings folder, and .classpath...
You have no idea how much of an "oooooohhhhhhhh, DUH!" moment I had when I read that! Thanks, sometimes it just takes someone else to look at it, thanks a million, problem fixed!
Is there any way to update values globally? More specifically, boolean value. I'm trying to make a subroutine that "toggles" the given value, but it only does it locally. I've also tried hashmaps,...
It appears to be returning the memory addresses of the items in the stack...I think. I've had this happen a few times before. Try
System.out.println ("\nReturning what is in the stack\n");
...
Idiot me, the method I was using to get the password stored it as a char[]. Converting that to string the CORRECT way might help. Problem resolved!
Just confirmed it's a problem with my sftp server, as this :
import com.zehon.sftp.*;
public class zeDebug {
/**
* @param args
*/
public static void main(String[] args) {
try{...