dantinkakkar 19 Junior Poster
dantinkakkar 19 Junior Poster

Try this - seems fine to me; you can hack into the JavaScript if you want to adjust the speed!

http://www.kryogenix.org/code/browser/smoothscroll/#p3
http://www.kryogenix.org/code/browser/smoothscroll/smoothscroll.js

// Now loop all A tags until we find one with that name
    var allLinks = document.getElementsByTagName('a');
    var destinationLink = null;
    for (var i=0;i<allLinks.length;i++) {
      var lnk = allLinks[i];
      if (lnk.name && (lnk.name == anchor)) {
        destinationLink = lnk;
        break;
      }
    }

I'm not sure if JS has a function to make the process "wait" for sometime, but if you do - I guess it goes somewhere in here.

dantinkakkar 19 Junior Poster

1. The username and password don't match/work/account not up yet.
2. You haven't told us what the old elements are exactly, so how are we supposed to recognize them?

Please resolve these issues and get back to me [post on this thread]. Then I'll see what I can do! :)

dantinkakkar 19 Junior Poster

For sure! ;)

dantinkakkar 19 Junior Poster

You must use JavaScript. This is not the correct board. Please refer to the JavaScript Forum. I think you must have confused JavaScript with Java. They're different. JavaScript is an Internet scripting language, while Java is a full-fledged programming language. You shouldn't have deducted a repo from him for that.

dantinkakkar 19 Junior Poster

Thank You for those encouraging words! :)
Feeling confident of myself now.

dantinkakkar 19 Junior Poster

And I'm a 16-year old kid with an unshaved beard and am still in high school. :P :D

dantinkakkar 19 Junior Poster

Don't use Google Docs then! Even Excel provides a similar functionality - use it and implement over your intranet!

.kaine commented: This post has nothing to do with my topic +0
dantinkakkar 19 Junior Poster

Does this help?

http://dks.sics.se/JDHT/

dantinkakkar 19 Junior Poster

@paulas24, Ubuntu 10.04 (Lucid Lynx) LTS comes pre-installed with Brasero Disc Burner which can be found under Applications > Sound and Video > Brasero Disc Burner .

Hope this helps! :)

dantinkakkar 19 Junior Poster

You are welcome! :)

Since you're problem is solved, please mark the thread as solved so that it can be used to help others.

dantinkakkar 19 Junior Poster

Umm... What I suggest is, take two global variables frmc and buttonc , and if they're equal to 0, add them up by 1 every time a JPanel/JButton is clicked. When both of them are equal to 1; do whatever you wish to.

dantinkakkar 19 Junior Poster

((20^2)+80)/40

dantinkakkar 19 Junior Poster

Or you may want to go ahead and toil for around one year learning server-side scripts, PHP/MySQL, HTML, CSS, etc. etc. If you're learning, though, do visit

http://www.w3schools.com/

If you wanna search for someone who can do this, then, search.

Oh, and Google does provide an excellent form builder that's somewhere inside Google Docs.

http://support.google.com/docs/bin/answer.py?hl=en&answer=87809

dantinkakkar 19 Junior Poster

You're going wrong there. Suppose your index.html file is located at the root /index.html and your about folder is located in the same folder /about , you will access it using /about/whatever.html .

I hope your problem is solved now.

dantinkakkar 19 Junior Poster

Be clear. Do you mean that you want the WINDOW size or the size of your webpage?

dantinkakkar 19 Junior Poster

This will help you in reading the image properties, well some of them, at least:

http://docs.oracle.com/javase/tutorial/2d/TOC.html

dantinkakkar 19 Junior Poster

So, it is for simple interest or compunded interest? The calculation is pretty different for both of them, see. If you would explain further...

And as for the JOptionPane.showMessageDialog() part, try this code: (Replace your text with it's text)

JOptionPane.showMessageDialog(null, "alert", "alert", JOptionPane.ERROR_MESSAGE);
dantinkakkar 19 Junior Poster

These links should prove useful to you:

http://www.deitel.com/articles/java_tutorials/20060422/PlayingVideowithJMF/
http://docs.oracle.com/javase/tutorial/sound/index.html

Note that I've provided the link to the sound tutorial since the user may want to change the volume of audio output too. For the rest, have a look at the first link, and best of luck! :)

dantinkakkar 19 Junior Poster

Thank stul. :D

dantinkakkar 19 Junior Poster

Alright, sure! :) Happy to help! :D

dantinkakkar 19 Junior Poster

What you're looking at is a good bit of JavaScript work. You'll need to trim the string from the '@' part, and put the rest, to rest. I really don't know how you are going to find the name of the college exactly, though you can always create a database and then refer towards it using a server-side language/script. You might find the trim() function in JS pretty useful. This forum is not for this post, though :P

Try posting in the JavaScript or PHP forum. AJAX is your friend here, too. Plus, I recommend w3schools.com

dantinkakkar 19 Junior Poster

I agree with @teedoff. I recommend that you search for a friend who has experience in these matters, or else you're looking at a lot of time wasted on learning this stuff. The problem is in getting in the flow of it, once you do that; tags and all won't give you a problem, but if you're not in the flow of it, either invest in some good crash course, or Find-A-Friend.

dantinkakkar 19 Junior Poster

Do you have it uploaded somewhere? If you do, I can help you better. If you can not do it immediately, don't. I'll review your code afterwards! :)

A link is better anyday, however.

dantinkakkar 19 Junior Poster

So, what is the problem you're facing? I can't help you till you define your problem in lucid terms. In this forum, we won't solve the entire thing for you. Tell me where you're stuck exactly.

dantinkakkar 19 Junior Poster

@riahc, do the following:

switch e.getLocalizedMessage() with e.printStackTrace()
for a more complete error message, and convey the exact error message! :)

dantinkakkar 19 Junior Poster

I didn't quite understand what you meant by saying you want to install a Java database in NetBeans! If you're new to Java-Database programming, better check out:

http://docs.oracle.com/javase/tutorial/jdbc/index.html

This'll set you on your way to DB programming. You don't "install" a database in NetBeans. I hope that makes it clear! I will be more than happy to explain the concept if you wish so...

If you mean that you want to use GlassFish,
http://java.sun.com/developer/technicalArticles/glassfish/GFBasics.html

If you mean that you wanna use Derby, this tutorial is good and will put you on the right track:
http://netbeans.org/kb/docs/ide/java-db.html

Happy Programming!
Cheers! :)

dantinkakkar 19 Junior Poster

Since it is working in a separate program, the only and obvious reason due to which the file is not getting erased is since the OutputStream is not closing properly. What I suggest is that you write a separate module for deleting the code and make it executable. Then, access the application with your code so that it deletes all of that in a separate process and the file is not in use any longer. Otherwise, put in a bit of work and find out what is not closing. I suspect that the problem lies where you're using pre-built libraries. Something is not closing the output stream.

dantinkakkar 19 Junior Poster

Ya, I got what you said, when you posted the Wikipedia link. Too lazy to disturb Google, I guess! :P :D

dantinkakkar 19 Junior Poster

@Philip. It's different for India, so not my fault there, I guess :P

And in my most recent snippet do delete and replace Line 35 with "else"

dantinkakkar 19 Junior Poster

:\ lemme think

dantinkakkar 19 Junior Poster

Umm, Philip: I really don't understand what you're saying. The output it has produced (12,34,567) is perfectly correct! I guess you guys put commas after every 3 numbers, it's different here in India! :) We have lakhs and crores, not millions/trillions. We put a comma only before the last three, except for that, it's after every 2.

dantinkakkar 19 Junior Poster

There're two things that I'd like to ask, now that you've cleared that up:

1. Did you try deleting with a separate piece of code in a separate file, that is, instead of doing it in the same program?

2. The method zipFolder(), does it close up everything?

dantinkakkar 19 Junior Poster

There you go... But what do you mean by recursive - like every 3 times? (CODE doesn't account for decimals or negative numbers)

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 *
 * @author dantinkakkar
 */
public class Main
{
    public static void main(String args[])
    {
      try
      {
        String rcb = new BufferedReader(new InputStreamReader(System.in)).readLine();
        if(rcb.length()>3&&rcb.length()%2!=0)
        {
         char abc[] = rcb.toCharArray();
         for(int i=0;i<abc.length-3;i++)
         {
             if((i+1)%2==0)
                System.out.print(abc[i] + ",");
             else
                 System.out.print(abc[i]);
         }
         for(int l=abc.length-3;l<abc.length;l++)
             System.out.print(abc[l]);
        }
        else if(rcb.length()>3&&rcb.length()%2==0)
        {
         char abc[] = rcb.toCharArray();
         for(int i=0;i<abc.length-3;i++)
         {
             if((i+1)%2!=0)
                System.out.print(abc[i] + ",");
             else if(i%2==0)
                 System.out.print(abc[i]);
         }
         for(int l=abc.length-3;l<abc.length;l++)
             System.out.print(abc[l]);
        }
        else
        {
            System.out.println(rcb);
        }
         }
      catch(java.io.IOException e){e.printStackTrace();}
    }

}
dantinkakkar 19 Junior Poster

Hey, chill riahc, don't turn it into a battlezone. Just post your code, and I'll help you out with it! :)

dantinkakkar 19 Junior Poster

Haha. You don't expect it to work the first time. It has to have errors, or I'm not human. Let me correct it, wait. :)
Yup, got it. Forgot to include4 the odd-even number logic, AND there's an ArrayOutOfBoundsException. Just wait. :P

dantinkakkar 19 Junior Poster

It's their way of earning a quick buck. Earlier, I expected an out-of-court settlement. Either Google was willing to do that after being intimidated by Oracle and Oracle took the extreme step in the want of some more cash, or Google didn't get intimidated by Oracle's legal notice and decided to give them a run for their money. Oracle Corporation has nothing to gain nothing from this case except for a bad reputation and severe defeat. They've no case since Java is free-to-use. I still firmly believe that Oracle is looking forward to nothing except a quick buck.

I guess that's why LibreOffice was launched. The OpenOffice.ORG developers feared that now Oracle has acquired SUN, their project would be scrapped. Nothing like that happened, except for the making of LibreOffice and Canonical removing OpenOffice.ORG from it's official distributions and replacing it LibreOffice; which is right, I think. We all would have been better off if SUN wouldn't have been acquired, after all, I guess.

dantinkakkar 19 Junior Poster

*nowords*

Let's just try to solve his problem, and ignore the blabbity blap. That's what I tried to explain to him, that he might've left an output stream open; but he does need to provide the image-writing code for us to understand whatever his problem is: my point is, @riahc3 is not explaining his problem correctly.

dantinkakkar 19 Junior Poster

Can you tell me what Operating System are you using? Like, I'm asking because you're saving and deleting from the "root", if I'm interpreting what you said correctly. If it's Linux, we do have a problem on our hands here and I can understand the usage of forceDelete . I dunno why you would do that on win32 if you're saving to the root: taking the root as Local Disk C:

dantinkakkar 19 Junior Poster

The code to delete the files in a separate program?

dantinkakkar 19 Junior Poster

You may also want to discuss the problem with your clients.

dantinkakkar 19 Junior Poster

Add to the previous post:

http://www.daniweb.com/software-development/java/code/413537

Check this out. :)

( Desktop API Example, and if you're confused about the writing-to-file part; just use the ImageIO.write(params) function :) )

dantinkakkar 19 Junior Poster

No, you don't close that. It's different. A little more code, please?

And before that, just try deleting the file with a separate piece of code after writing to it once. Like, try deleting it programmatically in a different program. If that doesn't work, give a little more code - the writing part.

dantinkakkar 19 Junior Poster

After generating the BMP file, did you close your Output Stream?

Not closing may be the cause.

dantinkakkar 19 Junior Poster

If you can explain what it's use is...

dantinkakkar 19 Junior Poster

Have you tried placing another BMP file and then trying to delete it? There may be a problem with the specific BMP file. Just give it a try, and if it still doesn't get erased, re-post; and I'll see what I can do.

dantinkakkar 19 Junior Poster

Hey there! Can you please give us a working link of a practical example of your code? That would prove very useful in helping you as then I can edit off my browser, and I won't have to erase every number that has been added. It would be a great help. Or perhaps you should just post the part where you are having a problem.

dantinkakkar 19 Junior Poster

What you are looking for is the Desktop API. You can simply write the BufferedImage to a file (temporary, of course), and then use the Desktop API to send the file to the printer (read up on the Desktop API here: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/ it's pretty easy to manipulate). Then, do away with the file, and your job is done.

dantinkakkar 19 Junior Poster

You're welcome!
And do run the examples once; the code is not complicated at all, and best of luck with whatever you're making/trying to do! :)

dantinkakkar 19 Junior Poster

:D I had no idea!
Well, from now on, I'll put it as my signature, so at least members on posts where I answer and contribute will mark their threads as solved. LOL :D