-->
Join Us on Facebook Follow us on Twitter Add to Circles

1 December 2013

IDM V 6.18 Build 8 Final tested


Download Internet Download Manager to increase download
speeds by up to 4 to 5 times & can resume and schedule downloads.



Comprehensive error recovery and resume capability will 

restart broken or interrupted downloads due to lost connections, 
network problems, computer shutdowns, or unexpected power outages.



 Idm

11 November 2013

Connectify Hotspot pro


Now easily share your internet connection with anyone!





Connectify Hotspot turns your PC into a Wi-Fi hotspot, lets other computers, smartphones and tablets share  our connection. 

Connectify Hotspot will recognize your PC's network card,automatically configuring it as a hotspot and assigning you a network name and password. Clicking on "Start Hotspot" will make your access point operational, letting any nearby device with the password connect to it. The 'Clients' tab will show you which devices are currently connected to your hotspot. Connectify Hotspot also lets you share files and folders with others who are connected to your network. 







1 November 2013

C# 4.0 complete reference.rar






Authored By            :  Herbert Schildt
Publisher                  :  Tata McGraw - Hill Education
Publication Year :  2010 May
ISBN-13                     :  9780070703681
ISBN-10                     :  007070368X
Language                 :  English
Number of Pages   :  984 Pages











TABLE OF CONTENTS


Part I: The C# Language

Chapter 1. The Creation of C#;

Chapter 2. An Overview of C#;
Chapter 3. Data Types, Literals, and Variables;
Chapter 4. Operators;
Chapter 5. Program Control Statements;
Chapter 6. Introducing Classes and Objects;
Chapter 7. Arrays and Strings;
Chapter 8. A Closer Look at Methods and Classes;
Chapter 9. Operator Overloading;
Chapter 10. Indexers and Properties;
Chapter 11. Inheritance;
Chapter 12. Interfaces, Structures, and Enumerations;
Chapter 13. Exception Handling;
Chapter 14. Using I/O;
Chapter 15. Delegates, Events and Lambda Expressions;
Chapter 16. Namespaces, the Preprocessor, and Assemblies;
Chapter 17. Runtime Type ID, Reflection, and Attributes;
Chapter 18. Generics;
Chapter 19. LINQ;
Chapter 20: Unsafe code, Pointers, Nullable Types, Dynamic Types, and Miscellaneous Topics;
Part II: Exploring the C# Library
Chapter 21. Exploring the System Namespace;
Chapter 22. Strings and Formatting;
Chapter 23. Multithreaded Programming, Part One;
Chapter 24. Multithreading Part Two: Exploring the Task Parallel Library and PLINQ;
Chapter 25. Collections, Enumerators, and Iterators;
Chapter 26. Networking Through the Internet Using System.Net;
Appendix A. Documentation Comment Quick Reference;
Index



13 October 2013

Awesome VLC media player Trick

Awesome simple VLC media player Trick

open VLC media player



press Ctrl + N




Type:    screen://


Click on Play,wait for few second and watch the trick


Don't forget to leave your precious Comments





17 September 2013

Html & CSS3 Code for Horizontal Dropdown menus


Horizontal menus using css




  • This tutorial demonstrates how to create vertical and horizontal menus.
  • Horizontal Menus are an excellent way to create a menu of categories linking to the web pages of your interest. 
  • Many web designers place a horizontal menu under the page design's header section to link to other pages for navigating from one page to another.

For this we need to make use css code



#catagorie {
  margin: 0px;
  padding: 0px;
  line-height: 0px;
  font-size: 0px;
  display: inline-block;
}


#catagorie li a {
  line-height: 19px;
  font-size: 16px;
  font-family: Arial,sans-serif;
  text-decoration: none;
  color: #FFFFFF;
  font-style: normal;
  font-weight: bold;
  padding: 9px;
  display: block;
  cursor: pointer;
  white-space: nowrap;
}

#catagorie li div.mbtn {
  height: 37px;
  width: 122px;
  line-height: 0;
  background-color: #3B3B3B;
  border-style: solid;
  border-color: #505050;
  border-width: 1px 0 0 1px;
  border-radius: 2px;
  padding: 0;
  box-shadow: none;
  text-align: center;
}

#catagorie li:hover div.mbtn a, #catagorie li.expanded a.mt, #catagorie li.active a.mt,
#catagorie li.itemhot a.mt, #catagorie li a:hover {
  color: #FFFFFF;
  font-style: normal;
  font-weight: bold;
  text-decoration: none;
}


#catagorie li.expanded div.mbtn, #catagorie li.active div.mbtn, #catagorie li.itemhot div.mbtn, #catagorie li:hover div.mbtn {
  background-color: #4498C7;
  box-shadow: none;
  border-color: #5DB1E0;
}

#catagorie {
  padding: 0;
  border-style: solid;
  border-color: #000000;
  border-width: 1px;
  border-radius: 3px;
  background-color: #252525;
  box-shadow: 0 0 10px -1px #333333;
  border-collapse: separate;
}

#catagorie li.first_button div.mbtn {
  border-radius: 2px 0 0 2px;
}

#catagorie ul li a {
  color: #FFFFFF;
  font-family: Arial,sans-serif;
  font-size: 11px;
  line-height: 14px;
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
  display: block;
  vertical-align: middle;
  white-space: nowrap;
}

#catagorie ul li:hover > a {
  color: #FFFFFF;
  font-family: Arial,sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
}

#catagorie ul li.subexpanded a.subexpanded, #catagorie ul li.subitemhot a.subitemhot, #catagorie ul li a:hover {
  color: #FFFFFF;
  font-family: Arial,sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
}

#catagorie ul li:hover, #catagorie ul li.subexpanded, #catagorie ul li.subitemhot {
  border-color: #5DB1E0;
  background-color: #4598C6;
  box-shadow: none;
}

#catagorie ul {
  margin: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 0;
  padding: 0 1px 1px 0;
  background: #262626;
  font-size: 0;
  border-radius: 0;
}

#catagorie ul li a {
  padding: 7px 15px 7px 13px;
  text-align: left;
}

#catagorie ul li.separator {
  padding: 7px;
  cursor: default;
  background: none;
  box-shadow: none;
  border-width: 0;
}

#catagorie ul li.separator div {
  border-top: 1px solid #000000;
  font-size: 0px;
}

#catagorie ul li {
  border-style: solid;
  border-color: #4C4C4C;
  border-width: 1px 0 0 1px;
  height: auto;
  width: auto;
  text-align: left;
  line-height: 0;
  font-size: 0;
  cursor: pointer;
  float: none;
  margin: 0 0 1px 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background-color: #3C3C3C;
}

#catagorie ul li.last_item {
  margin-bottom: 0;
}


#catagorie .litab {
  margin: 0px 1px 0px 0px;
}

#catagorie a img {
  border: none;
}

#catagorie li {
  list-style: none;
  float: left;
}

#catagorie.css_menu li {
  position: relative;
}

#catagorie.css_menu ul li:hover > ul {
  opacity: 1;
}

#catagorie.css_menu li:hover > ul {
  top: 100%;
  left: 0;
  right: auto;
  opacity: 1;
}

#catagorie.css_menu ul li:hover > ul {
  top: -0px;
  left: 100%;
  right: auto;
}

#catagorie.css_menu ul {
  transition-duration: 0.3s;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -ms-transition-duration: 0.3s;
  transition-property:opacity;
  -webkit-transition-property:opacity;
  -moz-transition-property:opacity;
  -ms-transition-property:opacity;
  opacity: 0;
}

#catagorie ul {
  position: absolute;
  top:-99999px;
  z-index: 4000;
}

#catagorie ul ul {
  position: absolute;
  z-index: 5000;
}

#catagorie .submenu_arrow {
  margin-left: 8px;
}

#catagorie ul li a.with_arrow { 
  background-repeat: no-repeat; 
  background-position: right center; 
  padding-right: 19px; 



the above code can be written in an external .css file or inside your html code
if you are using it as external css file then link it 

<link rel="stylesheet" href="mycssfile.css" type="text/css" />

or if you want to write all the code in same html  file then paste the css code in

<style type="text/css">
---------code-----------
</style>
in your <head>tag or <body>tag

create a list tag as follows in :


<ul id="catagorie" class="cssmenu" style="width: 810px; height: 38px;">
  <li class="topitem litab"><div class="mbtn" style="width: 63px;"><a href="#">Home</a></div></li>
  <li class="topitem litab"><div class="mbtn" style="width: 134px;"><a href="#">Web Designing</a></div></li>
  <li class="topitem litab"><div class="mbtn"><a href="#">Programming</a></div></li>
  <li class="topitem litab"><div class="mbtn" style="width: 95px;"><a href="#">Softwares</a></div></li>
  <li class="topitem litab"><div class="mbtn" style="width: 189px;"><a href="#">Windows Tricks &amp; Tips</a></div></li>
  <li class="topitem litab"><div class="mbtn" style="width: 114px;"><a href="#">Maths Tricks</a></div></li>
  <li class="topitem"><div class="mbtn" style="width: 80px;"><a href="#">Other</a></div></li>
</ul>

replace the # sign with your page link





13 September 2013

Swapping the walue of two variable



#include<iostream>
   class interchange
   {
     private:
      int a1;
      int a2;
      int temp;


     public:
      void swap()
      {
        a1=5;
        a2=10;
        temp=a1;
        a1=a2;
        a2=temp;
      }
      void display()
      {
         cout<<"The new value of a1 is:"<<a1<<endl;
         cout<<"The new value of a2 is:"<<a2<<endl;
      }
   };
   void main()
   {
     interchange I1;
     I1.swap();
     I1.display();
   }

18 August 2013

Internet Download Manager IDM 6.17 Final Incl Crack Clean install



Internet Download Manager IDM 6.17 Final Incl Crack Clean install no virus






Download Internet Download Manager to increase download
speeds by up to 4 to 5 times & can resume and schedule downloads.



Comprehensive error recovery and resume capability will 

restart broken or interrupted downloads due to lost connections, 
network problems, computer shutdowns, or unexpected power outages.


Click to Download

1 June 2013

windows Server 2008 Command Line Tool

Sr.No. Command Description
1 Arp Display and modify the IP to physical address translation tables used by the Address Resolution Protocol (ARP).
2 Assoc Display and modify file extension associations.
3 Attrib Display and change file attributes.
4 Break Configure extended Ctrl-C checking.
5 Bcdedit Configure properties in name database to control boot loading.
6 Cacls Display or modify access control lists of files.
7 Call Call a script or script label as a procedure.
8 CD/Chdir Display the name of or changes the current directory.
9 Chcp Display or set the active code page number.
10 Chkdsk Check a disk for errors and display a report.
11 Chkntfs Display the status of volumes. Set or exclude volumes from automatic system checking during system boot.
12 Choice Create a selection list from which users can select a choice in batch scripts.
13 Cls Clear the console window.
14 Cmd Start a new instance of the Windows command shell.
15 Color Set the colors of the command-shell window.
16 Comp Compare the contents of two files or sets of files.
17 Compact Display or modify the compression of files or sets of files.
18 Convert Convert FAT volumes to NTFS.
19 Copy Copy or combine files.
20 Date Display or set the system date.
21 Del Delete one or more files.

26 April 2013

Java Program for Biodata Screen




Program:

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;

public class biodata extends JFrame {

JFrame f;
JLabel l,l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11;
JTextField t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,td;
JTextArea ta1,ta2;
JComboBox c1;
JButton b1,b2;
JRadioButton rb1,rb2;
ButtonGroup bg1;
JCheckBox ch1,ch2,ch3;
JTable tb1;
TableColumn sc,tc;
DefaultTableModel model,dtm;

public biodata() {
f=new JFrame("BIODATA");
l=new JLabel("BioData");
l.setFont(new Font("Algerian",Font.BOLD,40));
l1=new JLabel("Name                         :-");
l2=new JLabel("Address                       :-");
l3=new JLabel("Contact Number         :-");
l4=new JLabel("E-Mail Address           :-");
l5=new JLabel("Date OF Birth               :-");
l6=new JLabel("Marital Status             :-");
l7=new JLabel("Gender                          :-");
l8=new JLabel("Nationality                    :-");
l9=new JLabel("Known Language       :-");
l10=new JLabel("Qualification                :-");
l11=new JLabel("Other Qualification     :-");
t1=new JTextField(20);
ta1=new JTextArea(20,20);
int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
JScrollPane s=new JScrollPane(ta1,v,h);
t2=new JTextField(20);
t3=new JTextField(20);
t4=new JTextField(20);
c1=new JComboBox();
c1.addItem("Married");
c1.addItem("Unmarried");
rb1=new JRadioButton("Male");
rb2=new JRadioButton("Female");
bg1=new ButtonGroup();
bg1.add(rb1);
bg1.add(rb2);
t5=new JTextField(20);
ch1=new JCheckBox("Marathi");
ch2=new JCheckBox("Hindi");
ch3=new JCheckBox("English");
ta2=new JTextArea(20,20);

String col[]={"Sr No.","Exam Detail","University/Boards","Year Of     Passing","Grade/Class","Percentage"};
String row[][]=new String[4][6];
model = new DefaultTableModel(row, col);
tb1 = new JTable(model);


 
JScrollPane s1=new JScrollPane(tb1,v,h);
JScrollPane s2=new JScrollPane(ta2,v,h);
b1=new JButton("Submit");
b2=new JButton("Cancel");
JPanel p=new JPanel();
p.setLayout(null);

l.setBounds(200,30,200,50);
l1.setBounds(80,80,150,30);
l2.setBounds(80,130,150,30);
l3.setBounds(80,180,150,30);
l4.setBounds(80,220,150,30);
l5.setBounds(80,260,150,30);
l6.setBounds(80,300,150,30);
l7.setBounds(80,340,150,30);
l8.setBounds(80,380,150,30);
l9.setBounds(80,420,150,30);
l10.setBounds(80,460,150,30);
l11.setBounds(80,600,150,30);

t1.setBounds(250,80,200,25);
s.setBounds(250,120,200,50);
t2.setBounds(250,180,200,25);
t3.setBounds(250,220,200,25);
t4.setBounds(250,260,200,25);
c1.setBounds(250,300,200,25);
rb1.setBounds(250,340,100,25);
rb2.setBounds(350,340,200,25);
t5.setBounds(250,380,200,25);
ch1.setBounds(250,420,80,20);
ch2.setBounds(330,420,60,20);
ch3.setBounds(400,420,80,20);
s1.setBounds(20,500,600,100);
s2.setBounds(250,610,300,70);
b1.setBounds(200,700,100,30);
b2.setBounds(350,700,100,30);

p.add(l);
p.add(l1);p.add(l2);
p.add(l3);p.add(l4);
p.add(l5);p.add(l6);
p.add(l7);p.add(l8);
p.add(l9);p.add(l10);
p.add(l11);p.add(t1);
p.add(s);p.add(t2);
p.add(t3);p.add(t4);
p.add(c1);p.add(rb1);
p.add(rb2);p.add(t5);
p.add(ch1);p.add(ch2);
p.add(ch3);
p.add(s1);p.add(s2);
p.add(b1);p.add(b2);

f.add(p,BorderLayout.CENTER);
f.add(p);

f.setSize(650,780);
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);


b1.addActionListener(new ActionListener()
{

            public void actionPerformed(ActionEvent ae)
{
        JOptionPane.showMessageDialog(null, "Data added Successfully ");

            }
        });

}
public static void main(String args[]){
biodata b=new biodata();
}
}






16 April 2013

Maths Trick : 1089



Step1: Think of a 3 digit number.
Step2: Arrange the number in descending order.
Step3: Reverse the number and subtract it with the result.
Step4: Remember it and reverse the answer mentally.
Step5: Add it with the result, you have got.
  Answer: 1089

10 April 2013

Internet Shortcuts








Shortcuts                       Function 

ESC                              Stop downloading current page 
F5                                Refresh page 
                                    Toggle browser between full-screen and 
                                     regular 
F11                                        view 
ALT + Left Arrow                Back 
ALT + Right Arrow             Forward 
ALT + HOME                      Go to homepage 
CTRL + D                           Add page to Favorites 
CTRL + F                           Find on page 
CTRL + H                          Open History 
CTRL + I                          Open Favorites 
CTRL + P                         Print 
CTRL + T                         Open new tab 
CTRL + TAB                   Switch to next tab 
CTRL + W                        Close current tab 
CTRL + 9                         Switch to last tab 
CTRL + SHIFT + H            Open History in pinned mode 
CTRL + SHIFT + Q             View list of open tabs 
CTRL + SHIFT + TAB        Switch to previous tab 

Mozilla Firefox Keyboard Shortcuts 
Mozilla Firefox ShortcutsFunction 

ESC                           Stop downloading current page 
F5                             Refresh 
F11                          Full screen view 
ALT + HOME                Go to homepage 
ALT + Left Arrow          Back 
ALT + Right Arrow         Forward 
CTR + +                         Zoom In 
CTR + -                         Zoom Out 
CTRL+ 0                      Zoom Reset 
CTRL + K                   Select a search bar 
CTRL + TAB              Switch tabs 

Maths Trick : Number Guess




Maths Trick: Number Guess

This is a very interesting trick. We used this trick so many times in my school days
that I still remember it. Let’s take a look.

3 April 2013

CalCulator using Java


import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.io.*;
import java.lang.*;
/*
<applet code="calc" width=200 height=200>
</applet>
*/
public class calc extends Frame implements ActionListener
{
String msg= " ";
String ts=" ";
String n1,n2;
char op;
double a,b,c,prev,memory;
Button one,two,three,four,five,six,seven,eight,nine,ten,zero,dot,off;
Button backspace,clear,eq,plus,minus,mul,div,pm,sqrt,obx,sqr,sin,cos,tan;
Button mc,mr,ms,mplus,mstatus;
Panel p1=new Panel();
Panel p2=new Panel();
Panel p3=new Panel();
Panel p4=new Panel();

TextField display;

public calc()
{
setTitle("Calculator");
setLayout(new BorderLayout());
display=new TextField(30);
one=new Button("1");
two=new Button("2");
three=new Button("3");
four=new Button("4");
five=new Button("5");
six=new Button("6");
seven=new Button("7");
eight=new Button("8");
nine=new Button("9");
ten=new Button("10");
zero=new Button("0");
dot=new Button(".");
eq=new Button("=");
plus=new Button("+");
minus=new Button("-");
div=new Button(" / ");
mul=new Button("*");
sqrt=new Button("sqrt");
sin=new Button("sin");
cos=new Button("cos");
tan=new Button("tan");
clear=new Button("C");
mc=new Button("MC");
mr=new Button("MR");
ms=new Button("MS");
mplus=new Button("M+");
mstatus=new Button();

backspace=new Button("B");
off=new Button("off");

p1.add(display);
add(p1,BorderLayout.NORTH);

p4.setLayout(new GridLayout(3,1,5,5));
p4.add(backspace);
p4.add(clear);
p4.add(off);
add(p4,BorderLayout.EAST);

p3.setLayout(new GridLayout(5,2,5,5));
p3.add(mstatus);
p3.add(mc);
p3.add(mr);
p3.add(ms);
p3.add(mplus);
add(p3,BorderLayout.WEST);

p2.setLayout(new GridLayout(5,4,5,5));

p2.add(seven);
p2.add(eight);
p2.add(nine);
p2.add(div);

p2.add(four);
p2.add(five);
p2.add(six);
p2.add(mul);

p2.add(one);
p2.add(two);
p2.add(three);
p2.add(minus);

p2.add(zero);
p2.add(dot);
p2.add(eq);
p2.add(plus);

p2.add(sin);
p2.add(cos);
p2.add(tan);
p2.add(sqrt);

add(p2,BorderLayout.CENTER);

display.setEditable(false);
p1.setBackground(Color.lightGray);
p2.setBackground(Color.lightGray);
p3.setBackground(Color.lightGray);
p4.setBackground(Color.lightGray);

display.addActionListener(this);
one.addActionListener(this);
two.addActionListener(this);
three.addActionListener(this);
four.addActionListener(this);
five.addActionListener(this);
six.addActionListener(this);
seven.addActionListener(this);
eight.addActionListener(this);
nine.addActionListener(this);
zero.addActionListener(this);
dot.addActionListener(this);
eq.addActionListener(this);
plus.addActionListener(this);
minus.addActionListener(this);
clear.addActionListener(this);
backspace.addActionListener(this);
div.addActionListener(this);
mul.addActionListener(this);
sqrt.addActionListener(this);
sin.addActionListener(this);
cos.addActionListener(this);
tan.addActionListener(this);
off.addActionListener(this);
mc.addActionListener(this);
mr.addActionListener(this);
ms.addActionListener(this);
mplus.addActionListener(this);

setVisible(true);
addWindowListener(new w());
setSize(300,300);
setResizable(false);
pack();
}

public void actionPerformed(ActionEvent ae)
{

String str=ae.getActionCommand();
if(str.equals("1"))
{
ts=ts+"1";
display.setText(ts);
}
else if (str.equals("2"))
{
ts=ts+"2";
display.setText(ts);
}
else if (str.equals("3"))
{
ts=ts+"3";
display.setText(ts);
}
else if (str.equals("4"))
{
ts=ts+"4";
display.setText(ts);
}
else if (str.equals("5"))
{
ts=ts+"5";
display.setText(ts);
}
else if (str.equals("6"))
{
ts=ts+"6";
display.setText(ts);
}
else if (str.equals("7"))
{
ts=ts+"7";
display.setText(ts);
}
else if (str.equals("8"))
{
ts=ts+"8";
display.setText(ts);
}
else if (str.equals("9"))
{
ts=ts+"9";
display.setText(ts);
}
else if (str.equals("0"))
{
ts=ts+"0";
display.setText(ts);
}
else if (str.equals("."))
{
ts=ts+".";
display.setText(ts);
}

else if (str.equals("+"))
{
n1=display.getText();
ts=" ";
a=Double.parseDouble(display.getText().trim());
op='+';
display.setText(ts);
}

else if (str.equals("-"))
{
n1=display.getText();
ts=" ";
display.setText(ts);
a=Double.parseDouble(n1.trim());
op='-';
}

else if (str.equals(" / "))
{
n1=display.getText();
ts=" ";
display.setText(ts);
a=Double.parseDouble(n1.trim());
op='/';
}


else if (str.equals("*"))
{
n1=display.getText();
ts=" ";
display.setText(ts);
a=Double.parseDouble(n1.trim());
op='*';
}


else if (str.equals("C"))
{
ts=" ";
display.setText(ts);
n1=" ";
n2=" ";
a=0;b=0;c=0;
op='C';
}

else if (str.equals("B"))
{
msg=display.getText();
ts=msg.substring(0,msg.length()-1);
display.setText(ts);
op='B';
}

else if (str.equals("sqrt"))
{
n1=display.getText();
a=Double.parseDouble(n1.trim());
a=Math.sqrt(a);
ts=" "+a;
display.setText(ts);
//op='*';
}


else if (str.equals("sin"))
{
n1=display.getText();
a=Double.parseDouble(n1.trim());
a=Math.sin(a);
ts=" "+a;
display.setText(ts);
//op='*';
}

else if (str.equals("cos"))
{
n1=display.getText();
a=Double.parseDouble(n1.trim());
a=Math.cos(a);
ts=" "+a;
display.setText(ts);
//op='*';
}


else if (str.equals("tan"))
{
n1=display.getText();
a=Double.parseDouble(n1.trim());
a=Math.tan(a);
ts=" "+a;
display.setText(ts);
//op='*';
}


else if (str.equals("MC"))
{
memory=0;
mstatus.setLabel(" ");
}


else if (str.equals("MS"))
{
n1=display.getText();
if(n1!=null)
{ a=Double.parseDouble(n1.trim());
memory=a;
mstatus.setLabel("M");
}
}

else if (str.equals("MR"))
{
ts=" "+memory;
display.setText(ts);
}

else if (str.equals("M+"))
{
n1=display.getText();
if(n1!=" ")
{
a=Double.parseDouble(n1.trim());
memory=memory+a;
}
}

else if (str.equals("tan"))
{
n1=display.getText();
a=Double.parseDouble(n1.trim());
a=Math.tan(a);
ts=" "+a;
display.setText(ts);
//op='*';
}

else if (str.equals("off"))
{
setVisible(false);
System.exit(0);
}

else if (str.equals("="))
{
String n3=" ";
n2=display.getText();
b=Double.parseDouble(n2.trim());

switch(op)
{
case '+':c=a+b;break;
case '-':c=a-b;break;
case '/':c=a/b;break;
case '*':c=a*b;break;
default:c=b;
}
    n3=n3+c;
op='C';
display.setText(n3);
}


}
public static void main(String args[])
{
calc c = new calc();
};

 class w extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
setVisible(false);
System.exit(0);
}
}
}