|
-
March 5th, 2000, 04:00 PM
#1
java menu?
where can i find a proffessional looking java menu?
-
March 6th, 2000, 01:06 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|