Easy to Learn Java: Programming Articles, Examples and Tips

Start with Java in a few days with Java Lessons or Lectures


Code Examples

Java Tools

More Java Tools!

Java Forum

All Java Tips


Submit News
Search the site here...
Search the JavaFAQ.nu
1000 Java Tips ebook

1000 Java Tips - Click here for the high resolution copy!1000 Java Tips - Click here for the high resolution copy!

Java Screensaver, take it here

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java programming articles and tips. Please take your copy here.

Take your copy of free "Java Technology Screensaver"!.

Java Newsletters Archive: 151

JavaFAQ Home » Java Newsletters Go to all tips in Java Newsletters

Bookmark and Share

=== [ The Java FAQ Daily Tips, weekly publication ] ===

Issue No: 151 4 March 2003
11823 subscriber

Please read our "500 Java Tips" 387 pages e-Book, first update "100+ Java Tips!" (100+500=600 tips!),

+ set of free Java Tools:
IDE, decompiler, Java to exe (make .exe!)

Recommend us to your friends and colleagues!

"...if you have no mentors around in the initial stages."
"This book has saved me hours of research...""

Foreword: Excuse me for possible mistakes. English is not native language for me.

In this issue:
  • 1. Is there a Java class or component or something like to browse the web inside java Application?
  • 2. I have a piece of code (thread) which runs every x seconds and causes high CPU load.
  • 3. My program wants the capability to place the file physically on to the client machine. Can I use FTP?
  • 4. Latest posts on our message board
  • 5. Link to Java FAQ

  • Hello dear friends!

    Have you entered yet?

    JavaFAQ.nu is proud to announce that we are a sponsor of the March 6 Amber Taylor IT Give-Away promotion. We do not do this very often but thought you would be interested in the products and services for IT Professionals being awarded. There is something for everyone! What is the cost? Not a thing! Enter here. You could win a free 500 Java Tips eBook.

    Tip 1

    Question: Is there a Java class or component or something like to browse the web inside java Application?

    Answer: I know two and they are not free... If you know free component please send me info and I will publish it here.
    HotJava browser from SUN is no longer supported and end date is April 2003.

    1. Clue Web Browser Components:
    Clue Web Browser is the only browser solution designed to realize this new web browser concept. With its modular and scalable architecture, Clue Web Browser can be integrated with any application and run on a wide range of devices, such as PDAs and set-top boxes. Through our relentless pursuit of perfection, Clue Web Browser exhibits a solid implementation of the latest web technologies with excellent performance. It offers rich functionality and flexibility for a wide variety of web-related applications. To meet the specific requirements of different devices, we offer various editions for desktop and embedded devices.

    2. WebWindow 2.0 is a scalable Java browser component. With the WebWindow you can take advantage of Java's "write once, run anywhere" design and run your application on multiple operating systems and device platforms with a wide range of resource limitations. With a small core footprint, WebWindow can be used on devices ranging from PDAs, settop boxes, enterprise servers, and native web browsers all with little or no code changes to the core browser technology.

    By using the WebWindow in your application, you can avoid compatibility issues between different browsers and you can have a truly "100% Java" product. WebWindow can be utilitized in a number of ways in an application ranging from a simple help file displayer to a full fledge UI framework for building dynamic GUIs.

    Java wimps please close your ears ... For the Java programmer who
    thought he knew everything there was to know about Java, have a
    look at the most advanced Java newsletter archived on the website
    http://www.smotricz.com/kabutz Guess what, it won't even cost you
    anything! Subscribe today - you won't be disappointed.

    Tip 2

    Question: I have a piece of code (thread) which runs every x seconds and causes high CPU load. How could I decrease it?

    Answer: You can use static method yield() in the Thread. This method causes the currently executing thread object to temporarily pause and allow other threads (in OS and other programs) to execute.

    50%-75% OFF Ink jet cartridges!. Please save money...(click here)

    Tip 3

    Question: My program wants the capability to place the file physically on to the client machine. Can I use FTP? How? Do I need to read protocol description and implement it from scratch?

    Answer: You can use open source NetComponents package. NetComponents TM provides easy access to FTP, NNTP, SMTP, POP3, Telnet, TFTP, Finger, Whois, and other frequently used Internet protocols. Version 1.3 features newly added BSD R command support.

    NetComponents TM provides one-stop shopping for all your IETF protocol Java programming needs. Access FTP servers from your Java applications, send email from your Java applets, or automate access to Telnet accessible resources. You can do it all with NetComponents!
    You will find it here:
    Please feel free to examine the online API documentation and to download the latest version.

    FREE Your PC From Corrupt Files Now!
    Have the peace of mind knowing your computer is automatically kept
    error-free, 24 hours a day! Safe. Simple. Secure. Silent. This proven,
    automated, and easy-to-use PC health check tool is guaranteed to
    instantly expose harmful files lurking on your computer.

    Get your FREE PC Health Check today at:

    Latest posts on our message board

    gzip file

    I need help again, how no! I'm writing an application which generate SVG files. I want to compress this files to use the .svgz extension. I know that it possible use gzip to compress the file, but I wonder if I can use some Java class to do it.

    I have tried this code...

    Please Help!!!!
    I have to design a simple prototype interface that performs a simple control function. The function is to control a robot which moves up, down, left and right. It only has to be a simple interface which operates from the command window but it needs functionality as people have to test it work. Can you offer me any suggestions on coding for this as I'm really stuck, thank you.
    Please answer here

    Save an image-object as image on the web server..
    For a little kids-homepage I have written an applet, within you can "paint" with the mouse. But now I want to store the image on the server. There is a cgi-script I can call to upload a file (i.e. http://domain.com/cgi-bin/store.cgi?file=image.jpg). How can I do this from the applet? The problem is that I haven't a file "image.jpg" that I could send. In the applet there is only an Image-object. Is it possible to save the file via the cgi-script? Can anybody point me in the right direction?

    Problem while trying to make an executable with Jexegen

    If have downloaded MS SDK for Java 4.0 and I wanted to make an executable. After reading some documents about Jexegen I have to typed this:

    jexegen /main:Studieresultaten /out:Sresult.exe /w /v *.class

    Looking at the details I can see that all the classes has been added. But I always get the following error:

    Warning: Main class specified but main class file was not found.

    Weird, because Studieresultaten.class has been added!!!!

    I have searched on Google for this error, but I can only find either a post that has not been replied or a Chinese post.
    Can anyone help me???

    Importing .swf Flash file into Java Application
    AS far as I understood there is a Java package that is for supporting Java and flash collaboration ))
    For example how can I import flash file into Java application(standalone) or sending information from Java to Flash and opposite.
    Please tell what the package is and where can I download it from.

    movable disks

    I would like to make a JFileChooser that finds the directory to the movable disk. How shall I do?

    JFileChooser chooser = new JFileChooser( new File(xxxxxxxxxx) );

    Please answer here...

    Please ask your questions and help each other at our Java Forum:

    The Java FAQ Daily Tips is a newsletter that is only sent to those who have specifically subscribed to it (double opt-in).

    To subscribe/unsubscribe to "The Java FAQ Daily Tips" weekly edition newsletter visit our page here:

    If you have troubles please contact us: subscription@javafaq.nu

    Link to Java FAQ

    If you have added a link to http://javafaq.nu on your WEB-site, please let us know and you will get listed on our
    "pages linking to us" pages! If your page is a programming is programming relates you will of course get listed in the WEB-directory as well. Also, if you link to us, you have a chance to be listed in this newsletter as well.

    More information and graphics artworks can be found here


    For information on advertising on the Java FAQ's Daily Tips Newsletter, send an email to: adv@javafaq.nu
    You will get the answer immediately from autoresponder!

    Send your comments, questions, praise and complaints to us: comments@javafaq.nu

    Copyright (c) 2000 - 2003 John Andersson, All rights reserved.

     Printer Friendly Page  Printer Friendly Page
     Send to a Friend  Send to a Friend

    .. Bookmark and Share

    Search here again if you need more info!
    Custom Search

    Home Code Examples Java Forum All Java Tips Books Submit News, Code... Search... Offshore Software Tech Doodling

    RSS feed Java FAQ RSS feed Java FAQ News     

        RSS feed Java Forums RSS feed Java Forums

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest 1999-2006 by Java FAQs Daily Tips.

    Interactive software released under GNU GPL, Code Credits, Privacy Policy