Question about Operating Systems

1 Answer

How to create owr own calculater - Operating Systems

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Contributor
  • 20 Answers

For all os ? you must use java language! this is the code:

//<applet code="calmayank"height=300 width=300></applet>
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class calmayank extends JApplet
implements ActionListener
{
JTextField t1;

JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,
b11,b12,b13,b14,b15,b16,b17,b18,b19,b20;

GridLayout gl;
JPanel p1,p2,p3;

public void init()
{
gl=new GridLayout(5,4);
p1=new JPanel();
p2=new JPanel();
p3=new JPanel();
p1.setLayout(gl);
t1=new JTextField(17);
b1=new JButton("1");
b2=new JButton("2");
b3=new JButton("3");
b4=new JButton("4");
b5=new JButton("5");
b6=new JButton("6");
b7=new JButton("7");
b8=new JButton("8");
b9=new JButton("9");
b10=new JButton("0");
b11=new JButton("+");
b12=new JButton("-");
b13=new JButton("*");
b14=new JButton("/");
b15=new JButton("@");
b16=new JButton("$");
b17=new JButton("%");
b18=new JButton(".");
b19=new JButton("?");
b20=new JButton("=");


p2.add(t1);

p1.add(b1);
p1.add(b2);
p1.add(b3);
p1.add(b4);
p1.add(b5);
p1.add(b6);
p1.add(b7);
p1.add(b8);
p1.add(b9);
p1.add(b10);
p1.add(b11);
p1.add(b12);
p1.add(b13);
p1.add(b14);
p1.add(b15);
p1.add(b16);
p1.add(b17);
p1.add(b18);
p1.add(b19);
p1.add(b20);
p3.add(p2);
p3.add(p1);
getContentPane().add(p3);

b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
b6.addActionListener(this);
b7.addActionListener(this);
b8.addActionListener(this);
b9.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)
{
t1.setText("1");
}
else if(e.getSource()==b2)
{
t1.setText("2");
}
else if(e.getSource()==b3)
{
t1.setText("3");
}
else if(e.getSource()==b4)
{
t1.setText("4");
}
else if(e.getSource()==b5)
{
t1.setText("5");
}
else if(e.getSource()==b6)
{
t1.setText("6");
}
else if(e.getSource()==b7)
{
t1.setText("7");
}
else if(e.getSource()==b8)
{
t1.setText("8");
}
else if(e.getSource()==b9)
{
t1.setText("9");
}
}
}

Posted on Dec 15, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How i'm create my aecaount?


To create a new user account in Windows:
2_3_2013_4_56_14_pm.png2_3_2013_4_56_28_pm.png2_3_2013_4_56_36_pm.png2_3_2013_4_56_43_pm.png2_3_2013_4_56_50_pm.png
If you want to create another account, e.g., Facebook, then just ask.

Feb 03, 2013 | Operating Systems

Tip

Create a duplicate user profile with a different name


To create a duplicate of an user profile with a different user name, try this:
  • Create a new user account
  • Logon to that account to initialize the newly created profile
  • Log off from the newly created profile
  • Login as built-in Administrator
  • Open Control Panel System applet
  • Click the Advanced tab
  • Click Settings under User Profiles
  • Select a profile to copy from and choose Copy To
  • Browse to the profile to copy to (C:\Documents and Settings\username)
A new profile is now created which is the duplicate of your user profile.

on Mar 24, 2008 | Microsoft Windows Vista Ultimate Edition

2 Answers

Recdisc 64


What the software did you use to create reset disk to reset windows password?

As I know, a tool called Windows Password Reset allwo to create a reset disk easily and safely.

You can download from http://www.windowspasswordreset.net and have a try.

May 27, 2012 | Microsoft Windows Vista Home Premium Full...

2 Answers

How to create backup disk in a netbook


  • In Control Panel, click System and Security (System and Security), and then click Backup and Restore (Backup and Restore).

  • In the left pane, click Create a system recovery disk (Create a system recovery disc);

  • Insert a blank CD in the DVD, and then click Create Disk (Create Disc).

    2-create-system-recovery-2.jpg
  • The disc is created is a few seconds:

    2-create-sucess-2.jpg

Jul 03, 2011 | Microsoft Windows 7 Ultimate for PC

1 Answer

My computer is not creating Restore Points... yes it's turned on... yes I know how to do a manual... but it disappears when the next Restore Point is created... can you help?


Creating a System Restore point using a shortcut For a more elegant way to create a System Restore point using Script in Windows Vista, check out our article Create System Restore Points Quickly using Script in Windows Vista and Windows XP.
Alternately, you may use the method below:
Copy the contents below to a Notepad document, and save it to a file name with .vbs extension (Example: createrp.vbs) and close Notepad.
set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
CSRP = SRP.createrestorepoint ("Created a Restore Point now", 0, 100)
If CSRP <> 0 then
Msgbox "Error " & CSRP & ": Unable to create System Restore point"
End if
Right-click on the Desktop and select New - Shortcut
Create a shortcut with the following target:
wscript.exe c:\scripts\createrp.vbs
Note: The above assumes that the createrp.vbs script is present in the c:\scripts folder. If that's not the case, change the Path accordingly.
Name the shortcut file name as Create Restore Point
Running the script To create a System Restore point, run the script with elevated mode. To do so, right-click on the newly created shortcut (Create Restore Point.lnk) and choose Run as administrator. When you are prompted for an administrator password or confirmation, type the password or provide confirmation. A System Restore point will automatically be created.

Nov 23, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

Creating a ring using two circles in c++ program


Nice try!

If nobody has helped you since September 2008, when you asked the question, you probably scored a "zero" in your computer-programming course, and probably don't need an answer to your "homework" assignment.

Sep 15, 2008 | Operating Systems

1 Answer

Sound


hi dear

Through the All Programs menu:
1.
Click Start.
2.
Point to All Programs.
3.
Point to Accessories.
4.
Point to System Tools.
5.
Click System Restore.
6.
Follow the instructions on the wizard.
Creating a restore point can be useful any time you anticipate making changes to your computer that are risky or might make your computer unstable. If something goes wrong, you select the restore point you just created and Windows XP undoes any system changes made since that time.
Create a Restore Point
1.
Open System Restore. (See step-by-step instructions above.)
2.
Click Create a restore point, and then click Next.
3.
In the Restore point description box, type a name to identify this restore point as seen in Figure 1 below. System Restore automatically adds the date and time that this Restore Point is created.
3201fb4.gif
Figure 1. Creating a restore point
• To finish creating this restore point, click Create.
• To cancel restore point creation and return to the Welcome to System Restore screen, click Back.
• To cancel restore point creation and exit the System Restore Wizard, click Cancel.
To view or to return to this restore point, from the Welcome to System Restore screen of the System Restore Wizard select Restore my computer to an earlier time. Then select the date you created the restore point from the calendar in the Select a Restore Point screen. All of the restore points you created and you computer created on the selected date are listed by name in the list box to the right of the calendar.
Note System Restore does not replace the process of uninstalling a program. To completely remove the files installed by a program, you must remove the program using Add or Remove Programs in Control Panel or the program's own uninstall program. To open Add or Remove Programs, click Start, click Control Panel, and then click Add or Remove Programs.


oke



cropp

Mar 25, 2008 | Microsoft Windows XP Home Edition

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

210 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18298 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...