Wednesday, February 27, 2008

JAVA BASIC GUI


THE GUI DESIGN

/*This program gives basic GUI design.*/

//some import statment for GUI & Handling event

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

public class gui extends JFrame implements ActionListener
{

JLabel msg;

JLabel no;
JTextField text;
JTextArea ta;
JButton b;

public gui(String title)
{

super(title);

msg = new JLabel("");
no = new JLabel("Enter NO: ");
text = new JTextField("",10);
ta = new JTextArea(2,30);
b=new JButton("SUBMIT");

setLayout(new FlowLayout());

add(no);
add(text);
add(msg);
add(ta);
add(b);

b.addActionListener(this);

}

public void actionPerformed(ActionEvent e)
{

//write code for after pressing Button

}
public static void main(String[] args)
{

JFrame a=new gui("gui");
a.setSize(350,300);
a.setVisible(true);

}

}



Basic Engineering Website

The Wikipedia


http://en.wikipedia.org/wiki/Engineering

http://en.wikipedia.org/wiki/Portal:Engineering


Engineering is huge. To give a brief overview of areas that engineering covers can take up an entire Fast Track in itself thankfully, we don’t need to do that. The Wikipedia entries are more than comprehensive. the Engineering article, which is an overview of the entire discipline, as well as the engineering portal, which is a more in-depth look at the field and its many branches. What started out as independent branches of study are increasingly becoming strong in inter-disciplinary skill requirements. The portal will be useful in helping you keep up-to-date with the entire field while keeping you in touch with your branch of study as well.


Massachusetts Institute of Technology


http://ocw.mit.edu

The Open Courseware (OCW) education program is a free and open online educational resource made Available by many universities around the world. One of the major contributors to this program is the world renowned Massachusetts Institute of Technology (MIT). Through the OCW program, you get access to the teaching syllabus, lecture notes, and textbooks used in many of the courses taught at MIT.


Engineering Formulas


www.efunda.com


This is an online referencesite for engineers and engineering students who want a quick way to access a forgotten formula. It also contains quick reference information regarding many engineering topics. It is a paid site—about Rs 300 per month or for students about Rs 1,800 per year. Currently you also get a review period when you first eFunda—Formulas in a snap access the site, so you can go through the actual contents before deciding on whether you want to become a member or not.

Formula Sites’ Index

www.roymech.co.uk/Useful_Tables/Form/Formula_Index.html

Sign by Rohit Lagu - SUPPORTED BY WE AND COMPUTER