jeff krystyan

Greenhorn
+ Follow
since Apr 02, 2012
Merit badge: grant badges
For More
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 jeff krystyan

hey all, trying to figure out something...

my program will compile fine and the applet will start but the appletviewer itself only shows up as a white screen. Can you help?

I'm using textpad. Here's the code. I didn't notate it but it is just a practice code to demonstrate key events. The program moves a square to the right.



10 years ago
@ Jeanne,

thanks for replying.

So, for your first question, yes, the all of the files are in the jar file.

below is the code for the wav files.



The string is passed into this portion of a panel where ImageChanger uses the Timer class...




11 years ago
hey everybody,

I just used the export jar feature in eclipse to create a jar file. The jar file should have contained all of the classes and some .wav and .GIF files. When I run the jar file, the class operations operate as intended but without the images and sounds. Any ideas on this?
11 years ago
Thanks for your reply. I must admit I've given up (for now) trying to figure classpaths out. Going to use eclipse's export jar feature. Thanks anyway.
11 years ago
Hey everyone,

Having some problems with creating a jar file. This is what I've done so far

I found the javac.exe file and added the classpath to both classpath and path in the environmental variables. (Because i was getting javac not recognizable....)

Then I tried to compile it through the command line but i got a message saying that a class in my main class could not be found.

Everything was compiling fine in textPad before but I reopened textpad to see if i had missed something.

Now, none of the classes used in other class are being found, even in TextPad.

It should be said that i know very little about classpaths, i was just following internet instructions to create my jar file.

Also, I believe I'm using JDK6 but i could only find javac.exe file in jdk1.6.0, is that part of the problem?

Thanks for any help.
11 years ago
thank you Maneesh,

i made those changes and it works perfectly now
11 years ago
Hey everybody,

I have a JFrame with a grid layout on it, each grid has a button. What I'm trying to do is remove all the buttons when a button is pushed. I believe I have it correct except that the JFrame won't refresh the revised panel. Advice?

Also, I noticed on some sites that people were able to paste their code in with lined numbers to make referencing it easier. Anyone know how i can do that to make it easier on you all to read? Thanks.

11 years ago
thank you all for the comments. Sorry about the late thanks. I had figured it out and just kept working without checking back in. Thanks again!
11 years ago
Hey everybody,

I'm new to java. I want an app to open a gif file. I'm trying to use the ImageIcon class. My question is...where does the gif file need to be so the the program can find it?

Please assume I know nothing. The gif file is in My Pictures folder right now but I'm not sure where it needs to be.

Thanks,

jjungle
11 years ago