Home Tutorialhelp Comment i've got this Error

 
 

Comment

salah
i've got this Error,
March 22, 2009 at 9:56 AM

--------------------Configuration: <Default>--------------------
C:\Java Test\Menu.java:34: duplicate class: FileMenu
class FileMenu extends Menu implements ActionListener {
^
C:\Java Test\Menu.java:57: duplicate class: HelpMenu
class HelpMenu extends Menu implements ActionListener {
^
C:\Java Test\MainWindow.java:11: add(java.awt.Menu) in java.awt.MenuBar cannot be applied to (FileMenu)
mb.add(fileMenu);
^
C:\Java Test\MainWindow.java:12: add(java.awt.Menu) in java.awt.MenuBar cannot be applied to (HelpMenu)
mb.add(helpMenu);
^
C:\Java Test\Menu.java:9: cannot find symbol
symbol : constructor FileMenu(Menu)
location: class FileMenu
FileMenu fileMenu = new FileMenu(this);
^
C:\Java Test\Menu.java:10: cannot find symbol
symbol : constructor HelpMenu(Menu)
location: class HelpMenu
HelpMenu helpMenu = new HelpMenu(this);
^
C:\Java Test\Menu.java:12: add(java.awt.Menu) in java.awt.MenuBar cannot be applied to (FileMenu)
mb.add(fileMenu);
^
C:\Java Test\Menu.java:13: add(java.awt.Menu) in java.awt.MenuBar cannot be applied to (HelpMenu)
mb.add(helpMenu);
^
C:\Java Test\MainWindow.java:36: cannot find symbol
symbol : constructor Menu(java.lang.String)
location: class Menu
super("File");
^
C:\Java Test\MainWindow.java:39: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class FileMenu
add(mi = new MenuItem("Open"));
^
C:\Java Test\MainWindow.java:41: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class FileMenu
add(mi = new MenuItem("Close"));
^
C:\Java Test\MainWindow.java:43: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class FileMenu
add(mi = new MenuItem("Exit"));
^
C:\Java Test\MainWindow.java:59: cannot find symbol
symbol : constructor Menu(java.lang.String)
location: class Menu
super("Help");
^
C:\Java Test\MainWindow.java:62: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class HelpMenu
add(mi = new MenuItem("Basics"));
^
C:\Java Test\MainWindow.java:64: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class HelpMenu
add(mi = new MenuItem("Advanced"));
^
C:\Java Test\MainWindow.java:66: cannot find symbol
symbol : method addSeparator()
location: class HelpMenu
addSeparator();
^
C:\Java Test\MainWindow.java:67: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class HelpMenu
add(mi = new CheckboxMenuItem("Manual"));
^
C:\Java Test\MainWindow.java:70: cannot find symbol
symbol : constructor Menu(java.lang.String)
location: class Menu
Menu subMenu = new Menu("Miscellaneous");
^
C:\Java Test\MainWindow.java:71: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class Menu
subMenu.add(mi = new MenuItem("Help"));
^
C:\Java Test\MainWindow.java:73: cannot find symbol
symbol : method add(java.awt.MenuItem)
location: class Menu
subMenu.add(mi = new MenuItem("Other Option"));
^
20 errors

Process completed.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
General

Menus
C:\newprgrm>java MainWindow Download this example.  ... Menus       We can..., separator, menu etc. Following are the steps to to add menus to any Frame: You 

General

Java AWT Package Example
Java AWT Package Example       In this section you will learn about the AWT package of the Java. Many running examples are provided that will help you master AWT package. Example 

Java-Tutorials

Create menus and submenus in Java
Create menus and submenus in Java       In this section, you will learn about creation of menus, submenus and Separators in Java Swing. Menu bar contains a collection of menus 

General Information

What is AWT in java
What is AWT in java In this Example we will describe awt in java. The awt in java stands for Abstract Windowing Toolkit and is a package... In this example We have create frame in java AWT package. The frame in java works 

Java-Tutorials

Hash Table for maintaining popup menus in Java
Hash Table for maintaining popup menus in Java  ... of maintaining popup menus through hash table in your Java program. This section... to create and maintain popup menus in Java. All the elements listed in the hash 

Java Beginners

awt
Java AWT Applet example  how to display data using JDBC in awt/applet 

Swing AWT

java compilation error - Swing AWT
java compilation error   NestedPopupMenu n = new NestedPopupMenu(); getting error as "local variable n is never read  Hi dharani...); } } --------------------------------------------------- Read for more information. http://www.roseindia.net/java/ Thanks 

Swing AWT

Java Compiler error - Swing AWT
Java Compiler error  Hi, I try to add quartz Lib in my HelloQuartz application. When I run HelloSchedule, I get this error: "Exception in thread... can add Jar File in Java Build Path Library. i get this message : " No entries 

Swing AWT

Java logical error - Swing AWT
Java logical error  Subject:Buttons not displaying over image Dear Sir/Madam, I am making a login page using java 1.6 Swings. I have want to apply picture in the backgoud of the frame and want to place buttons 

JSP-Tutorials

Create a Popup Menus with Nested Menus in Java
Create a Popup Menus with Nested Menus in Java  ... a nested popup menu in Java Swing. When you click the right mouse button... of menus for the 'New' menu item from the main popup menu list.  Here 

Swing AWT

java programming - Swing AWT
java programming  Develop a simple paint like program that can draw basic graphical primitives in different dimensions and colors. use appropriate menus and buttons 

Applet Questions

java compilation error - Applet
://www.roseindia.net/java/example/java/awt/ Thanks...java compilation error  hi friends the following is the awt front design program error, give me the replay E:\ramesh>javac 

Swing AWT

Swing - Swing AWT
initialize the String variable Str therefore you got that error. For more information, visit the following link: http://www.roseindia.net/java/example/java/swing/get_jtextfield_value_from_anothe.shtml Thanks 

Java Server Faces Questions

JSF imple using menus,header,body - Java Server Faces Questions
JSF imple using menus,header,body  Hi All, Could you please provied an examples of JSF implementation of Menus(alist two menusitmes),header,body and footer.   Hi Friend, Please visit the following link 

Swing AWT

awt - Swing AWT
, For solving the problem visit to : http://www.roseindia.net/java/example/java/awt/ Thanks... market chart this code made using "AWT" . in this chart one textbox when user 

Java Beginners

awt in java
awt in java  using awt in java gui programming how to false the maximization property of a frame 

Java Beginners

Graphical calculator using AWT - Java Beginners
... But i got some errors while compiling some of them i made clear but still one error...) { if (m_startNumber) { action_clear(); m_displayField.setText("ERROR..._clear(); m_displayField.setText("Error"); } m_previousOp 

Java Interview Questions

Java AWT
Java AWT  What interface is extended by AWT event listeners 

General

java awt package tutorial
Java AWT Package In Java, Abstract Window Toolkit(AWT) is a platform independent widget toolkit for windowing, graphics, and user-interface. As the Java... is used by each AWT component to display itself on the screen. For example 

JSP-Tutorials

What is AWT in java
What is AWT in java      .../api/java/awt/package-summary.html... available with JDK. AWT stands for Abstract Windowing Toolkit. It contains all classes 

Date Calendar

date and time in awt(java)
date and time in awt(java)  sir, do you have an example of date in awt java which can be view over a textfield.   Display time in JTextField import java.util.*; import javax.swing.*; import java.awt.event.*; public 

Swing AWT

AWT-swings tutorial - Swing AWT
://www.roseindia.net/java/example/java/swing/ http://www.roseindia.net/java/example/java...AWT-swings tutorial  hello sir, i am learnings swings and applets.. i want some tutorials and some examples related to swings.. thank you sir 

Java Interview Questions

Java AWT
Java AWT  What is meant by controls and what are different types of controls in AWT 

Java Beginners

java-awt - Java Beginners
java-awt  how to include picture stored on my machine to a java frame? when i tried to include the path of the file it is showing error. i have attached the error AwtImage.java:13: illegal escape character img 

Swing AWT

java - Swing AWT
information, http://www.roseindia.net/java/example/java/awt/ Thanks...java  i want a program that accepts string from user in textfield1 and prints same string in textfield2 in awt   hi, import java.awt. 

Swing AWT

Java Dialogs - Swing AWT
/springlayout.html http://www.roseindia.net/java/example/java/awt/borderlayout-example... visit the following links: http://www.roseindia.net/java/example/java/swing...Java Dialogs  a) I wish to design a frame whose layout mimics 

Swing AWT

JFrame components printing - Swing AWT
... but i go through the link that you have specified http://www.roseindia.net/java/example/java/swing/Print.shtml and downloaded the codes and compiled it got errors and i removed that error and i executed program when i press print 

Swing AWT

JFrame components printing - Swing AWT
... but i go through the link that you have specified http://www.roseindia.net/java/example/java/swing/Print.shtml and downloaded the codes and compiled it got errors and i removed that error and i executed program when i press print 

Swing AWT

JFrame Components Printing - Swing AWT
... but i go through the link that you have specified http://www.roseindia.net/java/example/java/swing/Print.shtml and downloaded the codes and compiled it got errors and i removed that error and i executed program when i press print 

Java Tips and Examples

Java AWT Package Example
 

PHP Questions

I GOT ERROR FOR MY PROJECT
I GOT ERROR FOR MY PROJECT  Dear Friend/ RoseIndia Team, Firstly I would to thank u Guys help me so many time.. I got error on my little project when running at server. please correctly my error Guys... ERROR CODE: "LOGIN 

Swing AWT

Java - Swing AWT
Java    Hi friend,read for more information,http://www.roseindia.net/java/example/java/swing 

Swing AWT

query - Swing AWT
java swing awt thread query  Hi, I am just looking for a simple example of Java Swing 

Swing AWT

awt list item* - Swing AWT
information. http://www.roseindia.net/java/example/java/awt/ Thanks...awt list item*  how do i make an item inside my listitem...); choice.add("Java "); choice.add("Jsp"); choice.add("Servlets 

Applet Questions

AWT Tutorials
AWT Tutorials  How can i create multiple labels using AWT????   Java Applet Example multiple labels 1)AppletExample.java: import javax.swing.*; import java.applet.*; import java.awt.*; import 

Blog

AWT basics
AWT documentation AWT example AWT manual AWT tutorial...AWT basics Are you looking for the AWT Basics to help you learn AWT quickly? Here we have provided you the links to our AWT tutorials. AWT stands 

Swing AWT

java - Swing AWT
java  how to use JTray in java give the answer with demonstration or example please 

Framework Questions

error in sample example
error in sample example  hi can u please help me XmlBeanFactory class is deprecation in java 6.0 so, pls send advance version class   Use XmlBeanFactory(Resource) with an InputStreamResource parameter 

Swing AWT

java swings - Swing AWT
. http://www.roseindia.net/java/example/java/swing/draw-simple-bar...java swings  I am doing a project for my company. I need a to show... write the code for bar charts using java swings.  Hi friend, I am 

Swing AWT

AWT code for popUpmenu - Swing AWT
for more information. http://www.roseindia.net/java/example/java/awt/pop...AWT code for popUpmenu  Respected Sir/Madam, I am writing a program in JAVA/AWT.My requirement is, a Form consists of a "TextBox" and a "Button 

Swing AWT

scrolling a drawing..... - Swing AWT
information. http://www.roseindia.net/java/example/java/swing/use-canvas... you suggest something or the error which I might be making ?  Hi friend 

Swing AWT

java - Swing AWT
Java Implementing Swing with Servlet  How can i implement the swing with servlet in Java? Can anyone give an Example??   Implementing Swing with Servlet Example and source Code Servlet SwingToServlet 

JSP Servlet Questions

Dropdown menus onchange atribute
Dropdown menus onchange atribute  Can I know how do we get the drop... of vehicle and populate a drop down menus displaying a list of reg no of that type of vehicle. for example: table name: vehicle type regno 

Swing AWT

Java - Swing AWT
Java   I have write a program to capture images from camera and scanners,I got image in panel but how should i save this image through save dialogbox at any location ...plz help  Hi Friend, Try the following code 

Swing AWT

java swing - Swing AWT
: http://www.roseindia.net/java/example/java/swing/ Thanks...java swing  how to add image in JPanel in Swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image. 

Swing AWT

java - Swing AWT
java  how can i add items to combobox at runtime from jdbc   Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/AddRemoveItemFromCombo.shtml Thanks  Hi Friend 

Swing AWT

java-swings - Swing AWT
://www.roseindia.net/java/example/java/swing/ Thanks. Amardeep...java-swings  How to move JLabel using Mouse? Here the problem is i have a set of labels in a panel. I want to arrange them in a customized order 

Swing AWT

Java - Swing AWT
. http://www.roseindia.net/java/example/java/swing...("Paint example frame") ; getContentPane().add(new JPaintPanel 

Java Beginners

java awt calender
java awt calender  java awt code for calender to include beside a textfield 

Applet Questions

JAVA AWT BASE PROJECT
JAVA AWT BASE PROJECT  suggest meaningful java AWT-base project 

JSP Servlet Questions

Java compilation error - JSP-Servlet
this file attachment in jsp.. I've been tried a lot of methods, but none of them is working.. Please help to solve this problem.. I've tried the example given...Java compilation error  Hi, im trying to do a report creation using 

Swing AWT

Help Required - Swing AWT
JFrame("password example in java"); frame.setDefaultCloseOperation...(); } }); } } ------------------------------- Read for more information. http://www.roseindia.net/java/example.... Try again.","Error Message", JOptionPane.ERROR_MESSAGE 

Swing AWT

java - Swing AWT
ie) { System.out.println("Error:"+ie.getMessage()); } } public 

Swing AWT

java - Swing AWT
What is Java Swing AWT  What is Java Swing AWT 

Swing AWT

java - Swing AWT
{ JOptionPane.showMessageDialog(null,"Incorrect login or password","Error 

Java-Tutorials

Create a Container in Java awt
Create a Container in Java awt       Introduction This program illustrates you how to create...; } } Download this example 

Swing AWT

SWINGS - Swing AWT
more information,Examples and Tutorials on Swing,AWT visit to : http://www.roseindia.net/java/example/java/awt/ http://www.roseindia.net/java/example/java 

Java Interview Questions

Java AWT event hierarchy
Java AWT event hierarchy  What class is the top of the AWT event hierarchy?  The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy 

Java Interview Questions

Java AWT
Java AWT  What is the relationship between the Canvas class and the Graphics class 

Java Interview Questions

Java AWT
Java AWT  How can the Checkbox class be used to create a radio button 

JDBC Questions

error - JDBC
error  i wrote the program using dbms type 4 driver.it is comipled,i got a errors d:temp> java DBConnect db Connect Example...(String[] args) { System.out.println("db Connect Example."); Connection 

JDBC Questions

awt jdbc
awt jdbc  programm in java to accept the details of doctor (dno,dname,salary)user & insert it into the database(use prerparedstatement class&awt 

Java Beginners

java error - Java Beginners
. But if I want to run that program the fetches me the following error. For example for file: Test.java C:\Program Files\Java\jdk1.6.0_17\bin>javac Test.java...java error  Hello sir, on compiling any program from command prompt 

Java Beginners

displaying image in awt - Java Beginners
to display image using awt from here and when I execute the code I am getting error like: D:\netbeans\myjavaappl\src\ImageDemo.java:21: incompatible types... ActionListener{ JFrame fr = new JFrame ("Image loading program Using awt"); Label 

Java Interview Questions

awt - Java Interview Questions
awt  what is the difference between awt and swings  Hi friend, These are basically the main differences between awt and swing. 1.swing components sits on the top of AWT components and do the wiork. 2.AWT 

Development process Questions

i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public...,struts jar files and i got an error in saveErrors() error Heading cannot find 

Hibernate Questions

Java Compilation error. Hibernate code problem. Struts first example - Hibernate
Java Compilation error. Hibernate code problem. Struts first example  Java Compilation error. Hibernate code problem. Struts first example 

Java Beginners

Java Compilation error - Java Beginners
Java Compilation error  I got this error while convert java to pdf... Exception:java.lang.IndexOutOfBoundsException: reserve - incorrect column/size can somebody told me how to handle this error...  Hi Friend 

Java Beginners

runtime error - Java Beginners
runtime error  I created a sample java source ,compiled it succesfully using command prompt but when i tried to run i got the folowing error " Exception in thread "main" java.lang.UnsupportedClassVersionError" I have set 

Swing AWT

JTable Cell Validation? - Swing AWT
://www.roseindia.net/java/example/java/swing/ Thanks  it's not exactly...JTable Cell Validation?  hi there please i want a simple example... in the second or third column error message appear,and if you don't change the value 

Applet Questions

JavaThread AWT-EventQueue-176 - Applet
JavaThread "AWT-EventQueue-176  Hello, I am getting some dump files...? # # An unexpected error has been detected by HotSpot Virtual Machine... # # Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode) # Problematic frame 

JavaScript Questions

error
of framework used and also the JDK version. This type error also comes when java file is complied in old version of java and used on latest version. Thanks 

Java Beginners

Error - Java Beginners
: Enter the HexaDecimal : I got error in the line String status=session.getAttribute-----> Type of error 

Swing AWT

Java Swings problem - Swing AWT
Java Swings problem  Sir, I am facing a problem in JSplitPane. I want the divider in the splitpane to be customized. I have a splitpane... pane. For example, if the split pane is of dimension (0,0,100, 400), then divider 

Swing AWT

tree - Swing AWT
tree  example of tree java program   Hi Friend, Please visit the following code: http://www.roseindia.net/java/example/java/swing/TreeComponent.shtml http://www.roseindia.net/java/example/java/swing 

Java Beginners

java awt components - Java Beginners
java awt components  how to make the the button being active at a time..? ie two or more buttons gets activated by click at a time 

Java-Tutorials

Event handling in Java AWT
Event handling in Java AWT     ... events in java awt. Here, this is done through the java.awt.*; package of java. Events are the integral part of the java platform. You can see the concepts 

Swing AWT

Java Swings-awt - Swing AWT
Java Swings-awt  Hi, Thanks for posting the Answer... I need to design a tool Bar which looks like a Formating toolbar in MS-Office Winword(Standard & Formating) tool Bar. Please help me... Thanks in Advance 

Java Beginners

java compilation error - Java Beginners
java compilation error  HELLO SIR,I HAVE ASKED QUESTION AND I GOT REPLY FOR THAT ALSO BUT I AM GETING COMPILATION ERROR UNCHECKED OR UNSAFE OPERATION PLZ RECTIFY THIS. HOW TO READ ELEMENTS FROM TWO ARRAYLIST AND PRINT 

Java Beginners

Compilation error in java - Java Beginners
FileInputStream(f); props.load(in); but i got a error the system could...Compilation error in java  i have a properties file named... that file in java class,my code is Properties props = new Properties(); File 

Java Beginners

JBoss - error during deploy - Java Beginners
JBoss - error during deploy  Hello! I've followed your fantastic tutorial about JBoss but I got stucked in exercise 2. I use JBoss AS 5 (don't.... In the latter, the error given is: Failed to create Resource example2.ear - cause 

JSP Servlet Questions

java profram:error 405 method not found
java profram:error 405 method not found  import javax.servlet.http.*; import javax.servlet.*; import java.io.*; public class Configservlet... the following link: ServletConfig Example Thanks   thanx now it got 

Java Beginners

Awt programming with java
Awt programming with java  Write a java program, which provides a text area with horizontal and vertical scrollbar.Type some lines in the text area and use scrollbars to move the text within the text area.Read a word in a text 

Swing AWT

code - Swing AWT
code  i want example problem for menubar in swings  Hi Friend, Please visit the following links: http://www.roseindia.net/java/example/java/swing/SwingMenu.shtml http://www.roseindia.net/java/example/java/swing 

JDBC Questions

java runtime error - JDBC
java runtime error  when i am running my jdbc program using thin driver this error is coming at runtime: Exception in thread "main..., give me the suggesion yo solve this problem  This kind of error due 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  Hello, i am getting an error while running simple core java program on command prompt.java is installed on my pc.... For example if java is installed at c:\Program Files\Java\jdk1.6.0_01 

Java Beginners

Java Compilation Error - Java Beginners
Java Compilation Error  hi, i'm chandrakanth.i got a dought regarding below program. It generates compilation error.but it executes and generates... for more information. http://www.roseindia.net/java/master-java/index.shtml 

Java Beginners

error detection - Java Beginners
me an error,of "(" or "[" expected. i tried to change everything i can to repair the error but got stuck. please help me to find out what must i do to repair...error detection   Hi Amardeep and all friends out 

Java Beginners

Error - Java Beginners
to hex. Please have a look on the code. In jsp page I got errors. Error No 1:Incompatible type found,java.lang.objectrequired,java.lang.string. Error No 2:sval already defined in merged scriptlet Error No 3:haval already defined 

Java Beginners

compilation error - Java Beginners
compilation error  sir what is the error inthis code after executing the below code i got java.lang.NoSuchMethodError: main Exception... : C:\>javac -d . Group.java 3)For execute the programm : C:\>java 

Java Beginners

java compilation error - Java Beginners
java compilation error  Hello, I had recently sent an email and got a response regarding how to add an image to a GUI. I used the code...); MY ERROR FLAGS HERE public class DisplayImage extends Panel { BufferedImage 

Swing AWT

Program for Calculator - Swing AWT
Program for Calculator  write a program for calculator?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/calculator-in-swing.shtml Hope that it will be helpful 

Java Beginners

compilation error - Java Beginners
not in the Hexadecimal or Octal. Here is fraction of Java code example which will help you... this program it is giving an error as integer number is too large.why? and what is the reason?  Hi Friend, In Java there are some specific literal 

Swing AWT

Look and Feel - Swing AWT
: http://www.roseindia.net/java/example/java/swing/GettingAndSettingLAF.shtml http://www.roseindia.net/java/example/java/swing/DefaultLookAndFeel.shtml Hope 

Swing AWT

provide code - Swing AWT
); } } ------------------------------------- visit for more information. http://www.roseindia.net/java/example/java/swing/ Thanks... GAME.....using swings,awt concepts   Hi friend, import java.awt. 

Java Beginners

Java Complication Error - Java Beginners
this error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException...Java Complication Error  Hello there, I was assigned to do a project in java that I have to set up tabs and in each tab have something in them. Well 

Java Beginners

java Method Error - Java Beginners
java Method Error  class mathoperation { static int add(int... Errors ,Please Give Me solution of Following Error G:\>javac mathdemo.java... have got those errors. Your code: class mathoperation { static int add 

Swing AWT

Design a Toll bar - Swing AWT
://www.roseindia.net/java/example/java/swing/CreateToolbar.shtml Thanks...Design a Toll bar  Hi,i am very new to Swings-awt..... Please any one send me the Logic to Create a Toolbar which is similar to --- winword 

Java Beginners

Xlint Error - Java Beginners
Java\graphics\Update Method>javac -Xlint updatedemo.java updatedemo.java:18...;Hi Friend, The mouseDown()is a deprecated method therefore you got 

Swing AWT

swings - Swing AWT
swings  how to develope desktop applications using swing  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/ Here you will get lot of swing applications 

Advertisements Advertisements
 

 

 

DMCA.com