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

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

Bookmark and Share

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

Issue No: 182 28 August 2003
14242 subscribers

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

In this issue:
  • 1. What's New in the J2ME Wireless Toolkit 2.0?
  • 2. How can I color in real time user text input?
  • 3. Latest posts on our message board
  • 4. Link to Java FAQ

  • Hello dear friends!

    Tip 1

    Question: What's New in the J2ME Wireless Toolkit 2.0?

    Answer: The J2ME Wireless Toolkit contains everything you need to develop MIDP applications.
    New Emulator Skins
    The J2ME Wireless Toolkit 2.0 includes an entirely new emulator skin, QwertyDevice. Sporting a whopping 640 x 240 pixel color screen and a full keyboard, QwertyDevice represents a wireless communicator, a level beyond a mobile phone.

    The Vanguard of MIDP 2.0
    The J2ME Wireless Toolkit 2.0 emulator implements the MIDP 2.0 specification, which includes dozens of exciting features, including:

    • Secure networking with HTTPS
    • Support for playing simple tones and sampled audio data
    • The ability to create custom item components for forms
    • A game API
    • Use of int arrays to represent and manipulate images
    • A permission-based security architecture
    • A push registry that enables MIDlets to receive incoming network connections

    Check Out the Sound System
    One of the new features in MIDP 2.0 is the ability to play sampled audio and simple audio tones. The J2ME Wireless Toolkit 2.0 supports the full Mobile Media API 1.0.

    Setting MIDlet Permissions

    Working with Protection Domains
    A protection domain determines whether a permission is granted or denied.

    Signing MIDlet Suites

    A Killer Feature: Run via OTA
    To test installation behavior, the push registry, and signed MIDlets use new option in the Project menu, Run via OTA.

    More details can be found here:

    Tip 2

    Question: How can I color in real time user text input?

    Answer: Sometime it is easier to use already developed libraries and save money and time.
    An good example of such method is JSyntaxColor.
    JSyntaxColor is a library for coloring in real time user text input.

    Main features:

    • Standard EditorKit
    • Simple property file for each syntax description
    • Real time switch between syntax descriptions
    • Very compact and fast
    • Inner cache for limiting parsing scope

    Tokens libraries customizable by user
    Color, Underline, Border attributes support
    Sample for Java/SQL/Formula syntax

    Many samples for API interesting parts
    Open source for the registered version
    JDK 1.2 compliant

    Evaluation copy can be found at: http://www.japisoft.com/syntaxcolor/index.html

    Latest posts on our message board
    pop3 mails

    I'm working on a java program that receives pop3 e-mails with attachments. I'm having a problem with updating the message to a status of 'SEEN' - the flags just don't seem to be set. So everytime the program starts, the same message is read again and again.
    Has anyone any ideas??
    please help me here

    StrutsTile Problem with j2sdkee1.3.1 Deploytool

    i have a problem with my tiles plug-in in my struts-config file, when i have the tiles plug-in declaration in struts-config.xml i dont get any errors using verify with Deploytool and im able to deploy may webapps but when i try to run the web application i get a:

    HTTP Status 503 - Servlet action is currently unavailable

    The requested service (Servlet ActionServlet is currently unavailable) is not currently available.

    when i remove the tiles plug-in my ActionServlet works fine my only errors are my name calls to the tileDefinitions.xml.

    my plug-in is:
    thread continues here

    help me please

    I??want to add two jToolbars in a frame, the frame such as Microsoft Internet . but I can't know how to combine the border between MenuBar and ToolBar.anyone can help me?
    please help me here


    I'm studying Electronics Engineering in the University of Rosario (Argentina) and am a beginner Java programmer who needs detailed information and code examples about the use of the Java Communications API (my final project includes the use of the RS 232 interface to share information between two PCs).
    Sun Microsystems' documents on this topic are not tutorials, the books I can get in my country don't cover this sort of I/O and I can't afford to import a book from the USA ( since "1 dollar = 3 pesos" ).
    Would you please send me any information of yours or
    tell me where I could find it on the Internet?
    Jorge D'Agata
    please help me here

    Compositing(image and movie) in Java

    I would like to do some compositing in Java. Currently I'm using QuickTime for Java to do it. It is very easy. However I always get some runtime exception when I execute the program. So I want to switch to pure Java. I want to play a movie as the background, probably using JMF. Then do some animation with some images and text in front of the movie. Is this possible? Any advice or sample program?
    Thanks in advance.
    please help me here

    JTabbedPane and focus issue

    Maybe I'm just doing things a bit different than anyone else and I'm wrong. Here's the deal: I have a focus traversal policy for each frame in my app. When I used a personally-created subclass of JTabbedPane it was trying to set focus on a component on a non-visible tab. So I fixed that problem by not allowing focus to go to non-visible tab panels.

    Now I want, on a tab change, to set focus on the first focusable component of the new tab. But at the time I get a change event to hook this call the old tab is still visible and the second one isn't.
    thread continues here

     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