Home Tutorialhelp Comment How To Implement Complet Notepaid

 
 

Comment

Manish Kumar Srivastva
How To Implement Complet Notepaid ,
June 1, 2009 at 5:29 PM

How To Implement Complet Notepaid menubar with function please hint us.

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Menubar extends Frame implements ActionListener
{
JFrame frame;
JMenuBar mb;
JMenuItem mNew,mOpen,mClose,mSave,mSaveAs,mExit,mCopy,mCut,mPast;

public Menubar()
{
super("Menubar");


frame= new JFrame("Frame with Menu");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

mb=new JMenuBar();
frame.setJMenuBar(mb);
JMenu mFile,mEdit;
mFile=new JMenu("File");
mEdit=new JMenu("Edit");
mb.add(mFile);
mb.add(mEdit);

mNew=new JMenuItem("New");
mOpen=new JMenuItem("Open");
mClose=new JMenuItem("Close");
mCopy=new JMenuItem("Copy");
mPast=new JMenuItem("Past");
mSave=new JMenuItem("Save");
mSaveAs=new JMenuItem("SaveAs");
mCut=new JMenuItem("Cut");
mExit=new JMenuItem("Exit");

mFile.add(mNew);
mNew.addActionListener(this);
mFile.add(mOpen);
mOpen.addActionListener(this);
mFile.add(mClose);
mClose.addActionListener(this);
mFile.add(mSave);
mSave.addActionListener(this);
mFile.add(mSaveAs);
mSaveAs.addActionListener(this);
mFile.add(mExit);
mExit.addActionListener(this);
mEdit.add(mCopy);
mCopy.addActionListener(this);
mEdit.add(mPast);
mPast.addActionListener(this);
mEdit.add(mCut);
mCut.addActionListener(this);
frame.setSize(250,250);
frame.setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
if (e.getActionCommand().compareTo("mNew") == 0)
{
System.out.println("new action");
}
if (e.getActionCommand().compareTo("mOpen") == 0)
{
System.out.println("Open action");
}
if (e.getActionCommand().compareTo("mClose") == 0)
{
System.out.println("Close action");
}
if (e.getActionCommand().compareTo("mSave") == 0)
{
System.out.println("Save action");
}
if (e.getActionCommand().compareTo("mSaveAs") == 0)
{
System.out.println("SaveAs action");
}
if (e.getActionCommand().compareTo("mCopy") == 0)
{
System.out.println("Copy action");
}
if (e.getActionCommand().compareTo("mCut") == 0)
{
System.out.println("Cut action");
}
if (e.getActionCommand().compareTo("mPast") == 0)
{
System.out.println("Past action");
}
if (e.getActionCommand().compareTo("Exit") == 0)
{
System.exit(0);
}
}
public static void main(String args[])
{
Menubar xyz=new Menubar();
}
}

This is our program but our function is not properly work link new ,open close etc not worked please send us proper method.

Thanks

Manish Srivastava
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

How to implement FTP using java
How to implement FTP using java  Hi, I am a B.tech student and I want to implement FTP using Java to transfer files and exchange files between FTP client and FTP server. Could anyone help me for How to implement FTP using java 

Swing AWT

implement microsoft office
implement microsoft office   how implement microsoft office in my java swing project ,or when microsoft office is not install then file open in defualt text editar.please send me source code 

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 

Java Beginners

Swing Button Example
Swing Button Example  Hi, How to create an example of Swing button in Java? Thanks   Hi, Check the example at How to Create Button on Frame?. Thanks 

Java Beginners

java swing.
java swing.  Hi How SetBounds is used in java programs.The values in the setBounds refer to what? ie for example setBounds(30,30,30,30) and in that the four 30's refer to what 

Swing AWT

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

Java-Tutorials

Java Swing : JLabel Example
In this tutorial, you will learn how to create a label in java swing 

Java-Tutorials

Implement the Queue in Java
Implement the Queue in Java       In this section, you will learn how to implement the queue. A queue...;} } Download this example 

General

Splash Screen in Java Swing
Splash Screen in Java Swing This Java tutorial chapter explain you how to create and implement the splash screen using Java Swing. The Java Swing splash... a swing splash screen in Java. The Java splash screen will get disappeared on its own 

Java-Tutorials

Java Swing : JFrame Example
Java Swing : JFrame Example In this section, you will learn how to create a frame in java swing. JFrame : JFrame class is defined in javax.swing.JFrame....); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } } Description : The above example shows how 

Java Beginners

Java code to implement MULTIPATH INHERITANCE
Java code to implement MULTIPATH INHERITANCE  HI, I am new to java programming. I want to implement multipath inheritance in one java program... Please write code for above example to implement both 

Programming Tutorials

Java Swing Undo Redo Operations
Java Swing Undo Redo Operations Swing provides Undo and Redo functionality through javax.swing.undo package. The undo mechanisms allow users to unexecute... undone action. Now, in order to implement these mechanisms, we have created a text 

Java Beginners

Java code to implement MULTIPATH INHERITANCE
Java code to implement MULTIPATH INHERITANCE  Hi, I am new to java .so please write code for this inheritance example... Student | ----------- | | Test Sports 

Java-Tutorials

Creating a JTabbedPane Container in Java Swing
to create the JTabbedPane container in Java Swing. The example for illustration... of swing to implement the JTabbed component of Java. The following figure shows... Creating a JTabbedPane Container in Java Swing   

Java Beginners

java swing
java swing  how to connect database with in grid view in java swing   Hi Friend, Please visit the following link: Grid view in java swing Thanks 

JSP Servlet Questions

How to implement openId java web based application?
How to implement openId java web based application?  In my web application i want to implement the OpenId just like stackoverflow.com have to login.... Please tell me how to implement it in java web application in details 

Java Beginners

How to Hide Button using Java Swing
Programming application how to hide the buttons using Java Swing. Please Visit...How to Hide Button using Java Swing  Hi, I just begin to learn java programming. How to hide the button in Java programming. Please anyone suggest 

Swing AWT

java swing - Swing AWT
java swing  how i can insert multiple cive me exampleolumn and row in one JList in swing?plz g  Hi Friend, Please clarify your question. Thanks 

Java-Tutorials

Swing In Java
. This example will demonstrate you about how to use the Swing components in Java...Swing In Java In this tutorial we will read about the various aspects of Swing... example etc. What Is Swing ? Swing is a part of JFC also known as Oracle's 

Swing AWT

how to create reports in swing java?
how to create reports in swing java?  how to create reports in swing java 

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 the performance of the employees by using bar bharts. Please give me how can we 

Java-Tutorials

Java Swing : JButton Example
Java Swing : JButton Example In this section we will discuss how to create button by using JButton in swing framework. JButton : JButton Class extends... property to a value according to present look and feel. Example 

Blog

Sitemap Java Swing Tutorial
| Scrollpane in Java Swing | Show on one Frame in Java Swing | How...-to-One Relationship | JPA-QL Queries Java Swing Tutorial Section Java Swing Introduction | Java 2D API | Data Transfer in Java Swing 

Java Beginners

How to implement a superclass Person? - Java Beginners
How to implement a superclass Person?  How to implement a superclass... of these classes and invokes the toString() method of each of these object. how to implement the class..and how to write the toString method? please help me...   

Swing AWT

JAVA SWING
JAVA SWING  Hi.... Iam doing project in java...and my front end in swing ..our project is like billing software... then what are the topics i want cover? then how to design? pls help me 

Swing AWT

java swing - Swing AWT
java swing   Iam developing a java web browser.Actually my code works... to set to proxy settings through which it should load the web page. How to set a proxy or how to make my java web browser to listen to proxy setting??? please help 

Swing AWT

Java Dialogs - Swing AWT
visit the following links: http://www.roseindia.net/java/example/java/swing/GrideComponents.shtml http://www.roseindia.net/tutorial/java/swing/springlayout.html http://www.roseindia.net/java/example/java/awt/borderlayout-example 

Java Beginners

java swing in netbeans
java swing in netbeans  how can create sub menu in java swing using...[]) { JFrame frame = new JFrame("MenuSample Example... backwardMenuItem = new JMenuItem("Java"); newmenu.add(backwardMenuItem 

Java Beginners

How to implement this superclass Person - Java Beginners
How to implement this superclass Person  how to Implement a superclass Person which it need to Make two classes, Student and Instructor, that inherit...,birthYear=1969],salary=65000.0]''); } } i don't know how to write a coding 

Swing AWT

java swing - Swing AWT
java swing   how i can insert in JFrame in swing?  Hi Friend, Try the following code: import java.awt.*; import javax.swing.*; import java.awt.event.*; class FormDemo extends JFrame { JButton ADD; JPanel 

Swing AWT

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

Swing AWT

Java - Swing AWT
. http://www.roseindia.net/java/example/java/swing...Java  How can I run an application of Microsoft Windows like notepad or paint from my swing program?  Hi friend, import java.awt. 

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

Swing - Swing AWT
information, visit the following link: http://www.roseindia.net/java/example/java/swing/get_jtextfield_value_from_anothe.shtml Thanks... JFrame is it Possible how can it be done   Hi Friend, You haven't 

Java Beginners

Java swing
Java swing  How to combine two java files 

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 

Java-Tutorials

Swing Applet Example in java
Java - Swing Applet Example in java   ... swing in an applet. In this example, you will see that how resources of swing..., this is swing label which shows the message in first time This is the Swing 

Java Beginners

java swing (jtable)
java swing (jtable)  hii..how to get values of a particular record in jtable from ms access database using java swing in netbeans..?? please help..its urgent..   Here is an example that retrieves the particular record 

Java Beginners

java swing problem - Java Beginners
java swing problem  i doesn't know about the panel in swings here i... is not adding any item and it not showing that item on the panel tell me how... CreatePanel () { super("Example Class"); setBounds(100,100,200,200 

Java Beginners

Java swing
Java swing  how to create simple addition program using java swing?   import java.awt.*; import javax.swing.*; import java.awt.event.*; class SumOfNumbers extends JFrame { SumOfNumbers(){ JLabel lab1=new 

Java3D Questions

SWING
SWING  A JAVA CODE OF MOVING TRAIN IN SWING 

Swing AWT

Need Help with Java-SWING progrmming - Swing AWT
Need Help with Java-SWING progrmming  Hi sir, I am a beginner in java-swing programming. I want to know how we can use the print option...://www.roseindia.net/java/example/java/swing/Print.shtml Thanks 

Java Beginners

Java swing code - Java Beginners
Java swing code  How to set a font for a particular cell in JTable... in Swing. We have a huge amount of good examples on JTable here. http://www.roseindia.net/java/example/java/swing I hope this would be helpful to you 

Swing AWT

java swing - Swing AWT
java swing  how to save data in sql 2005 while insert in textfield  Hi Friend, Try the following code: import java.sql.*; import javax.swing.*; import javax.swing.border.*; import java.awt.*; import 

Flex Questions

Implement push
Implement push  Hi.. How do you implement push on a flex applications? give me answer with example so i clearly understand Thanks  Ans: push implement on a flex applications using BlazeDS Server 

Swing AWT

How to delete records from jtabel - Swing AWT
); } } ------------------------------ read for more information, http://www.roseindia.net/java/example/java/swing...How to delete records from jtabel  hello I am using jtabel... to implement row sorting on tabel according column name(ex- date,time and serial 

Java Beginners

JAVA SWING JTabbedPane - Java Beginners
JAVA SWING JTabbedPane  Hi all, I would like to ask a question about how to place a tab in JTabbedPane in the middle rather than from left... = makeTextPanel("Java Tutorial"); tabbedPane.addTab("One", icon, panel1, "Does 

Flex Questions

Implement push
Implement push  hi....... just tell me about How do you implement push with flex data services? give me answer with example Thanks  Ans: Using BlazeDS Server and Live Cycle Data Services 

Java Beginners

Java Swing
Java Swing  i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the coding sir/madam 

Java Beginners

Java Swing
Java Swing  i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the coding sir/madam 

Java Beginners

Java Swing
Java Swing   i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the answer sir/madam 

Java Beginners

Java Swing
Java Swing  i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the coding sir/madam 

Java Beginners

about swing - Java Beginners
about swing  how implement a program of adding two numbers by entering two numbers separately by other user on the input dialog box and after that also show the result of the addition in other dialog box... your regardly 

Applet Questions

Swing - Applet
information on swing visit to : http://www.roseindia.net/java/example/java...Swing  Hello, I am creating a swing gui applet, which is trying to output all the numbers between a given number and add them up. For example 

Swing AWT

How to save data - Swing AWT
); frame.setVisible(true); } } For more information on Swing visit to : http://www.roseindia.net/java/example/java/swing/ Thanks...How to save data  Hi, I have a problem about how to save data 

Java Code Examples

JTextField Validation in java swing
JTextField Validation in java swing In this tutorial, you will learn how to validate jtextfield in java swing. Here we have created a textfield on frame... will not respond to any character, it only accepts numbers. Example: import java.awt. 

Java Beginners

How to draw in jPanel? swing/graphics Java
How to draw in jPanel? swing/graphics Java  How to draw in jPanel? (swing/graphics Java 

Programming Tutorials

Java Swing Open Browser
Java Swing Open Browser Java provides different methods to develop useful applications. In this section, you will learn how to create an example that will open the specified url on the browser using java swing. This example will really 

Java Beginners

Java swing
Java swing  how to create the login form?   1)LoginDemo.java: import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; class LoginDemo extends JFrame { JButton SUBMIT; JLabel 

Swing AWT

swing
swing  Write a java swing program to delete a selected record from a table 

Swing AWT

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

Swing AWT

how to set image in button using swing? - Swing AWT
://www.roseindia.net/java/example/java/swing/ Thanks...how to set image in button using swing?  how to set the image in button using swing?  Hi friend, import java.awt.*; import 

Java Code Examples

Java Swing Key Event
Java Swing Key Event In this tutorial, you will learn how to perform key event in java swing. Here is an example that change the case of characters... KeyAdapter to perform the keyReleased function over textfield. Example: import 

Java Code Examples

Java Swing: Validate radiobutton
Java Swing: Validate radiobutton In this tutorial, you will learn how to validate radiobuttons in Java Swing. Radio buttons are the group of buttons where only one button can be selected at a time. Swing supports radio buttons 

Swing AWT

Authentication of password - Swing AWT
information. http://www.roseindia.net/java/example/java/swing/ Thanks....... How the Printed password gets converted into the asteric (*) mark..., I am sending running code, please implement this code. import 

Java Beginners

Session in java Swing
Session in java Swing  Hello Sir please tell me that how can i Maintain session in Java Swing 

Java Beginners

Session in java Swing
Session in java Swing  Hello Sir please tell me that how can i Maintain session in Java Swing 

Java Beginners

Graph in JAVA SWING
Graph in JAVA SWING  Hi, How to draw a simple GRAPH in JAVA SWING ?  ..., Please visit the following link: Bar Graph in Java Swing Thanks 

Java Beginners

swing question - Java Beginners
swing question  how i can create login form in java with password entering i can to next page only if password is correct i want to use java swing feature 

Java-Tutorials

JSlider Component of Java Swing
JSlider Component of Java Swing       In this section, you will learn how to create a JSlider component of Java Swing. A Slider is a Swing tool which you can use for selecting 

Core Java

How to create Notepad in Swing
How to create Notepad in Swing Program Description:- In this Example we have... is the main container for swing-based application. This example we have created... or the string is null or empty. Example package NotePad; import java.awt. 

Java Beginners

scope of Java Swing in IT ?
the "How much scope of Java Swing in IT now ?" & wht should i do...scope of Java Swing in IT ?  Hi....... I am fresher ,now I m working in Java Swing developing desktop apps. I am confused abt use of Java Swing 

Java Beginners

java: implement a class queue
java: implement a class queue  Implement a class Queue which supports the following operations: boolean isEmpty() Returns true if the queue is empty, and false otherwise. int peak() Returns the value at the front of a non 

Java Beginners

java swing question - Java Beginners
java swing question  how i can create login form in java with password entering i can to next page only if password is correct i want to use java swing feature 

Java Beginners

Swing - Java Beginners
: http://www.roseindia.net/java/example/java/swing/ http://www.roseindia.net/java/example/java/awt/ Hope that it will be helpful for you. Thanks... links: http://www.grandt.com/sbe/ http://www.javafaq.nu/java/free-swing-book 

Java-Tutorials

Creating Check Box in Java Swing
Creating Check Box in Java Swing   ... component in Java Swing. In this section, you can learn simply creating the Check Box in Java Swing. Check Boxes are created in swing by creating the instance 

Swing AWT

Swing
Swing  Write a java swing program to search the details of the students. Searching is performed on studentā??s first name. The details of all those students having same name as in given in searching criterion will be displayed 

Swing AWT

Swing
Swing  Write a java swing program to search the details of the students. Searching is performed on studentā??s first name. The details of all those students having same name as in given in searching criterion will be displayed 

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...Look and Feel  i m using netbeans for creating a swing GUI 

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 

Java Beginners

how to create a header in jtable using java swing
how to create a header in jtable using java swing  how to create a header in jtable using java swing   d 

Java Beginners

java swing - Java Beginners
java swing  utlility of super.paintComponent(Graphics g) in java? what does it do actually i.e. which class it is extending or method overriding? Please clarify this with example 

Java-Tutorials

Progress Bar in Java Swing
in java swing. This section shows you how the progress bar starts and stops with the timer. Through the given example you can understand how the progress bar... Progress Bar in Java Swing      

Java Beginners

Java swing - Java Beginners
Java swing  how to set the background picture for a panel in java swing .i m using Netbeans IDE.  Hi Friend, Try the following code: import java.awt.*; import java.awt.image.*; import java.io.*; import 

Swing AWT

SWINGS - Swing AWT
in showInputDialog in another class. how to do this.   Hi friend, For read 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 Beginners

java how to create visual swing editor
java how to create visual swing editor   How do I create a visual swing designer in java ?Meaning that I can "draw" a button,a JTextArea from within my designer program . I just need some basics . I've got no idea how to start 

General

Java Swing Tutorials
how to create the JTabbedPane container in Java Swing. The example...; This program shows you how to create a frame in Java Swing Application. The frame... illustrates you how to change the label of a button in java swing 

General

Chess Application In Java Swing
In Java Swing       In this section, you will learn how to create chess game in java swing. In the given example, we have defined MouseListener, MouseMotionListener perform two 

Java Beginners

java swing - Java Beginners
java swing  How to set the rang validation on textfield, compare...(){ JFrame f = new JFrame("Frame in Java Swing"); f.getContentPane().setLayout(null... want to send the selected item in database , how to send , plz help 

Development process Questions

groupby implement in java
groupby implement in java  **import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.Arrays 

Development process Questions

groupby implement in java
groupby implement in java  **import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.Arrays 

Java Beginners

Java swing - Java Beginners
Java swing  Hi, I want to copy the file from one directory... will be displayed in the page and progress bar also. Example, I have 10 files...; public Copy() { JFrame frame = new JFrame("Swing Progress Bar 

Swing AWT

Java - Swing AWT
Java  How can I interact with a hardware like scanner, barcode-reader or a digital camera through my created swing program 

Java Beginners

Java swing - Java Beginners
Java swing  Hi, I want to copy the file from one directory to another directory,the same time i want to get the particular copying filename will be displayed in the page and progress bar also. Example, I have 10 files 

Swing AWT

Date picker in Java Swing
in need of Time Picker just like the Date picker available in java Swing. Kindly... link: Java Date Time Picker Example   Hello Sir, Thank... thoroughly . But Sir, I want Time Picker In java swing desktop application 

Core Java

The implement keyword
The implement keyword       In java programming language, the keyword implement specifies...) into a java class. A class implementing an interface must either implement all 

Java-Tutorials

What is Java Swing?
What is Java Swing?       Here, you will know about the Java swing. The Java Swing provides... and GUIs components. All Java Swing classes imports form the import 

Framework Questions

java swing
java swing  view the book details using swing 

Java Interview Questions

Java swing
Java swing  Does Swing contains any heavy weight component 

Java Interview Questions

Java swing
Java swing  what are the root classes of all classes in swing 

Advertisements Advertisements
 

 

 

DMCA.com