Monday, April 21, 2008

iPhone Update 21st Apr

Apple To Bring 8GB iPhone To India For Rs 28000
News Locale - Gulbarga,Karnataka,India
The Business Standard reports that iPhone in India will be unveiled by Vodafone, which recently entered the Indian market with its acquisition of Hutch. ...

iPhone Underground
Foreign Policy (subscription) - USA
Nokia, for instance, recently found that more than 50 percent of users in India share or want to share a phone. Mobile-phone companies appear to be getting ...

Vodafone to launch iPhone in India - and Australia?
iTWire - Australia
India's Business Standard newspaper reports that Vodafone will launch the iPhone in India in the first week of September and quotes Apple ...

Vodafone will reportedly carry iPhone in India in September
Ars Technica - Boston,MA,USA
That day may be coming soon, though, since Rediff is reporting that the iPhone will be coming to India in September of this year and that Vodafone will be ...

Labels: , , ,

2 Comments:

Blogger ♫gaurav♫ said...

package test;

import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;


public class Calculator extends Frame implements ActionListener,WindowListener{
TextField tf = new TextField();
Button[] b1=new Button[10];
Button[] opr=new Button[5 ];
Calculator(){
setSize(500,300);
Panel p1 = new Panel();
Panel p2 = new Panel();
Panel p3 = new Panel();
p2.setLayout(new BorderLayout());
p3.setLayout(new GridLayout(3,6));
p1.setLayout(new BorderLayout());
p1.add(p2,BorderLayout.NORTH);
p1.add(p3,BorderLayout.CENTER);
add(p1);
p2.add(tf);
for(int i=0;i<10;i++){
b1[i]=new Button(""+i);
p3.add(b1[i]);
b1[i].addActionListener(this);
}
tf.setEditable(false);
opr[0]=new Button("+");
opr[1]=new Button("-");
opr[2]=new Button("*");
opr[3]=new Button("/");
opr[4]=new Button("=");
opr[0].addActionListener(this);
opr[1].addActionListener(this);
opr[2].addActionListener(this);
opr[3].addActionListener(this);
opr[4].addActionListener(this);
this.addWindowListener(this);
p3.add(opr[0]);
p3.add(opr[1]);
p3.add(opr[2]);
p3.add(opr[3]);
p3.add(opr[4]);


}

public static void main(String args[]){
Calculator a =new Calculator();
a.setVisible(true);
}

public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub

}

public void windowActivated(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowClosed(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowClosing(WindowEvent e) {
// TODO Auto-generated method stub
setVisible(false);
System.exit(1);
}

public void windowDeactivated(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowDeiconified(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowIconified(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub

}

}

July 28, 2009 5:55 AM  
Blogger ♫gaurav♫ said...

package test;

import java.awt.Button;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;


public class Calculator extends Frame implements ActionListener,WindowListener{
TextField tf = new TextField(""+0);
Button[] b1=new Button[10];
Button[] opr=new Button[5 ];
boolean flag1,flag2;
Calculator(){
setSize(500,300);
Panel p1 = new Panel();
Panel p2 = new Panel();
Panel p3 = new Panel();
p2.setLayout(new BorderLayout());
p3.setLayout(new GridLayout(3,6));
p1.setLayout(new BorderLayout());
p1.add(p2,BorderLayout.NORTH);
p1.add(p3,BorderLayout.CENTER);
add(p1);
p2.add(tf);
for(int i=0;i<10;i++){
b1[i]=new Button(""+i);
p3.add(b1[i]);
b1[i].addActionListener(this);
}
tf.setEditable(false);
tf.setBackground(Color.WHITE);
opr[0]=new Button("+");
opr[1]=new Button("-");
opr[2]=new Button("*");
opr[3]=new Button("/");
opr[4]=new Button("=");
opr[0].addActionListener(this);
opr[1].addActionListener(this);
opr[2].addActionListener(this);
opr[3].addActionListener(this);
opr[4].addActionListener(this);
this.addWindowListener(this);
p3.add(opr[0]);
p3.add(opr[1]);
p3.add(opr[2]);
p3.add(opr[3]);
p3.add(opr[4]);

}

public static void main(String args[]){
Calculator a =new Calculator();
a.setVisible(true);
}

public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
for(int i=0;i<10;i++)
{
if(e.getSource()==b1[i]){
int num= Integer.parseInt(tf.getText());
int key= Integer.parseInt((b1[i].getLabel()));
num=num*10+key;
tf.setText(""+num);
break;
}
}
if(e.getSource()==opr[0]){

}
else if(e.getSource()==opr[1]){

}
else if(e.getSource()==opr[2]){

}
else if(e.getSource()==opr[3]){

}
else if(e.getSource()==opr[4]){

}
}

public void windowActivated(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowClosed(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowClosing(WindowEvent e) {
// TODO Auto-generated method stub
setVisible(false);
System.exit(1);
}

public void windowDeactivated(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowDeiconified(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowIconified(WindowEvent e) {
// TODO Auto-generated method stub

}

public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub

}

}

July 28, 2009 6:19 AM  

Post a Comment

<< Home