Josh Rodrigues

Greenhorn
+ Follow
since Apr 14, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josh Rodrigues

I fixed it. Seems like it wouldn't take the setter method:

Had to change it to:

Thanks anyway.
11 years ago
I'm trying to create a JOptionPane with yes and no options asking whether the person wishes to go into full screen mode or not. When the person clicks on yes, full screen mode should be set, but it's not. If I were to click on no, then it would do the correct thing. When I click on yes, it goes straight to normal screen. I'm not sure why and everything seems correct. Here's the Main class.

And the GameFrame constructor.

The isFullScreen boolean has a setter and getter for it, so that's where setFullScreen(boolean isFullScreen) comes into play. I don't see anything wrong with it if I'm setting the boolean to make it full screen or not and then setting the display mode for it. Help is appreciated. Thanks.
11 years ago
Hi, I'm trying to execute a method in a different class called loadCriteria();. Whenever I try to execute that method, it returns a NullPointerException. I'm not sure why and I've used a foreach loop before.


Sorry for it being so long. The NullPointerException occurs at "p.loadCriteria();". The player instance is being called correctly, so I'm not sure why it's nulling. Help is appreciated. Thanks.
11 years ago

Paul Clapham wrote:Sorry, no idea. I went to their website but since it's paid-for software they don't seem to have any documentation on-line. It's funny how you get used to the idea of applications putting their docs on-line.


I'm using the free version, CuteFTP Home.
12 years ago

Paul Clapham wrote:And if so, did you remember to use image (not ASCII) mode?


Oh, how would I do that using CuteFTP? I guess I did put it in as ASCII.
12 years ago
Hi, I'm having some trouble working with an Applet I made in Java. I'm trying to get it up onto my forums, but I get a weird error saying the following:

Here is the website to try out the Applet. Go to http://rs3newstart.tk and simply hover over "Server" and then click on "Play". The Applet will run, but not for long. I'm still working on the forums, so not everything is in the right place as I would like it to be. I'm not sure why this error is coming up nor do I know what's causing it. Unless 000webhost does not support Jar files nor Applets? Here is the PHP script for the Play.php file I made:
If you need anymore information, please ask. Help is appreciated. Thanks.
12 years ago
I tried using both but the GridLayout panel seems off. I'm trying to make 13 rows and 17 columns for the JDesktopPane to use, but when I create a little icon of a folder, it will just center itself along with adding in a recycle bin icon.
http://img44.imageshack.us/img44/6554/desktopat.png
12 years ago
So far I have a JDesktopPane for an Operating System I am making in Java that uses a BorderLayout for a JTaskBar I made. I was thinking of using a GridLayout to make the icons and whatnot on the desktop have positioning and not be all over the place. But, if I put in a GridLayout, then the JTaskBar will be on the top responding to the GridLayout instead of the BorderLayout.SOUTH. Should I use a different way to make the desktop show icons without the GridLayout?
12 years ago
When you add a JMenu to a JMenuBar, and if you were to click onto the JMenu, you would see the menu going downward. Does anyone know how to make it go upward as if it were to be like the start button on the task bar in Windows? Thanks.
12 years ago
Well, I'm making a game and I'm trying to add a KeyListener to a JLabel which contains an ImageIcon. Every time I press the up, down, right or left arrow key, they print out what I want it to print out, but do not do the action I wish for them to perform. Here's my code:



I tried adding the requestFocus() method and a few different ways of creating the keyPressed(KeyEvent e) method. Help is appreciated. Thanks.
12 years ago
I got everything to work so far for my loader jar file which loads another jar file name ERclient.jar. I'm having trouble when running the ERclient.jar. I'm getting a ClassNotFoundException at this line:

The whole class for the PreLoader class is as so:

Here's chunk of code to get the main class called client:

I'm not sure why I'm getting this error when it should be searching everywhere for the class file; as long as it's in the same directory, right? If so, shouldn't it look in the JAR file named ERclient.jar?
12 years ago

Paul Clapham wrote:Oh, you mean that ERO.jar is on the web server? But your code uses a File object to load it. That means you're looking on the client machine for it.



The Loader.jar file loads first, extracts the cache to the C:\ drive. Once done, it will run it and it runs fine now. Except it gives me an error. I'm guessing it's the Theme.jar file since I use the Theme file to run this code properly:

I'm guessing that the Theme.jar file isn't being found unless being put in the same directory as the ERO.jar file? Trying it out now and hopefully it works.
12 years ago

Paul Clapham wrote:Okay. You're trying to read from the client's file system, so have you signed the applet? If you haven't then that won't work. However you should get a security exception which is visible in the Java console in the browser.

Also I see that you're trying to read from the current working directory. Have you actually determined what the current working directory would be for the browser you're using, and put the jar file into that directory?



The web client HTML file is in the same directory as the ERO.jar file, if that's what you're asking. I found out that it was downloading the cache, RARing it first and extracting it, and that's why it wouldn't pop out yet. Only problem is that an error occurred but it doesn't show it in the Java Console nor can I get into it. Every time I go to Tools > Java Console, and try to click it, nothing happens. I'm not sure, but a method I used to create a look and feel was this:



That code runs from a Theme.jar file, so would I have to put the Theme jarred file inside the cache file or put it in the same directory as the ERO.jar file?
12 years ago

Paul Clapham wrote:I still don't want to look at all that code. Especially since with applets, it's almost always the configuration rather than the code which leads to problems. Your next step should be to write a short simple compilable example which does nothing except the bit which is causing the problem. That would be something which you could reasonably ask somebody to look at.

It's probably some simple configuration thing, like you don't have the ERO.jar file in the right place. I don't think it should take more than 50 lines of code to display what you're trying to do there, maybe even as few as 20.



The only thing really that's loading the ERO.jar file is a method. That's really it. Everything else is updates and checking on some stuff. The method I'm using to get the ERO.jar file is this:



The init() method for the applet is as so:

12 years ago

Ulf Dittmer wrote:Any exceptions would be showing in the Java Console.


Nothing in the Java Console. There are no errors, it just won't show the GUI or execute the ERO.jar file.
12 years ago