المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ارجوكم ساعدوني انا في ورطة يا خوان



abo adnan
20-05-2007, 10:34 AM
بسم الله الرحمن الرحيم

هذا هو الكود ياخوان بس الي ابغاة انكم تضعو لي البرنامجين الي في الاسفل في هذا البرنامج الله يخليكم ياخوان بكرة تسليم البرنامج وانا خريج ياخوان طلبتكم ولا تردوني
(( هذا البرنامج الاساسي ))
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.ImageIcon;
import javax.swing.JRadioButton;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JOptionPane;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JSlider;
import javax.swing.SwingConstants;
import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;

public class Group2 extends JFrame
{
private JButton aButton,bButton,cButton,dButton,OKButton,e,endButton,EXITButton,Button1,Button2,Button3,Button4,Butt on5,Button6,Button7,Button8,Button9,Button0,fButton,pointButton,CEButton,runButton,vButton ,v3Button,v4Button,v5Button,v6Button,v7Button,v11Button,v12Button,v13Button,v14Button,v15Button,v16B utton,v17Button,v20Button,v21Button,v22Button,v23Button,v30Button,v31Button,v32Button,v33Button,v34B utton,a01Button,a03Button,a05Button,a06Button,a07Button,a08Button,a09Button,a10Button,a13Button,a14B utton,a15Button,a16Button,a17Button,a18Button,a19Button,a20Button,a21Button,a22Button,a23Button,a24B utton,s1Button,s2Button;
private JTextField TextField1,TextField2;
private JRadioButton OUT,IN;
private ButtonGroup radioGroup;
private JTextArea text;
double num1=0,num2=0,a=0;
//double a=0;
private JCheckBox aCheckBox,bCheckBox,cCheckBox,dCheckBox,eCheckBox,fCheckBox,gCheckBox,hCheckBox,a1CheckBox,a2CheckBo x,a3CheckBox;
private JRadioButton aRadioButton,bRadioButton,cRadioButton,dRadioButton,eRadioButton,fRadioButton,gRadioButton,hRadioBut ton,iRadioButton,jRadioButton,kRadioButton,lRadioButton,a1RadioButton,a2RadioButton,a3RadioButton,a4 RadioButton,a5RadioButton,a6RadioButton;
//private JComboBox 1ComboBox,2ComboBox,3ComboBox,4ComboBox,5ComboBox,6ComboBox,7ComboBox,8ComboBox;
// private JScrollPane scrollPane1,scrollPane2,scrollPane3;
//private Color color = Color.lightGray;
private JPanel colorPanel;
private JSlider redSlider;
private JSlider greenSlider;
private JSlider blueSlider;
private static final int PANEL_WIDTH=300;
private static final int PANEL_HEIGHT=300;
private JScrollPane scrollPane;

//////////////////////////////////////////////////////////////////////////////////
private JPanel cjp = new JPanel();
private JPanel sjp = new JPanel();
private JLabel rjl = new JLabel("Red", SwingConstants.RIGHT);
private JLabel gjl = new JLabel("Green",SwingConstants.RIGHT);
private JLabel bjl = new JLabel("Blue", SwingConstants.RIGHT);
private JSlider rjs = new JSlider(0,100,100);
private JSlider gjs = new JSlider(0,100, 70);
private JSlider bjs = new JSlider(0,100, 70);
private JTextField rjtf = new JTextField(10);
private JTextField gjtf = new JTextField(10);
private JTextField bjtf = new JTextField(10);
private float red, green, blue;
/////////////////////////////////////////////////////////////////////////////////
private JLabel Label2,Label3,Label4,Label5,label,label6;
String O="";
int i;
public Group2()
{
super(" تحويــــــــــــــــــــــــــــــــل القياســــــــــــــــــــــــــــات ");

final int SIZE=3;
Container container=getContentPane();
container.setLayout(new BorderLayout(4,0));
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
// ________________________<SUPER panel>_______________
JPanel textPanel = new JPanel();
container.add(textPanel,BorderLayout.NORTH);
textPanel.setLayout( new GridLayout(1,1) );
///////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
JPanel Panel1 = new JPanel();
container.add(Panel1,BorderLayout.WEST);
Panel1.setLayout( new GridLayout(6,3) );
Panel1.setBorder(new TitledBorder(new EtchedBorder(),"الآلة"));


JPanel Panel2 = new JPanel();
container.add(Panel2,BorderLayout.EAST);
Panel2.setLayout( new GridLayout(4,2) );
Panel2.setBorder(new TitledBorder(new EtchedBorder(),"العمليات"));

JPanel Panel3 = new JPanel();
container.add(Panel3,BorderLayout.SOUTH);
Panel3.setLayout( new GridLayout(1,2) );
Panel3.setBorder(new TitledBorder(new EtchedBorder(),"النهاية"));
//Icon bug9= new ImageIcon("a1.gif");
JPanel Panel4 = new JPanel();
container.add(Panel4,BorderLayout.CENTER);
Panel4.setLayout( new BorderLayout(4,4) );
Panel4.setBorder(new TitledBorder(new EtchedBorder(),"الشاشة"));
//Panel4.setRolloverIcon( bug9);



// ________________________
_______________</P>
TextField1=new JTextField("",18);
TextField1.setFont(new Font("Arial",Font.BOLD,18));
textPanel.add(TextField1);

text=new JTextArea("بسم الله الرحمن الرحيم ");
text.setFont(new Font("Arial",Font.BOLD,16));
Panel4.add(text,BorderLayout.CENTER);
text.setVisible(true);
label6=new JLabel();
Panel4.add(label6,BorderLayout.EAST);
label6.setVisible(true);

text=new JTextArea(8,40);
scrollPane = new JScrollPane(text);
Panel4.add(scrollPane, BorderLayout.CENTER);
text.setFont(new Font("Arial",Font.BOLD,16));

//___________________________________________________________________________________
__________________________</P>

//____________________________________________________________________________________________________ _______

// ________________________
_______________</P>Color customPurple=new Color(255,255,191);

Button1=new JButton("" +

" 1
");
Button1.setBackground(customPurple);
Button1.setForeground(Color.white);
Panel1.add(Button1);
Button2=new JButton("" +

" 2
");
Button2.setBackground(customPurple);
Button2.setForeground(Color.white);
Panel1.add(Button2);
Button3=new JButton("" +

" 3
");
Button3.setBackground(customPurple);
Button3.setForeground(Color.white);
Panel1.add(Button3);
Button4=new JButton("" +

" 4
");
Button4.setBackground(customPurple);
Button4.setForeground(Color.white);
Panel1.add(Button4);
Button5=new JButton("" +

" 5
");
Button5.setBackground(customPurple);
Button5.setForeground(Color.white);
Panel1.add(Button5);
Button6=new JButton("" +

" 6
");
Button6.setBackground(customPurple);
Button6.setForeground(Color.white);
Panel1.add(Button6);
Button7=new JButton("" +

" 7
");
Button7.setBackground(customPurple);
Button7.setForeground(Color.white);
Panel1.add(Button7);
Button8=new JButton("" +

" 8
");
Button8.setBackground(customPurple);
Button8.setForeground(Color.white);
Panel1.add(Button8);
Button9=new JButton("" +

" 9
");
Button9.setBackground(customPurple);
Button9.setForeground(Color.white);
Panel1.add(Button9);
Button0=new JButton("" +

" 0
");
Button0.setBackground(customPurple);
Button0.setForeground(Color.white);
Panel1.add(Button0);
pointButton=new JButton("" +

" <ALIGN=CENTER color="blue">.
");
pointButton.setBackground(customPurple);
pointButton.setForeground(Color.white);
Panel1.add(pointButton);
v32Button=new JButton("" +

" -
");
v32Button.setBackground(customPurple);
v32Button.setForeground(Color.white);
Panel1.add(v32Button);
v33Button=new JButton("" +

" ×
");
v33Button.setBackground(customPurple);
v33Button.setForeground(Color.white);
Panel1.add(v33Button);
v34Button=new JButton("" +

" ÷
");
v34Button.setBackground(customPurple);
v34Button.setForeground(Color.white);
Panel1.add(v34Button);
v31Button=new JButton("" +

" +
");
v31Button.setBackground(customPurple);
v31Button.setForeground(Color.white);
Panel1.add(v31Button);
v30Button=new JButton("" +

" =
");
v30Button.setBackground(customPurple);
v30Button.setForeground(Color.white);
Panel1.add(v30Button);
CEButton=new JButton("" +

" CE
");
CEButton.setBackground(customPurple);
CEButton.setForeground(Color.white);
Panel1.add(CEButton);
label=new JLabel();
Panel1.add(label);






// ________________________
______________</P>

Icon bug10= new ImageIcon( "aa.gif" );
Icon bug1= new ImageIcon( "w.jpg" );
s1Button=new JButton("" +

"<CENTER>الـــــــــــــــقــــوة
</CENTER>",bug1);
s1Button.setBackground(customPurple);
s1Button.setForeground(Color.white);
s1Button.setRolloverIcon( bug1);
s1Button.setRolloverIcon( bug10);
Panel2.add(s1Button);
Icon bug11= new ImageIcon( "ققققق.jpg" );
Icon bug2= new ImageIcon( "عاغ.jpg" );
s2Button=new JButton("" +

" الــكــثـــــافة
",bug2);
s2Button.setBackground(customPurple);
s2Button.setForeground(Color.white);
s2Button.setRolloverIcon( bug2 );
s2Button.setRolloverIcon( bug11);
Panel2.add(s2Button);

Icon bug12= new ImageIcon( "ت.jpg" );
Icon bug3= new ImageIcon( "ففف.jpg" );
aButton=new JButton("" +

" الــــــــــــــــــطول
",bug3);
aButton.setBackground(customPurple);
aButton.setForeground(Color.white);
aButton.setRolloverIcon( bug3);
aButton.setRolloverIcon( bug12);
Panel2.add(aButton);

Icon bug13= new ImageIcon( "م.jpg" );
Icon bug4= new ImageIcon( "images.jpg" );
bButton=new JButton("" +

" المســــــــــاحة
",bug4);
bButton.setBackground(customPurple);
bButton.setForeground(Color.white);
bButton.setRolloverIcon( bug4);
bButton.setRolloverIcon( bug13);
Panel2.add(bButton);

Icon bug14= new ImageIcon( "ثص.jpg" );
Icon bug5= new ImageIcon( "ح.jpg" );
cButton=new JButton("" +

" الـــــــتـواقــيت
",bug5);
cButton.setBackground(customPurple);
cButton.setForeground(Color.white);
cButton.setRolloverIcon( bug5);
cButton.setRolloverIcon( bug14);
Panel2.add(cButton);

Icon bug15= new ImageIcon( "اغلق.jpg" );
Icon bug6= new ImageIcon( "قق.jpg" );
dButton=new JButton("" +

" الحـــــــــــرارة
",bug6);
dButton.setBackground(customPurple);
dButton.setForeground(Color.white);
dButton.setRolloverIcon( bug6);
dButton.setRolloverIcon( bug15);
Panel2.add(dButton);


Icon bug16= new ImageIcon( "ب.jpg" );
Icon bug7= new ImageIcon( "قققق.jpg" );
e=new JButton ("" +

" العمـــــــــــــــلات
",bug7);
e.setBackground(customPurple);
e.setForeground(Color.white);
e.setRolloverIcon( bug7);
e.setRolloverIcon( bug16);
Panel2.add(e);


Icon bug17= new ImageIcon( "صصصص.jpg" );
Icon bug8= new ImageIcon( "ههه.jpg" );
a03Button=new JButton ("" +

" قوانيــن عامة
",bug8);
a03Button.setBackground(customPurple);
a03Button.setRolloverIcon( bug8);
a03Button.setRolloverIcon( bug17);
a03Button.setForeground(Color.white);
Panel2.add(a03Button);


// ________________________
_______________</P>EXITButton=new JButton ("" +

" إلغاء أمر
");
//Color customPurple=new Color(0,200,0);
EXITButton.setBackground(customPurple);
EXITButton.setForeground(Color.white);
Panel3.add(EXITButton);
endButton=new JButton ("" +

" خروج
");
endButton.setBackground(customPurple);
endButton.setForeground(Color.white);
Panel3.add(endButton);

OKButton=new JButton ("موافق");
//Panel3.add(OKButton);
//--------------------------panel5 oppration--------------------------------------------

/*}
public static void main(String[] args){
new Slider();
}}*/

//=========================================================



//-----------------------"oppration panel 2"--------------------------------------------

aButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame8 = new JFrame("الطـــــول");
Container container8=frame8.getContentPane();
container8.setLayout(new GridLayout(2,2,1,1));
//JPanel titlePanel= new JPanel();
//container8.add(titlePanel,BorderLayout.NORTH);
Color customPurple=new Color(70,70,0);
aCheckBox=new JCheckBox ("سم الي متر");
aCheckBox.setBackground(customPurple);
aCheckBox.setForeground(Color.white);
container8.add(aCheckBox);
bCheckBox=new JCheckBox ("متر الي سم");
bCheckBox.setBackground(customPurple);
bCheckBox.setForeground(Color.white);
container8.add(bCheckBox);
cCheckBox=new JCheckBox ("ملل الي متر");
cCheckBox.setBackground(customPurple);
cCheckBox.setForeground(Color.white);
container8.add(cCheckBox);

dCheckBox=new JCheckBox ("متر الي ملل");
dCheckBox.setBackground(customPurple);
dCheckBox.setForeground(Color.white);
container8.add(dCheckBox);
eCheckBox=new JCheckBox ("كيلو متر الى متر");
eCheckBox.setBackground(customPurple);
eCheckBox.setForeground(Color.white);
container8.add(eCheckBox);
fCheckBox=new JCheckBox("متر الى كيلو متر ");
fCheckBox.setBackground(customPurple);
fCheckBox.setForeground(Color.white);
container8.add(fCheckBox);
gCheckBox=new JCheckBox("لتر الى ملل ");
gCheckBox.setBackground(customPurple);
gCheckBox.setForeground(Color.white);
container8.add(gCheckBox);
hCheckBox=new JCheckBox("ملل الى لتر ");
hCheckBox.setBackground(customPurple);
hCheckBox.setForeground(Color.white);
container8.add(hCheckBox);

frame8.setSize(380,140);
frame8.setVisible(true);

ButtonHandler handler =new ButtonHandler();
fCheckBox.addActionListener(handler);
aCheckBox.addActionListener(handler);
bCheckBox.addActionListener(handler);
cCheckBox .addActionListener(handler);
dCheckBox .addActionListener(handler);
eCheckBox.addActionListener(handler);
gCheckBox.addActionListener(handler);
hCheckBox.addActionListener(handler);

}
}
);

bButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame7 = new JFrame("المساحة");
Container container7=frame7.getContentPane();
container7.setLayout(new GridLayout(2,2,1,1));
//JPanel titlePane2= new JPanel();
//container7.add(titlePane2,BorderLayout.NORTH);
v4Button=new JButton ("مساحة المستطيل");
Color customPurple=new Color(0,0,121);
v4Button.setBackground(customPurple);
v4Button.setForeground(Color.white);
container7.add(v4Button);
v3Button=new JButton ("مساحة المربع");
v3Button.setBackground(customPurple);
v3Button.setForeground(Color.white);
container7.add(v3Button);
v12Button=new JButton ("مساحة المعين");
v12Button.setBackground(customPurple);
v12Button.setForeground(Color.white);
container7.add(v12Button);
v13Button=new JButton ("مساحة المثلث");
v13Button.setBackground(customPurple);
v13Button.setForeground(Color.white);
container7.add(v13Button);
v20Button=new JButton ("مساحة المكعب الكلية");
v20Button.setBackground(customPurple);
v20Button.setForeground(Color.white);
container7.add(v20Button);
v21Button=new JButton ("مساحة الكرة");
v21Button.setBackground(customPurple);
v21Button.setForeground(Color.white);
container7.add(v21Button);

frame7.setSize(450,120);
frame7.setVisible(true);
ButtonHandler handler =new ButtonHandler();
v4Button.addActionListener(handler);
v3Button.addActionListener(handler);
v12Button.addActionListener(handler);
v13Button.addActionListener(handler);
v20Button.addActionListener(handler);
v21Button.addActionListener(handler);
}
}
);
cButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame6 = new JFrame("التواقيت");
Container container6=frame6.getContentPane();
container6.setLayout(new GridLayout(2,2,1,1));
//JPanel titlePane3= new JPanel();
//container6.add(titlePane3,BorderLayout.NORTH);
v5Button=new JButton ("ســـدنـــي");
Color customPurple=new Color(0,200,0);
v5Button.setBackground(customPurple);
v5Button.setForeground(Color.white);
container6.add(v5Button);
v6Button=new JButton ("لنــــــــدن");
v6Button.setBackground(customPurple);
v6Button.setForeground(Color.white);
container6.add(v6Button);
v14Button=new JButton ("باريس");
v14Button.setBackground(customPurple);
v14Button.setForeground(Color.white);
container6.add(v14Button);
v15Button=new JButton ("برلين");
v15Button.setBackground(customPurple);
v15Button.setForeground(Color.white);
container6.add(v15Button);
a05Button=new JButton (" القاهرة");
a05Button.setBackground(customPurple);
a05Button.setForeground(Color.white);
container6.add(a05Button);
a06Button=new JButton (" واشنطن");
a06Button.setBackground(customPurple);
a06Button.setForeground(Color.white);
container6.add(a06Button);
a07Button=new JButton (" انقرة");
a07Button.setBackground(customPurple);
a07Button.setForeground(Color.white);
container6.add(a07Button);
a08Button=new JButton (" برازيليا");
a08Button.setBackground(customPurple);
a08Button.setForeground(Color.white);
container6.add(a08Button);
a09Button=new JButton (" بروكسل");
a09Button.setBackground(customPurple);
a09Button.setForeground(Color.white);
container6.add(a09Button);
a10Button=new JButton (" طوكيو");
a10Button.setBackground(customPurple);
a10Button.setForeground(Color.white);
container6.add(a10Button);

frame6.setSize(450,140);
frame6.setVisible(true);

ButtonHandler handler =new ButtonHandler();
v5Button.addActionListener(handler);
v6Button.addActionListener(handler);
v14Button.addActionListener(handler);
v15Button.addActionListener(handler);
a05Button.addActionListener(handler);
a06Button.addActionListener(handler);
a07Button.addActionListener(handler);
a08Button.addActionListener(handler);
a09Button.addActionListener(handler);
a10Button.addActionListener(handler);
}
}
);
dButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame5 = new JFrame("الحرارة");
Container container5=frame5.getContentPane();
container5.setLayout(new GridLayout(2,2,1,1));
Color customPurple=new Color(242,79,0);
aRadioButton=new JRadioButton ("مئوي الى فهرنهايت");
aRadioButton.setBackground(customPurple);
aRadioButton.setForeground(Color.white);
container5.add(aRadioButton);
bRadioButton=new JRadioButton ("فهرنهايت الى مئوي");
bRadioButton.setBackground(customPurple);
bRadioButton.setForeground(Color.white);
container5.add(bRadioButton);
cRadioButton=new JRadioButton ("كلفن الى مئوي");
cRadioButton.setBackground(customPurple);
cRadioButton.setForeground(Color.white);
container5.add(cRadioButton);
dRadioButton=new JRadioButton ("مئوي الى كلفن");
dRadioButton.setBackground(customPurple);
dRadioButton.setForeground(Color.white);
container5.add(dRadioButton);
eRadioButton=new JRadioButton ("كلفن الى فهرنهايت");
eRadioButton.setBackground(customPurple);
eRadioButton.setForeground(Color.white);
container5.add(eRadioButton);
fRadioButton=new JRadioButton ("فهرنهايت الى كلفن");
fRadioButton.setBackground(customPurple);
fRadioButton.setForeground(Color.white);
container5.add(fRadioButton);

gRadioButton=new JRadioButton ("سيليزي الى فهرنهايت");
gRadioButton.setBackground(customPurple);
gRadioButton.setForeground(Color.white);
container5.add(gRadioButton);
hRadioButton=new JRadioButton ("فهرنهايت الى سيليزي");
hRadioButton.setBackground(customPurple);
hRadioButton.setForeground(Color.white);
container5.add(hRadioButton);

iRadioButton=new JRadioButton ("مطلق الى سيليزي");
iRadioButton.setBackground(customPurple);
iRadioButton.setForeground(Color.white);
container5.add(iRadioButton);

jRadioButton=new JRadioButton ("سيليزي الى مطلق");
jRadioButton.setBackground(customPurple);
jRadioButton.setForeground(Color.white);
container5.add(jRadioButton);

kRadioButton=new JRadioButton ("فهرنهايت الى مطلق");
kRadioButton.setBackground(customPurple);
kRadioButton.setForeground(Color.white);
container5.add(kRadioButton);

lRadioButton=new JRadioButton ("مطلق الى فهرنهايت");
lRadioButton.setBackground(customPurple);
lRadioButton.setForeground(Color.white);
container5.add(lRadioButton);

frame5.setSize(750,120);
frame5.setVisible(true);
ButtonHandler handler =new ButtonHandler();
aRadioButton.addActionListener(handler);
bRadioButton.addActionListener(handler);
cRadioButton.addActionListener(handler);
dRadioButton.addActionListener(handler);
eRadioButton.addActionListener(handler);
fRadioButton.addActionListener(handler);
gRadioButton.addActionListener(handler);
hRadioButton.addActionListener(handler);
iRadioButton.addActionListener(handler);
jRadioButton.addActionListener(handler);
kRadioButton.addActionListener(handler);
lRadioButton.addActionListener(handler);
}
}
);
e.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame3 = new JFrame("العملة");
Container container3=frame3.getContentPane();
container3.setLayout(new GridLayout(2,2,1,1));
//JPanel titlePane4= new JPanel();
// container3.add(titlePane4,BorderLayout.NORTH);
v7Button=new JButton ("الدولار");
Color customPurple=new Color(68,123,122);
v7Button.setBackground(customPurple);
v7Button.setForeground(Color.white);
container3.add(v7Button);
v11Button=new JButton ("اليورو");
v11Button.setBackground(customPurple);
v11Button.setForeground(Color.white);
container3.add(v11Button);
v16Button=new JButton ("الدينار الكويتي");
v16Button.setBackground(customPurple);
v16Button.setForeground(Color.white);
container3.add(v16Button);
v17Button=new JButton ("الجنية الاسترليني");
v17Button.setBackground(customPurple);
v17Button.setForeground(Color.white);
container3.add(v17Button);
a13Button=new JButton ("الدرهم الاماراتي");
a13Button.setBackground(customPurple);
a13Button.setForeground(Color.white);
container3.add(a13Button);
a14Button=new JButton("الجنية المصري");
a14Button.setBackground(customPurple);
a14Button.setForeground(Color.white);
container3.add(a14Button);
a15Button=new JButton(" الين الياباني");
a15Button.setBackground(customPurple);
a15Button.setForeground(Color.white);
container3.add(a15Button);
a16Button=new JButton("ليرة تركي");
a16Button.setBackground(customPurple);
a16Button.setForeground(Color.white);
container3.add(a16Button);

frame3.setSize(450,130);
frame3.setVisible(true);
ButtonHandler handler =new ButtonHandler();
v7Button.addActionListener(handler);
v11Button.addActionListener(handler);
v16Button.addActionListener(handler);
v17Button.addActionListener(handler);
a13Button.addActionListener(handler);
a14Button.addActionListener(handler);
a15Button.addActionListener(handler);
a16Button.addActionListener(handler);
}
}
);

a03Button.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame2 = new JFrame("قوانين");
Container container2=frame2.getContentPane();
container2.setLayout(new GridLayout(2,2,1,1));
/*JPanel titlePanel= new JPanel();
container2.add(titlePanel,BorderLayout.NORTH);
titlePanel.setLayout( new GridLayout(4,2) );*/
a17Button=new JButton("قانون المساحات");
Color customPurple=new Color(128,0,64);
a17Button.setBackground(customPurple);
a17Button.setForeground(Color.white);
container2.add(a17Button);
a18Button=new JButton("قانون الحرارة");
a18Button.setBackground(customPurple);
a18Button.setForeground(Color.white);
container2.add(a18Button);
a19Button=new JButton(" قانون الاطوال");
a19Button.setBackground(customPurple);
a19Button.setForeground(Color.white);
container2.add(a19Button);
a20Button=new JButton(" قانون العملات");
a20Button.setBackground(customPurple);
a20Button.setForeground(Color.white);
container2.add(a20Button);
a21Button=new JButton(" قانون التواقيت");
a21Button.setBackground(customPurple);
a21Button.setForeground(Color.white);
container2.add(a21Button);
a22Button=new JButton("فريق العمل");
a22Button.setBackground(customPurple);
a22Button.setForeground(Color.white);
container2.add(a22Button);
a23Button=new JButton("قانون القوة");
a23Button.setBackground(customPurple);
a23Button.setForeground(Color.white);
container2.add(a23Button);
a24Button=new JButton("قانون الكثافة");
a24Button.setBackground(customPurple);
a24Button.setForeground(Color.white);
container2.add(a24Button);


frame2.setSize(450,129);
frame2.setVisible(true);
ButtonHandler handler =new ButtonHandler();
a17Button.addActionListener(handler);
a18Button.addActionListener(handler);
a19Button.addActionListener(handler);
a20Button.addActionListener(handler);
a21Button.addActionListener(handler);
a22Button.addActionListener(handler);
a23Button.addActionListener(handler);
a24Button.addActionListener(handler);




}
}
);
s1Button.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame9 = new JFrame("القوة");
Container container9=frame9.getContentPane();
container9.setLayout(new GridLayout(2,2,1,1));
a1RadioButton=new JRadioButton ("الانفعال");
Color customPurple=new Color(150,200,0);
a1RadioButton.setBackground(customPurple);
a1RadioButton.setForeground(Color.white);
container9.add(a1RadioButton);
a2RadioButton=new JRadioButton ("الاجهاد");
a2RadioButton.setBackground(customPurple);
a2RadioButton.setForeground(Color.white);
container9.add(a2RadioButton);
a3RadioButton=new JRadioButton ("الضغط عل سطح جامد");
a3RadioButton.setBackground(customPurple);
a3RadioButton.setForeground(Color.white);
container9.add(a3RadioButton);
a4RadioButton=new JRadioButton ("الكتلة");
a4RadioButton.setBackground(customPurple);
a4RadioButton.setForeground(Color.white);
container9.add(a4RadioButton);
a5RadioButton=new JRadioButton ("ثقل الجسم");
a5RadioButton.setBackground(customPurple);
a5RadioButton.setForeground(Color.white);
container9.add(a5RadioButton);
a6RadioButton=new JRadioButton ("القوة الضاغطة على احد الجدار الجانبية");
a6RadioButton.setBackground(customPurple);
a6RadioButton.setForeground(Color.white);
container9.add(a6RadioButton);


frame9.setSize(550,120);
frame9.setVisible(true);

ButtonHandler handler =new ButtonHandler();

a1RadioButton.addActionListener(handler);
a2RadioButton.addActionListener(handler);
a3RadioButton.addActionListener(handler);
a4RadioButton.addActionListener(handler);
a5RadioButton.addActionListener(handler);
a6RadioButton.addActionListener(handler);
}
}
);
s2Button.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
JFrame frame10 = new JFrame("الكثافة");
Container container10=frame10.getContentPane();
container10.setLayout(new GridLayout(1,1,1,1));
a1CheckBox=new JCheckBox ("قياس درجة الكثافة");
Color customPurple=new Color(150,200,0);
a1CheckBox.setBackground(customPurple);
a1CheckBox.setForeground(Color.white);
container10.add(a1CheckBox);
a2CheckBox=new JCheckBox("الوزن النوعي للكثافة");
a2CheckBox.setBackground(customPurple);
a2CheckBox.setForeground(Color.white);
container10.add(a2CheckBox);
a3CheckBox=new JCheckBox("تعيين كثافة السائل");
a3CheckBox.setBackground(customPurple);
a3CheckBox.setForeground(Color.white);
container10.add(a3CheckBox);

frame10.setSize(450,120);
frame10.setVisible(true);
ButtonHandler handler =new ButtonHandler();
a1CheckBox.addActionListener(handler);
a2CheckBox.addActionListener(handler);
a3CheckBox.addActionListener(handler);
}
}
);
//________________________________________________________________
ButtonHandler handler =new ButtonHandler();
Button0.addActionListener(handler);
Button1.addActionListener(handler);
Button2.addActionListener(handler);
Button3.addActionListener(handler);
Button4.addActionListener(handler);
Button5.addActionListener(handler);
Button6.addActionListener(handler);
Button7.addActionListener(handler);
Button8.addActionListener(handler);
Button9.addActionListener(handler);
CEButton.addActionListener(handler);
pointButton.addActionListener(handler);
v30Button.addActionListener(handler);
v31Button.addActionListener(handler);
v32Button.addActionListener(handler);
v33Button.addActionListener(handler);
v34Button.addActionListener(handler);
//a04Button.addActionListener(handler);


//-----------------------"oppration panel 3"-------------------
endButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
System.exit( 0 );
}
}
);
EXITButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
O="";
TextField1.setText(O);
String Q="";
//text.setText(Q);
// label6.setVisible(true);
// text.setVisible(false);
}
}
);



/*OKButton.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
}
}
);*/
//----------------------<FINALL>-----------------------------
setSize(950,300);
setVisible(true);
}
public static void main(String args[])
{
Group2 application=new Group2();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
//-----------------------"oppration panel 1"--------------------------------------------


private class ButtonHandler implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
try{
if(event.getSource()==Button0)
{
TextField1.setText( TextField1.getText() + "0" ) ;
}
else if(event.getSource()==Button1)
{
TextField1.setText( TextField1.getText() + "1" ) ;
}
else if(event.getSource()==Button2)
{
TextField1.setText( TextField1.getText() + "2" ) ;
}
else if(event.getSource()==Button3)
{
TextField1.setText( TextField1.getText() + "3" ) ;
}
else if(event.getSource()==Button4)
{
TextField1.setText( TextField1.getText() + "4" ) ;
}
else if(event.getSource()==Button5)
{
TextField1.setText( TextField1.getText() + "5" ) ;
}
else if(event.getSource()==Button6)
{
TextField1.setText( TextField1.getText() + "6" ) ;
}
else if(event.getSource()==Button7)
{
TextField1.setText( TextField1.getText() + "7" ) ;
}
else if(event.getSource()==Button8)
{
TextField1.setText( TextField1.getText() + "8" ) ;
}
else if(event.getSource()==Button9)
{
TextField1.setText( TextField1.getText() + "9" ) ;
}
else if(event.getSource()==pointButton)
{
TextField1.setText( TextField1.getText() + "." ) ;
}
else if(event.getSource()==CEButton)
{
O="";
TextField1.setText(O);
}
else if(event.getSource()==v31Button)
{
O="+";
label.setText(O);
num1= Double.parseDouble(TextField1.getText());
TextField1.setText("");
}
else if(event.getSource()==v32Button)
{
O="-";
label.setText(O);
num1= Double.parseDouble(TextField1.getText());
TextField1.setText("");
}
else if(event.getSource()==v33Button)
{
O="×";
label.setText(O);
num1= Double.parseDouble(TextField1.getText());
TextField1.setText("");
}
else if(event.getSource()==v34Button)
{
O="÷";
label.setText(O);
num1= Double.parseDouble(TextField1.getText());
TextField1.setText("");
}
else if(event.getSource()==v30Button)
{
num2= Double.parseDouble(TextField1.getText());
O="";
String H=label.getText();
if(H=="+")
a=(num1-(-num2));
else if(H=="-")
a=(num1-num2);
else if(H=="÷")
if(num2==0)
{
JOptionPane.showMessageDialog(null,"لا يمكن القسمة على صفر","الآلة الحاسبة",JOptionPane.PLAIN_MESSAGE);
}
else
{
a=(num1/num2);
}
else if(H=="×")
a=(num1*num2);
String P="",s=".";
TextField1.setText(P) ;
label.setText(s) ;
O+=a;
TextField1.setText(O);
}

else if(event.getSource()==bCheckBox)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوحدة بالمتر","متر الى سم",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*100;
JOptionPane.showMessageDialog(null,"يساوي سم="+i,"طول سم",JOptionPane.PLAIN_MESSAGE);


}
else if(event.getSource()==aCheckBox)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوحدسنتمتر " ,"سم الى متر",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u/100;
JOptionPane.showMessageDialog(null,"متريساوي="+i,"طول المتر",JOptionPane.PLAIN_MESSAGE);


}
else if(event.getSource()==dCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوحة بالمتر ","متر الى ملل",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*1000;
JOptionPane.showMessageDialog(null,"ملمتر="+i,"طول الملمتر",JOptionPane.PLAIN_MESSAGE);


}
else if(event.getSource()==cCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null,"أدخل الوحدة ملل ","ملل الى متر",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u/1000;
JOptionPane.showMessageDialog(null,"متر="+i,"طول المتر",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==eCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null,"ادخل الوحدة بالكيلو متر ","من كيلو الى متر",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*1000;
JOptionPane.showMessageDialog(null,"متر="+i,"طول المتر",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==fCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null,"ادخل الوحدة بالمتر ","من كيلو الى مترر",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u/1000;
JOptionPane.showMessageDialog(null,"كيلو متر="+i,"الطول بالكيلومتر",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==fCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null,"ادخل الوحدة بالمتر ","من كيلو الى مترر",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u/1000;
JOptionPane.showMessageDialog(null,"كيلو متر="+i,"الطول بالكيلومتر",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==gCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null,"ادخل الوحدة لتر ","من لتر الى ملل",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*1000;
JOptionPane.showMessageDialog(null,"ملل="+i,"الطول بالملل",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==hCheckBox)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null,"ادخل الوحدة بلملل ","من ملل الى لتر",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u/1000;
JOptionPane.showMessageDialog(null,"لتر="+i,"طول اللتر",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v4Button)
{

String h;
String k;
double i;
double o;
double u;
;
k=JOptionPane.showInputDialog(null," أدخل عرض المستطيل","عرض المستطيل",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
h=JOptionPane.showInputDialog(null," أدخل طول المستطيل ","طول المستطيل",JOptionPane.PLAIN_MESSAGE);
o=Double.parseDouble(h);

i=u*=o;
JOptionPane.showMessageDialog(null,"مساحة المستطيل="+i,"مساحة المستطيل",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v3Button)
{

String k;

double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل طول ضلع المربع"," المربع",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);;
i=u*=u;
JOptionPane.showMessageDialog(null,"مساحة المربع="+i,"مساحة المربع",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v12Button)
{

String k;
String h;
double u;
double o;
double i;
k=JOptionPane.showInputDialog(null," أدخل عرض المعين","عرض المعين",JOptionPane.PLAIN_MESSAGE);
//h=JOptionPane.showInputDialog(null," أدخل طول المعين ","طول المعين",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
//o=Double.parseDouble(h);
i=u*=u;
JOptionPane.showMessageDialog(null,"مساحة المعين="+i,"مساحة المعين",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a22Button)
{

int i=1;
String d="";
do{
String r=JOptionPane.showInputDialog(null,"أدخل الاسم","أسماء الاعضاء",JOptionPane.PLAIN_MESSAGE);
d+=r+"\n";
i++;
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}while(i!=6);
text.setText(d+"\n"+"باشراف المهندس محسن الصاعدي");
}
else if(event.getSource()==a17Button)
{
String d="";

text.setText(d+"(مساحة المربع)"+"\n"+"مساحة المربع = طول الضلع في نفسه "+"\n"+"(مساحة المستطيل)"+"\n"+"مساحة المستطيل = الطول× العرض"+"\n"+"(مساحة المعين)"+"\n"+"طول الضلع في عرض الضلع"+"\n"+"(مساحة المثلث)"+"\n"+"مساحة المثلث = نصف طول القاعدة × الارتفاع"+"\n"+"(مساحة الكرة)"+"\n"+"المساحة = 4 ط نق 2)"+"\n"+"(مساحة المكعب)"+"\n"+"(المساحة الكلية = 6 × مساحة أحد أوجهه)");
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}
else if(event.getSource()==a18Button)
{
String d="";

text.setText(d+"(مئوي الى فهرنهايت)"+"\n"+"(1.8×c)+32"+"\n"+"(فهرنهايت الى مئوي)"+"\n"+"(F-32)"+"\n"+"(كلفن الى مئوي)"+"\n"+"f=1.8+k-273.16"+"\n"+"(مئوي الى كلفن)"+"\n"+"k=c+273.16"+"\n"+"(كلفن الى فهرنهايت)"+"\n"+"f=1.8+k-459.69"+"\n"+"(فهرنهايت الى كلفن)"+"\n"+"k=f-32+273.16"+"\n"+"(سيليزي الى فهرنهايت)"+"\n"+"32+s×5/9"+"\n"+"(فهرنهايت الى سيليزي)"+"\n"+"32-sO9/5"+"\n"+"(مطلق الى سيلزي)"+"\n"+"273-s"+"\n"+"(سيلزي الى مطلق)"+"\n"+"273+s"+"\n"+"(فهرنهايت الى مطلق)"+"\n"+"273+32-s×9/5"+"\n"+"(مطلق الى فهرنهايتي)"+"\n"+"32+273-s×5/9");
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}
else if(event.getSource()==a19Button)
{

String d="";
text.setText(d+"(1لتر = 1000 ملل)"+"\n"+"(1متر =100سم)"+"\n"+"(1متر =1000ملم"+"\n"+"(1كيلومتر =1000متر)"+"\n"+"(اما عن التحويل بالعكس تكون العملية بالقسمة)" );
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}
else if(event.getSource()==a20Button)
{

String d="";
text.setText(d+"العملات اما ان تكون مضروبة و تكون مقسومة مثلا:"+"\n"+" واحد دولار =3,75ريال سعودي اذا ضربنا با3,75 "+"\n"+"جنية مصري =نصف ريال لان العملية قسمة على 2");
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}
else if(event.getSource()==a21Button)
{
String d="";

text.setText(d+"فارق الوقت يكون اما باسالب او الموجب حسب مكان الدولة ");
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}
else if(event.getSource()==a23Button)
{
String d="";

text.setText(d+"(الإجهاد)"+"\n"+"الإجهاد = القوة ÷ المساحة"+"\n"+"(الضغط على سطح جامد)"+"\n"+"الضغط = القوة المؤثرة ÷ مساحة السطح"+"\n"+"(الكتلة)"+"\n"+"ك = ث × ح"+"\n"+"(ثقل الجسم)"+"\n"+"ق = جـ × ك"+"\n"+"(القوة الضاغطة على أحد الجدران الجانبية)"+"\n"+"ق = مساحة سطح الجدار الجانبي × متوسط الضغط على ذلك الجدار "+"\n"+"(القوة الضاغطة على القاعدة)"+"\n"+"ق = مساحة القاعدة × الضغط عند نقطة ما ");
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}
else if(event.getSource()==a24Button)
{
String d="";

text.setText(d+"(الكثافة)"+"\n"+"اث =ك ÷ ح"+"\n"+"(الوزن النوعي)"+"\n"+"اكثافة المادة ÷ كثافة الماء"+"\n"+"(تعيين كثافة السائل)"+"\n"+"حَ × ثَ = ح × ث ");
Font customFont=new Font("Serif",Font.BOLD,19);
text.setFont(customFont);
}

else if(event.getSource()==v13Button)
{

String k;
String h;
double u;
double o;
double i;
k=JOptionPane.showInputDialog(null," ادخل نصف طول القاعدة","قاعدة المثلث",JOptionPane.PLAIN_MESSAGE);
h=JOptionPane.showInputDialog(null," أدخل ارتفاع المثلث ","ارتفاع المثلث",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
o=Double.parseDouble(h);
i=u*=o;
JOptionPane.showMessageDialog(null,"مساحة المثلث="+i,"مساحة المثلث",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v20Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل طول احد اضلاعة","ضلع المكعب",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);

i=u*=6;
JOptionPane.showMessageDialog(null,"مساحة المكعب="+i,"مساحة المكعب",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v21Button)
{

String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل نصف قطر الكرة","قطر الكرة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*=4;
JOptionPane.showMessageDialog(null,"مساحة الكرة="+i,"مساحة الكرة",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v5Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);

i=u+7;
JOptionPane.showMessageDialog(null,"الوقت في سدني الحالي="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v6Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u-3;
JOptionPane.showMessageDialog(null,"الوقت في لندن الحالي="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a05Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u+1;
JOptionPane.showMessageDialog(null,"الوقت الحالي في القاهرة ="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a06Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u-8;
JOptionPane.showMessageDialog(null,"الوقت الحالي في واشنطن="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a07Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u+1;
JOptionPane.showMessageDialog(null,"الوقت الحالي في انقرة="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a08Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u+6;
JOptionPane.showMessageDialog(null,"الوقت الحالي في برازيليا="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a09Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u-2;
//if
JOptionPane.showMessageDialog(null,"الوقت الحالي في بركسل="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a10Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u+6;
JOptionPane.showMessageDialog(null,"االوقت الحالي في طوكيوي="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v14Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u-2;
JOptionPane.showMessageDialog(null,"الوقت في باريس الحالي="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v15Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل الوقت","الوقت",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u-2;
JOptionPane.showMessageDialog(null,"الوقت في بارلين الحالي="+i,"الوقت حاليا ",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v7Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل العملة الامريكية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*3.75;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v11Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل العملة الاوربية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*4.91;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v16Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," أدخل العملة الكويتي","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*12;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}


else if(event.getSource()==a13Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل العملة الامارتية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*1;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a14Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل العملة المصرية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u/2;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a15Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل العملة اليابانية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*4;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==a16Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل العملة التركية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*2;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}
else if(event.getSource()==v17Button)
{
String k;
double u;
double i;
k=JOptionPane.showInputDialog(null," ادخل العملة الاسترلينية","العملة",JOptionPane.PLAIN_MESSAGE);
u=Double.parseDouble(k);
i=u*3.5;
JOptionPane.showMessageDialog(null,"العملة المحلية="+i,"العملة بالسعودي",JOptionPane.PLAIN_MESSAGE);

}