Branch: : Aeronautical Engineering
i got very useful projects from here...
thanks![]()
Branch: : Aeronautical Engineering
hello thanks for projects..........
Branch: : Aeronautical Engineering
Thanks for all....
Branch: : Aeronautical Engineering
i want a php minor project
---------- Post added at 06:07 AM ---------- Previous post was at 06:02 AM ----------
i want a major project on ethical hacking
Branch: : Aeronautical Engineering
Sir first thanks to you ..
can you again help me for M.E. projects in computer .
Branch: : Aeronautical Engineering
Sir I want source code please send me the source code.
---------- Post added at 02:11 PM ---------- Previous post was at 02:07 PM ----------
Sir I want source code for online library. So please send me the source code for same as soon as possible
Gender: : Male
Branch: : Computer Science Engineering
City : Srinagar
Projects in visual basic with access
Branch: : Aeronautical Engineering
send the photoshop project on java
Gender: : Male
Branch: : Information Technology Engineering
City : Patna
import java.net.*;import java.io.*;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.text.*;import javax.swing.event.*;import javax.swing.border.*;import java.util.*;public class Browser extends JFrame{ JMenuBar menuBar; JMenu Options; JMenuItem open,quit; JFileChooser chooser; JToolBar toolbar; JTextField url; JDesktopPane desktop; JInternalFrame internalFrame; Color menuColor = new Color(120,20,220); static final Integer DOCLAYER = new Integer(5); Cursor handCursor = new Cursor(Cursor.HAND_CURSOR); JButton btnBack,btnForward,btnStop,btnRefresh,btnHome,btnHelp; String nowFileNAME = ""; Vector relatedFiles = new Vector(); String webAddress = ""; String fileRequested = ""; String requestedFilesPath = ""; MyStack Bstack = new MyStack(); MyStack Fstack = new MyStack(); public Browser() { setTitle("Hot JAVA : By GAUTAM"); JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); JPanel upperPanel = new JPanel(); panel.add(upperPanel,BorderLayout.NORTH); upperPanel.setLayout(new BorderLayout()); JLabel lblUrl = new JLabel("URL : "); upperPanel.add(lblUrl,BorderLayout.WEST); url = new JTextField(15); upperPanel.add(url,BorderLayout.CENTER); url.addKeyListener(new KeyHandler()); JPanel toolbarPanel = new JPanel(); Border border5 = new CompoundBorder(new SoftBevelBorder(SoftBevelBorder.RAISED), new EmptyBorder(2,2,2,2)); toolbarPanel.setBorder(border5); upperPanel.add(createToolbar(),BorderLayout.NORTH); toolbarPanel.add(createToolbar()); buildMenus(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); setBounds (0, 0, screenSize.width, screenSize.height - 28); desktop = new JDesktopPane(); setContentPane(panel); panel.add(desktop,BorderLayout.CENTER); show(); chooser = new JFileChooser(); chooser.setAccessory(null); chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); chooser.setDialogType(JFileChooser.OPEN_DIALOG); chooser.setDialogTitle("Open"); chooser.setFileHidingEnabled(true); internalFrame = new DisplayContents(".//Resources//HOTJAVA1.htm"); desktop.add(internalFrame, DOCLAYER); try { internalFrame.setVisible(true); internalFrame.setSelected(true); internalFrame.setMaximum(true); } catch (java.beans.PropertyVetoException e2) {} url.requestFocus(); } void getInfo() { int portNo = 80; String address = url.getText(); String ipAddress = ""; String exactFileName = ""; address = address.trim(); if(address.length() == 0) return; address = address.replace('\\','/'); int ind = address.indexOf('/'); System.out.println("address : " + address); int last = -1; String fileNM =""; if(ind != -1) { ipAddress = address.substring(0,ind); System.out.println("ipAddress : " + ipAddress); webAddress = ipAddress; exactFileName = address.substring(ind+1); if(exactFileName.length() == 0) exactFileName = "/"; else last = exactFileName.lastIndexOf('/'); fileNM = exactFileName.substring(last+1); } else { ipAddress = address; exactFileName = "/"; } try { if(exactFileName.equals("/")) nowFileNAME = "index.html"; else nowFileNAME = exactFileName; fileRequested = nowFileNAME; requestedFilesPath = exactFileName; loadFile(exactFileName,nowFileNAME); } catch(Exception e) { String msg = "Trouble : " + e; JOptionPane.showMessageDialog(null,msg,"Hot JAVA",JOptionPane.ERROR_MESSAGE); } } void loadFile(String nm,String fileNM) { try { Bstack.push(webAddress + "~" + nm + "~" + fileNM); getContents(nm,fileNM); while(!relatedFiles.isEmpty()) { fileNM = (String)relatedFiles.firstElement(); int x = fileNM.lastIndexOf('/'); fileNM = fileNM.substring(x+1); getContents("" + relatedFiles.firstElement(),fileNM); relatedFiles.remove(0); } internalFrame.dispose(); internalFrame = new DisplayContents(fileRequested); desktop.add(internalFrame, DOCLAYER); internalFrame.setVisible(true); internalFrame.setSelected(true); internalFrame.setMaximum(true); } catch(Exception e) { String msg = "Trouble : " + e; JOptionPane.showMessageDialog(null,msg,"Hot JAVA",JOptionPane.ERROR_MESSAGE); } url.setText(webAddress + "/" + nm); url.requestFocus(); } void openFile() { JFrame frame = new JFrame(); int retval = chooser.showDialog(frame, null); if(retval == JFileChooser.APPROVE_OPTION) { File selectedFile = chooser.getSelectedFile(); if(selectedFile != null) { String s = selectedFile.getAbsolutePath(); internalFrame.dispose(); internalFrame = new DisplayContents(s); desktop.add(internalFrame, DOCLAYER); try { internalFrame.setVisible(true); internalFrame.setSelected(true); internalFrame.setMaximum(true); } catch (java.beans.PropertyVetoException e2){} } } } void getContents(String fileNAME,String fileNM) { try { String exactFileNAME = ""; int indx1 = fileNAME.lastIndexOf('/'); if(indx1 != -1) exactFileNAME = fileNAME.substring(indx1+1); else exactFileNAME = fileNAME; System.out.println(exactFileNAME); Socket clientScot = new Socket(webAddress,80); BufferedInputStream in = new BufferedInputStream(clientScot.getInputStream()); PrintStream out = new PrintStream(clientScot.getOutputStream()); FileOutputStream outStream = new FileOutputStream(fileNM); out.println("GET /" + fileNAME + " HTTP/1.0"); out.println("\n"); int ch = 0; String str = ""; char ch2; boolean flag = false; String substr = ""; long fileSize = 0; String contentType = ""; while((ch = in.read()) != -1) { if(ch != '\n') { ch2 = (char)ch; str = str + ch2; } else { if(str.length() == 1) flag = true; System.out.println(str); int ind1 = str.indexOf("Content-Length:"); if(ind1 != -1) { substr = str.substring(16); try { fileSize = Long.parseLong(substr.trim()); } catch(NumberFormatException e) { System.out.println(e); } System.out.println(fileSize); } ind1 = str.indexOf("Content-Type:"); if(ind1 != -1) { contentType = str.substring(14); contentType = contentType.trim(); System.out.println(contentType); } str = ""; } if(flag == true) break; } if(contentType.equals("text/html")) { str = ""; while((ch = in.read()) != -1) { if(ch != '\n') { ch2 = (char)ch; str = str + ch2; } else { int ind1 = str.indexOf("src"); if(ind1 != -1) { int ind2 = str.indexOf("\"",ind1); //counting the index of the first opening " position int ind3 = str.indexOf("\"",ind2+1); //counting the index of the first closing " position substr = str.substring(ind2+1,ind3); //calculating the scr tags file name relatedFiles.add(substr); System.out.println("Line 263 : " + substr); substr = substr.replace('\\','/'); int ind4 = substr.lastIndexOf('/'); if(ind4 != -1) { String substr2 = substr.substring(ind4+1); String beforeStr = str.substring(0,ind2+1); String afterStr = str.substring(ind2 + 1 + substr.length()); str = beforeStr + substr2 + afterStr; } } str = str + "\n"; byte[] line = str.getBytes(); for(int i=0;i -1) { try { System.out.println("Powered By : ASHISH"); String popStr = Bstack.pop(); popStr = Bstack.pop(); System.out.println("Resource String : " + popStr); int x = popStr.indexOf('~'); String str1 = popStr.substring(0,x); System.out.println(str1); int y = popStr.indexOf('~',x+1); String str2 = popStr.substring(x+1,y); System.out.println(str2); int z = popStr.indexOf('~',y+1); String str3 = popStr.substring(y+1); System.out.println(str3); webAddress = str1; loadFile(str2,str3); } catch(Exception e) { System.out.println(e); } return; } */ JOptionPane.showMessageDialog(null,"Not Implemented wight now!","HotJAVA Browser",JOptionPane.INFORMATION_MESSAGE); } else if(arg.equals("Forward")) { JOptionPane.showMessageDialog(null,"Not Implemented wight now!","HotJAVA Browser",JOptionPane.INFORMATION_MESSAGE); } else if(arg.equals("Home")) { String address = url.getText(); String ipAddress = ""; address = address.trim(); if(address.length() == 0) return; address = address.replace('\\','/'); int ind = address.indexOf('/'); ipAddress = address.substring(0,ind); webAddress = ipAddress; fileRequested = "index.html"; loadFile("/",fileRequested); } else if(arg.equals("Refresh")) { loadFile(requestedFilesPath,fileRequested); } else if(arg.equals("Help")) { JOptionPane.showMessageDialog(null,"Not Implemented wight now!","HotJAVA Browser",JOptionPane.INFORMATION_MESSAGE); } else {} } } class KeyHandler extends KeyAdapter { public void keyPressed(KeyEvent ke) { int key = ke.getKeyCode(); Component component = ke.getComponent(); if((key == KeyEvent.VK_ENTER) && (component == url)) getInfo(); } } protected void buildMenus() { menuBar = new JMenuBar(); menuBar.setOpaque(true); Options = buildOptionsMenu(); menuBar.add(Options); setJMenuBar(menuBar); } protected JMenu buildOptionsMenu() { JMenu Options = new JMenu("File"); Options.setMnemonic('F'); Options.setForeground(menuColor); open = new JMenuItem("Open"); open.setMnemonic('O'); open.setForeground(menuColor); open.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O,java.awt.Event.CTRL_MASK)); open.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { openFile(); }}); quit = new JMenuItem("Quit"); quit.setMnemonic('Q'); quit.setForeground(menuColor); quit.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q,java.awt.Event.CTRL_MASK)); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.exit(0); }}); Options.addSeparator(); Options.add(open); Options.add(quit); Options.addSeparator(); return Options; } public class DisplayContents extends JInternalFrame { public DisplayContents(String help) { super("", false, false, false, false); setFrameIcon((Icon)UIManager.get("Tree.moveIcon")); HtmlPane html = new HtmlPane(help); setContentPane(html); } } class HtmlPane extends JScrollPane implements HyperlinkListener { JEditorPane html; public HtmlPane(String startSMSHelp) { try { File f = new File (startSMSHelp); String s = f.getAbsolutePath(); s = "file:" + s; URL url = new URL(s); html = new JEditorPane(s); html.setEditable(false); html.addHyperlinkListener(this); JViewport vp = getViewport(); vp.add(html); } catch (MalformedURLException e) { String msg = "Malformed URL: " + e; JOptionPane.showMessageDialog(null,msg,"Hot JAVA",JOptionPane.ERROR_MESSAGE); } catch (IOException e) { String msg = "IOException: " + e; JOptionPane.showMessageDialog(null,msg,"Hot JAVA",JOptionPane.ERROR_MESSAGE); } } public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {// linkActivated(e.getURL()); String link = e.getDescription(); link = link.replace('\\','/'); String exactFileNAME = ""; int indx1 = link.lastIndexOf('/'); if(indx1 != -1) exactFileNAME = link.substring(indx1+1); else exactFileNAME = link; System.out.println("Line : 507 " + link); System.out.println("Line : 508 " + exactFileNAME); int y = 0; int x = -1; while((x = link.indexOf("..",y)) != -1) { y = x + 2; } link = link.substring(y); fileRequested = exactFileNAME; requestedFilesPath = link;// stack.push(webAddress + "~" + requestedFilesPath + "~" + fileRequested); loadFile(link,exactFileNAME); } } protected void linkActivated(URL u, String des) { Cursor c = html.getCursor(); Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR); html.setCursor(waitCursor); SwingUtilities.invokeLater(new PageLoader(u, c)); } class PageLoader implements Runnable { PageLoader(URL u, Cursor c) { url = u; cursor = c; } public void run() { if (url == null) { html.setCursor(cursor); Container parent = html.getParent(); parent.repaint(); } else { Document doc = html.getDocument(); try { html.setPage(url); } catch (Exception ioe) { html.setDocument(doc); getToolkit().beep(); } finally { url = null; SwingUtilities.invokeLater(this); } } } URL url; Cursor cursor; } }}class MyStack{ public int top; Vector webAddressV; public MyStack() { top = -1; webAddressV = new Vector(); } public void push(String str) { top++; webAddressV.addElement(str); } public String pop() { String str = (String)webAddressV.elementAt(top); top--; return str; }}
Branch: : Aeronautical Engineering
i want source code for project prisioner face detection system in java. so plz reply
Branch: : Aeronautical Engineering
are you find paroll system in java??.....if you have than plz mail me at pawarrock123[MENTION=183148]gmail[/MENTION].com
Branch: : Aeronautical Engineering
A real Java Project...
Create object models (Pojo’s) for the two data files (contract.txt and transaction.txt) found at the
Federal Energy Regulatory Commission web site at: http://www.ferc.gov/default.asp. Provide an
abstract superclass called EnergyRecord and subclasses called Contract and Transaction with
no-arg and full-arg, overloaded constructors. Collect abstract commonality in the superclass to
be inherited into the subclasses. Provide private instance fields, public instance accessor and
mutator methods for all of the data fields in each record data files. If no value is provided in the
FERC data, then set that characteristic to a default value of 0. Provide a toString() method to
format all of the record data in each class. Provide an Junit Test Case for an interface called
Record with four methods:
Boolean isTransactionChargeSmaller(Record otherRecord );
Double findTransactionChargeDifference(Record otherRecord);
Boolean isTransactionQuantityGreater(Record otherRecord);
Double findTransactionQuantityDifference(Record otherRecord);
Implement this interface in the Transaction class.
Provide Unit Tests and Classes that implement and assert the following features:
create an instance of each energy record class for each row in the two files
collect all contract objects into an array or Collection of Records
collect all transaction objects into an array or Collection of Records
display all contract data using the toString() method in a loop
display all contract and transaction data in a tabular format using accessor methods
display the comparisons of the transaction_charge of any two Records
display the comparisons of the transaction_quantity of any two Records
display all Records sorted by Price.
Provide a test script called test_mp1.bat or test_mp1.sh in a run folder to execute the project and
send its output to a file called test_mp1_out.txt.
Minimize your main() method code by using abstractions (there should be very little
implementation visible in the driver class).
Comment your code and provide a detailed README (pdf only) file that includes:
project description
installation, compile and run-time requirements
development and testing insights with expected results
screen captures demonstrating all application capabilities
Who can make it
Branch: : Aeronautical Engineering
source code.... ???
Branch: : Aeronautical Engineering
hello m ankita dhiman ... i m engg. student in IT field ..... i need java major projects for final year .
Branch: : Aeronautical Engineering
The download link is not working.. please check it once