> hmm.. wat u mean? my keyboard?
Please make the extra effort to write out words such as "please" and "your" and "what" and "you" and "because". The extra keystrokes won't cost much in the way of time, and the enhanced clarity will be appreciated by those communicating on a forum with international readership.
> > hmm.. wat u mean? my keyboard?
>
> Please make the extra effort to write out words such
> as "please" and "your" and "what" and "you" and
> "because". The extra keystrokes won't cost much in
> the way of time, and the enhanced clarity will be
> appreciated by those communicating on a forum with
> international readership.
Hmm ... I wonder why Java forum never do the same check before allowing a new reply to be posted, like what JavaRanch is doing.
so sorry for not explaining clear enough..i need to create an image slider control which the output result will b when i scroll e slider, it will move on to e next image, meaning the slider control bar will control e viewing of the next image..i need to put on to e website using java applet.. thank u for ur kind attention and precious time of eveyone..
> so sorry for not explaining clear enough..i need to
> create an image slider control which the output
> result will b when i scroll e slider, it will move on
> to e next image, meaning the slider control bar will
> control e viewing of the next image..i need to put on
> to e website using java applet.. thank u for ur kind
> attention and precious time of eveyone..
You are still using abbreviations. I don't actually know what all the letter e on the page is supposed to be. I am guessing they are meant to be the but I can't even understand how that is an abbreviation. You is spelt with 3 letters not one. Your is spelt with 4 letters not one.
Be is spelt with 2 letters not one.
halow im here again.. i have tink of a better explaination of my project, that is create a horizontal slider bar, that will display a different image each weight along the slider. So, at each step of the slider - a different image is displayed..so i need to load it up to the website using java applet.. The output of the result will b just seein images being view by e slider bar.. Thank u for ur time and attention.. please please help mi..
Best Regard
From:sharon
Hello hunter9000!! I have tried on the SliderDemo, but seem that i can't get the html file needed. I went to the example index link but no html file is given so i don't really know to how get the SliderDemo done. Could u help me with it? Thank you very much. I also want to ask if the SliderDemo is for applet?
Best Regards:
Sharon
The source files for the examples are provided in the tutorial. It's called SliderDemo.java, SliderDemo2.java, etc. You should be able to figure out the basics of using the slider from those examples.
And thanks for improving your sms lingo, your posts are a lot easier to read that way.
hehe..its good to know that you are comfortable with my words.. By the way i just need to copy the .java fie and the image file under the bin directory is it? Because when i loaded up to the site, it just showed mi a Cross on the top left hand corner.. Thank s alot..
Best Regard:
sharon
> thanks for your help.. but im still stuck.. can i put
> it in tis way, i have created a folder named
> "testing", under this folder i have one file which is
> SliderDemo.java and the rest are the 13 images of
> doggy. Is this the correct way of doin? Thanks
> alot!!!!
Well, I haven't really go through the file, have you compiled it? I notice a block of code:
protected void updatePicture(int frameNum) {
//Get the image if we haven't already.
if (images[frameNumber] == null) {
images[frameNumber] = createImageIcon("images/doggy/T"
+ frameNumber
+ ".gif");
}
Is there where the images will be saved? You need to figure out the path pointing to the images, so that it will show up the images later.
> hmm..i have compiled it using MS Dos but still not
> working.. Can you please help mi to see whether how
> to get the SliderDemo2 done... Really thanks alot for
> your help.. i appreciate it very much..
The straight and simplest way is to copy the whole images folder to where your SliderDemo2.java file is.
sorry.. i am still not able to get it run.. now i have created a folder named testing and inside it contain SliderDemo2.java and the image folder.. Is this correct? As for the command prompt, i went inside the testing directory and it show my SliderDemo.java and image,after that i have created the .class file also.. So how do i continue from there? Thanks alot
> hmm..ya i know about that, i tink the SliderDemo2 is
> not an applet but an application.. Can u confirm me
> with that because im quite confussed over here..
> thank alot Jenson!!!
It is an applet and I've tested the applet would run, maybe your Internet Explorer block Java applet? It should be something to do with your system settings for security purposes, sometime it could be your firewall too, many reasons behind this.
> wow thats great..hmm..can you tell me the steps..
> please!!!!! i have been stuck here for so long..
> you have been a great help jenson.. Thank you very
> much..
You can refer to this thread: http://forum.java.sun.com/thread.jspa?threadID=384170&start=15
im having this error when i run it at command prompt:
C:\testing>java SliderDemo2
Exception in thread "main" java.lang.NoClassDefFoundError: SliderDemo2 (wrong na
me: components/SliderDemo2)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
can please kindly tell mi what error is this and what i need to do to solve this error. Thank you
> wow really thanks alot.. So which directory did you
> put all the 3 files? the 3 files are .htm .java and
> the image folder. :)
Yes, put the .java file and .html file together. Most importantly, remember to compile your java file, and make sure you have a class file generated.
If it still can't work. You might need to install the MS JVM, and disable support of applet with JRE and enable the MS JVM support for applet. Well, this is the only solution I can think of, in order to solve your applet problem (if you did refer to the link I put down here the other day).