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: 156

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

Bookmark and Share

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

Issue No: 156 27 March 2003
12150 subscriber

"...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. Why do I need JSP technology if I already have servlets?
  • 2. On Solaris, Java Advanced Imaging complains about lack of access to an X server...
  • 3. Latest posts on our message board
  • 4. Link to Java FAQ

  • Hello dear friends! Important info, please read.

    Today I inform you about changes that will be introduced in May. During past two years I tried different ways to cover the cost of my site and newsletter running. Last year my site traffic more than tripled. Since August I moved to Virtual Server hosting which costs much more for me and my family. I publish newsletter as a private person and have no sponsors. Total price for hosting and software that I use exceeds now $1000/year. This everything I need to publish my newsletter.

    Unfortunately advertisements cover only 10%.

    Before beginning of May you will have two options:

    1. Free newsletter with three tips per week plus numerous and I agree, annoying some time advertisements. Tips here will be published with 2 months delay comparing to featured newsletter.
    2. Featured newsletter with 5 tips per week with no advertisements and if more than 100 people will ask about it - text version as well. All subscribers of this kind of newsletter will have access to member's area on the site where they can browse archive (all latest) of newsletters. I will also put useful Java related software to member's area. All tips from this area will come to public with two months delay.
      Plus to this all members will get as an introduction gift my e-Book "500 Java Tips!" with latest update "200+ Java Tips". Altogether 700 tips.

    The price for membership will be reasonably low - around $9 - 10/year. I will publish rules online (when they are ready) next week. Today I have only draft version...

    kind regards,

    Tip 1

    Question: Why do I need JSP technology if I already have servlets?

    Answer: JSP pages are compiled into servlets, so theoretically you could write servlets to support your web-based applications. However, JSP technology was designed to simplify the process of creating pages by separating web presentation from web content. In many applications, the response sent to the client is a combination of template data and dynamically-generated data. In this situation, it is much easier to work with JSP pages than to do everything with servlets.


    this tip is based on SUN's FAQ's

    Tip 2

    Question: On Solaris, Java Advanced Imaging complains about lack of access to an X server... ???

    Answer: Java Advanced Imaging versions previous to JAI 1.1.1 used the AWT toolkit to load GIF and JPEG files. This problem is a manifestation of a JDK bug in which creation of the AWT Toolkit class results in an attempt to open the X display. To work around this problem in Java Advanced Imaging versions prior to 1.1.1, either make an X display available to the Java runtime using the DISPLAY environment variable (no windows will appear on the display), or consider running a dummy X server that will satisfy the AWT, such as the Xvfb utility included with the X11R6.4 distribution.

    In the JAI 1.1.1 version, the GIF and JPEG decoders were improved to no longer have a dependency on the X server.
    this tip is based on SUN's FAQ's

    Latest posts on our message board

    Problems with JTables

    Hi Everybody,
    I' m trying to put a []String Array inside a JTable with 4 columns but i can't find the way. I searched TableModels and etc but i didn' t find anything usefull, only simple examples.
    Guys please give some help here, i need it!!!
    more read here...

    JSP error

    I am using J2EE 1.3.1, I have created a simple jsp and deployed using
    but when i access jsp page from browser , I am getting following error
    J2EE SDK/1.3.1 - HTTP Status 500 - Internal Server Error
    what exactly is the problem?
    Jyoti Bhat.
    read more here...

    how to write into a file?!

    could anyone show me how to write into a file via a socket using client-server program ! ? ?
    thank you..
    read more here...

    banking system-please help!

    Hi everyone,
    I've got an assignment to hand in a week time, i was just wondering if anyone is willing to help me out with it.
    the problem iam facing at the moment is to take the input from a text field and insert it into a file.
    the whole program is about a banking system which the user is able to Credit, Debit and check the balance of his or her account. the following is the specification of the program.
    read more here...

    upgrade applet

    i am trying to update this program in order to write an applet to play the "Cat and mouse" game. In this game, the user is a "mouse" who has to find their way safely to a mousehole drawn in the middle of the top of the applet pane. Several cats appear at random positions in the pane and will try to catch the mouse by chasing after it. You lose the game if the cat gets too close to your mouse. You win if you get to the hole before they get near you.
    here is mainpart of the program

    360 degrees panoramic

    where can i find free source code about a Java 360 panoramic image viewer applet?
    sorry, for my poor english
    read more here...

    Problems Veiwing JTables

    Greetings to all
    I am new and I hope that I will be lots of help to you
    Email me anytime
    I have a small JTable problem and I hope you some one here can kindly help me with it.
    I have created a JTable using a TableModel. The table has about 1000 rows and 30 columns. Now initially all columns are visible in the tables viewport area and the data is all squished. So I set the table's prefferedsize to be larger than the jscrollPane's visible area. So the data is nicely spaced out but when I scroll to view the rest of the data it is not visible
    How can I display the rest of the table when I scroll to those regions.
    read more here...


    Hi Folks!
    I have a little problem where on a panel, i am trying to flip an image.. but it seems to flip all images on the screen. I can't seem to get it working.. anybody able to spot the problem?
    It loops thru all images, and only if 'rotated' it should rotate image, draw them all to buffered image and draw it to screen

    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 auto responder!

    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