★ wanayoo — archive 1999 http://java.webdeveloper.com/BMMenu/MenuLoaderTesterJava.htmlNouvelle recherche | Portail wanayoo
Attend Be an Exhibitor Be a Sponsor


Find a Web Host With:
CGI Access
DB Support
NT Servers
UNIX Servers
Telnet Access

advanced search
Internet News
Internet Investing
IT
Windows Technology
Linux/Open Source
Developer
Interactive Marketing
xSP Resources
Small Business
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertise
Corporate Info
Newsletters
E-mail Offers
Be a Commerce Partner
Web Hosting Specials
Free Barter Account
Hacker's Secrets
Website Monitoring
Free Search Traffic
MLM Training
Internet Jobs
Lowest Tech Prices
Live-Work in Australia
Shop For Computers
FlashKit
Gif.com
HierMenusCentral
JavaBoutique
JavaScript.com
JavaScriptSource
WebDev Jobs
JustSMIL
ScriptSearch
StreamingMediaWorld
Web Hosts
WebDevelopersJournal WDVL
WebDeveloper.com
WebReference.com
XMLFiles.com
CGI
HTML
Java
JavaScript
Web Design and Promotion
Web Site Development
E-mail Address:


Can you receive
HTML e-mail?

Yes   No

Zip Code:



MenuLoaderTester.java



import java.awt.*;
import java.io.*;

public class MenuLoaderTester extends Frame {

    MenuLoaderTester(String filename) throws IOException{
        Reader r = new FileReader(filename);

    }
    public boolean handleEvent(Event evt) {
        if(evt.id == Event.WINDOW_DESTROY)
            System.exit(0);
        else
            return super.handleEvent(evt);
        return true;
    }

    public static void main(String[] args)
        throws IOException
    {
        if( args.length != 1 ){
            System.out.println("Usage: java MenuLoader bookmark.htm");
            return;
        }

        Menu m = new Menu("Bookmarks");
        MenuBar mb = new MenuBar();
        mb.add(m);

        Frame f = new MenuLoaderTester(args[0]);
        f.setSize(300,200);
        f.setMenuBar(mb);
        f.show();

        Reader r = new FileReader(args[0]);
        MenuLoader l = new MenuLoader(m, r);
        System.out.println("Starting menu loader");
        l.start();
    }

}

Return to Bookmark Menu Applet

internet.com logo
















WebDev News

Q&A: Microsoft XML Architect Jean Paoli

Office 2003: To Each According to His Need

Business Process Spec Handed Off to OASIS, Not W3C





Download4J Servlet
Download4J is 100% JAVA component (Servlet + JavaBean) that allows users to download files.
Download of the Week
World Clock
World Clock is Java applet that shows real time including daylight savings time in 40 major cities around the world.

JB User Poll
As a JavaBoutique Reader what kind of articles do you prefer?
The JavaBoutique Top 15:
1. ChompText
2. PingPong
3. NavBar
4. DJPopMenu
5. RushHour
6. 3DMaze
7. AnimLetters_anim
8. Encyclo
9. AScroll2
10. BMMenu
11. Nibbly
12. BSCOutline
13. BMI
14. Viewer
15. Distorter
Want more? Check out our Top 100!

Refer-It
Affiliate Program and Referral Directory.
New on internet.com
Business Process Spec Handed Off to OASIS
In a contentious issue of two groups working toward the same end, OASIS will get to appraise the Business Process Execution Language specification while the W3C will continue to work on advancing BPEL's counterpart, Web Services Choreography.

Office 2003: To Each According to His Need
Microsoft provides greater visibility into its Office 2003 strategy and its decision to provide capabilities in various editions according to need.

Centrino Chic
Sony puts Intel's new Pentium M and 802.11b wireless technology into a swoopy, silvery successor to its popular Vaio 505 slimline notebooks, with performance and battery life to back up its elegant looks. But are the Vaio Z1A's price and screen a bit too much of a good thing?


The Event For Leading Edge Flash Development

Copyright 2003 Jupitermedia Corporation All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/