CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: java menu?

  1. #1
    Guest

    java menu?

    where can i find a proffessional looking java menu?


  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: java menu?

    What is your definition of "professional Menu"? :-)

    If you are refering to the menu bar you have seen on many windows application (such as ms word and netscape), Here is the suggestion.

    You can not add menu bar directly to your applet. However, you can add it to a frame. The following is a piece of simple code:

    class MyFrame extends Frame
    {
    public MyFrame() {
    MenuBar mb = new MenuBar();
    mb.add(new MenuItem("Test"));
    setMenuBar(mb);
    resize(200, 100);
    show();
    }
    }




    Good luck, ytsau



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured