Important alert: (current site time 7/15/2013 4:16:09 PM EDT)
 

winzip icon

MenuBuilder

Email
Submitted on: 7/24/2000 11:18:52 AM
By: Adisson Ruiz 
Level: Advanced
User Rating: By 6 Users
Compatibility: Java (JDK 1.1)
Views: 21956
 
     UPDATED! Build full working menus like shown in the screenshot in only two lines. Check it out! Saves you all the hasle of building swing menus for your application. adds mneumonics and keyboards shortcuts with images. It also gives you access to all of the menu components so you can enable and disable and do what ever you fancy. Works for Swing and AWT Menus. NOTE: Images cannot be added to AWT menus. I got rid of all bugs I think, but if you find any, please use the feedback. I would really appreciatte it.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
7/30/2000 5:20:31 PMheh nice

heh nice

(If this comment was disrespectful, please report it.)

 
8/9/2000 12:14:15 PMmike

I am kinda new to java, The picture looks nice, and I downloaded the files, but how do I work with it, or even use it.
(If this comment was disrespectful, please report it.)

 
8/9/2000 7:44:23 PMAdisson Ruiz

if you downloaded all of the files, the example class (I think that is what I called it) you will find a main method. this is the driver for the application. Like c.....
compile the class with the main method in it and it should run. at the command line type

javac [ClassName].java
java [ClassName]

[ClassName] is the name of the file.Note that java is case sensitive.

I hope this is enough to get you going.
(If this comment was disrespectful, please report it.)

 
9/18/2000 6:41:13 PMAnthony Smith

The code needs a bit of working on to get it to compile. Either the MenuBuilder class needs to be static and therefore no instantiation or you need to add a "MenuBuilder var = new MenuBuilder()" in, and change several lines of code. It then works ok.
(If this comment was disrespectful, please report it.)

 
9/18/2000 7:40:12 PMAdisson

The code should not have any compile errros. I did a lot of testing for this class. However it is developed as a package. If you are not using an IDE that can support packages, you may have some errors. Just take out the package menubuilder line. I didn't allow this class to be instantiated because there is no actual data members. Yes, it shoulb be a static class, but when I tried that I got errors..
(If this comment was disrespectful, please report it.)

 
11/27/2002 8:29:47 AM

I did not find any problems with the code :o)
Newayz, nice job.
(If this comment was disrespectful, please report it.)

 
2/5/2003 5:50:51 AM

brilliant!
(If this comment was disrespectful, please report it.)

 
2/4/2004 2:53:03 PM

When i tried to compile the Example.java file i get 14 errors all involving: "cannot resolve symbol" MenuBuilder.addDropDownMenu etc.

Is there any way to fix this?
(If this comment was disrespectful, please report it.)

 
2/9/2004 3:41:55 PM

Can this code save the file from a TEXTAREA? I writed an editor allowing many HTML tags put noway to save to file correctly. I iplemented a save function that save to disk everything but not the CODE written in the TEXTAREA !
Any help greatly appreciated.
I intended to have an editor which can use many languages SPANISH, FRENCH,
LATIN (with special keys AE OE and so
on)and GREEK.

I am better with human languages ;o)

le_premier_bourguignon@yahoo.fr
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.