Sunday, October 21, 2012

Java program to illustrate menubar with the help of applet


import java.applet.*;
import java.awt.*;
 class mymenu extends Frame
{
            MenuBar mb;
            Menu filemenu,editmenu,viewmenu;
            MenuItem open,newmi,save,cut,copy;
            CheckboxMenuItem toolbar,layer;

public mymenu()
{
            mb=new MenuBar();
            setMenuBar(mb);
           
            filemenu=new Menu("File");
            editmenu=new Menu("Edit");
            viewmenu=new Menu("View");

            open=new MenuItem("Open");
            newmi=new MenuItem("New");
            save=new MenuItem("Save");
            cut=new MenuItem("Cut");
            copy=new MenuItem("Copy");

            toolbar=new CheckboxMenuItem("Toolbar",true);
            layer=new CheckboxMenuItem("Layer Window",false);

            filemenu.add(open);
            filemenu.add(newmi);
            filemenu.add(save);

            editmenu.add(cut);
            editmenu.add(copy);

            viewmenu.add(toolbar);
            viewmenu.add(layer);

            mb.add(filemenu);
            mb.add(editmenu);
            mb.add(viewmenu);
}

public static void main(String s[])
{
            mymenu mn=new mymenu();
             mn.setSize(new Dimension(500,500));
            mn.setTitle("Menu Bar");
            mn.setVisible(true);
}
}
Output

7 comments:

  1. Java Program To Illustrate Menubar With The Help Of Applet ~ Techietopics >>>>> Download Now

    >>>>> Download Full

    Java Program To Illustrate Menubar With The Help Of Applet ~ Techietopics >>>>> Download LINK

    >>>>> Download Now

    Java Program To Illustrate Menubar With The Help Of Applet ~ Techietopics >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete
  2. Thank you for sharing this blog with some interesting topic keep doing this work also check out this Best CBSE School in Faridabad

    ReplyDelete
  3. A very awesome blog post. We are really grateful for your blog post.
    Akurdupoetry

    ReplyDelete
  4. Safety barriers are installed in areas where hazards may occur, keeping the environment safe where vehicles, goods, and people move. It is an important protective measure for road safety and factory safety. So how do you choose a reliable safety barrier product? A lot depends on a reliable safety barrier manufacturer. In today’s guide, we’ll introduce you to 10 reliable Security barrier manufacturers in the United States. Read on to learn more.

    ReplyDelete
  5. ! Here are some techie topics you might find interesting:

    Artificial Intelligence and Machine Learning: Explore the latest advancements, applications, and algorithms in AI and ML, including deep learning, natural language processing, computer vision, and reinforcement learning.
    Blockchain Technology: Learn about blockchain fundamentals, cryptocurrencies, decentralized applications (DApps), smart contracts, and how blockchain is revolutionizing various industries such as finance, supply chain, and healthcare.
    Cybersecurity: Dive into topics like network security, cryptography, ethical hacking, threat detection, security best practices, and emerging trends in cybersecurity technologies.
    Internet of Things (IoT): Explore the interconnected world of IoT, including IoT devices, sensors, data analytics, edge computing, IoT platforms, and real-world applications in smart homes, smart cities, healthcare, and industrial automation.
    Cloud Computing: Understand cloud computing concepts, services (e.g., IaaS, PaaS, SaaS), cloud providers (e.g., AWS, Azure, Google Cloud), deployment models, containerization (e.g., Docker, Kubernetes), serverless computing, and hybrid cloud solutions.
    Data Science and Big Data: Learn about data science methodologies, tools (e.g., Python, R), data visualization, predictive analytics, big data technologies (e.g., Hadoop, Spark), data mining, and data-driven decision making.<a href="https://dev-rupahw.pantheonsite.io”>SEO zannatul</a>

    ReplyDelete
  6. Active Detailing is the best car detailing franchise in India, renowned for its exceptional quality and comprehensive services.

    ReplyDelete
  7. Exchange 22 is a trusted platform offering seamless online exchange solutions tailored for Indian users. With a focus on reliability, security, and efficiency, Exchange222 ensures smooth transactions and exceptional user experiences. Explore our services to meet all your exchange needs with confidence."

    ReplyDelete