Preview

Java source code full ofr inventry

Satisfactory Essays
Open Document
Open Document
2413 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java source code full ofr inventry
Asignment 10

Java Swing Interfaces

K A Prasanna Weerasinghe
872503110 V
IJTS JSAD 89 Batch

Screen Print 01

Submit Button Code private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { try { Class.forName("com.mysql.jdbc.Driver"); Connection c = DriverManager.getConnection("jdbc:mysql://localhost:3306/asignment10","root","1234"); Statement s = c.createStatement(); s.executeUpdate("INSERT INTO studentdetails VALUES ('"+jTextField1.getText() +"','"+jTextField2.getText() +"','"+jTextField3.getText() +"','"+jTextField4.getText() +"','"+jTextField5.getText() +"')");

} catch (Exception e) { System.out.println(e); } // TODO add your handling code here: }

Update Button Code private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

try { Class.forName("com.mysql.jdbc.Driver"); Connection c = DriverManager.getConnection("jdbc:mysql://localhost:3306/asignment10","root","1234"); Statement s = c.createStatement(); s.executeUpdate("UPDATE studentdetails SET stname= '"+jTextField2.getText()+"' , stage= '"+jTextField3.getText()+"', sttel= '"+jTextField4.getText()+"', stresult= '"+jTextField4.getText()+"' WHERE stid = '"+jTextField1.getText()+"' ");

} catch (Exception e) { System.out.println(e); }// TODO add your handling code here: }

Delete Button Code private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

try { Class.forName("com.mysql.jdbc.Driver"); Connection c = DriverManager.getConnection("jdbc:mysql://localhost:3306/asignment10","root","1234"); Statement s = c.createStatement(); s.executeUpdate("DELETE FROM

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Inventec Case Study

    • 1101 Words
    • 5 Pages

    Inventec’s lackluster performance in the past several years can be attributed to a number of different factors. The (1) dynamic nature of the industry they are in, (2) intense competition, (3) unstable, fluid relationships with clients, (4) plant underutilization, (5) flattening gross margins, (6) lack of brand identity, and (7) the commoditization of the notebook industry all played roles in the company’s performance.…

    • 1101 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    Program Lovecs.Java

    • 422 Words
    • 2 Pages

    import java.util. Scanner; public class LoveCS { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("Enter how many times you wish the message to be printed."); int limit = 0; limit= scan.nextInt(); int sum=0; int count=1; while (count <=limit) { System.out.println(count+" I love Computer Science!!"); sum+=count; count++; } System.out.println("Printed this message " + limit + " times."); System.out.println("The sum of the numbers from 1 to "+limit+" is "+sum); } } import java.util. Scanner; public class PowersOf2 { public static void main(String[]args) { int valuePowersOf2; int nextPowersOf2 =1; int exponent= 0; int count=0; Scanner scan = new Scanner(System.in); System.out.println("Enter A Number.");…

    • 422 Words
    • 2 Pages
    Better Essays
  • Satisfactory Essays

    Jrotc Concept Papers

    • 142 Words
    • 1 Page

    There are many different types of studies in the JROTC field. Such as the army values, drill…

    • 142 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    The Code Talkers

    • 910 Words
    • 4 Pages

    From ancient Egyptians to Julius Caesar to Mary Queen of Scots to modern times, nations, kings and their armed forces have always had an overarching need for secure methods of communications. During World War I, the United States Army experimented, with limited success, with the use of Native American tribal languages, such as the Comanche and Choctaw, in the place of codes (Paul 7). The use of ancient languages in modern times had also been attempted by various governments, but the risk of any national understanding the language chosen would compromise the entire code. During World War II, the Allied forces cracked the Enigma, the main encoding system for Nazi Germany and also the codes Red and Purple used by Imperial Japan. The need for an unbreakable code was absolutely necessary for frontline action. However, this code had to be quick, effective, and simple yet complex enough so the enemy would not be able to decipher the vital messages being sent. Then the Navajo code talkers were formed, an elite unit in the United States Marine Corps (Pincock 119). This spoken code, however, would be unique, a code within a language characterized by guttural noises, grunts, and complex inflections that are highly difficult to learn after a certain age. A perfect, unbreakable radio code was born.…

    • 910 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Sarbanes Oxley

    • 6282 Words
    • 26 Pages

    The Sarbanes–Oxley Act of 2002 (Pub.L. 107–204, 116 Stat. 745, enacted July 30, 2002), also known as the 'Public Company Accounting Reform and Investor Protection Act' (in the Senate) and 'Corporate and Auditing Accountability and Responsibility Act' (in the House) and more commonly calledSarbanes–Oxley, Sarbox or SOX, is a United States federal law that set new or enhanced standards for all U.S. public company boards, management and public accounting firms. It is named after sponsors U.S. Senator Paul Sarbanes(D-MD) and U.S. Representative Michael G. Oxley (R-OH). As a result of SOX, top management must now individually certify the accuracy of financial information. In addition, penalties for fraudulent financial activity are much more severe. Also, SOX increased the independence of the outside auditors who review the accuracy of corporate financial statements, and increased the oversight role of boards of directors.[1]…

    • 6282 Words
    • 26 Pages
    Better Essays
  • Good Essays

    Inventec Case Study

    • 572 Words
    • 3 Pages

    1. Despite the growth of Inventec, there were a number of reasons why it was not very profitable.…

    • 572 Words
    • 3 Pages
    Good Essays
  • Good Essays

    William Faulkner has written some of the most unique novels and short stories of any author, and, to this day, his stories continue to be enjoyed by many. Both “Barn Burning” and “A Rose for Emily” tell about the life of southern people and their struggles with society, but Faulkner used the dramatic settings of these two stories to create a mood unlike any other and make the audience feel like they too were a part of these southern towns. These two stories have many similarities in there setting, but they also have many differences to that make them unique and interesting.…

    • 1354 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Name and Example Output

    • 492 Words
    • 2 Pages

    2) Write a query to display the Student id and the number of grades they have received ***…

    • 492 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    JROTC In Perspective

    • 554 Words
    • 3 Pages

    JROTC has its advantages and disadvantages. It really depends on the person and their beliefs. JROTC is, in my opinion, what you make of it. In this essay I will discuss the advantages, disadvantages, and my personal opinion about the program.…

    • 554 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    After creating the database schema, use Insert, Update, and Delete commands to populate the tables with the following information. Notice that the values for the primary key columns (ClassId in the Classes table, AdvisorId in the Advisors table and StudentId in the Students table) are not listed. It is assumed that they will be “Identity” or “Auto-increment” columns and the DBMS will determine the proper identity value when the row is inserted.…

    • 2177 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Case Study Inventec

    • 471 Words
    • 2 Pages

    The essential reason regarding Inventec’s profitability was lower than expectation is due to the high competition between the many ODMS. Therefore, though the field of ODM was once high profitable, with the intensive new entrants entered in this industry, supply for quality goods are rapidly increasing, the profit margin that each competitor could share is simultaneously shrinking. In other words, despite the fact that Inventec has done quite well in expansion and decision making, strategic direction as well as determination of sustainability in the past, the unavoidable occurrence of competitive environment for it ultimately led it to the result of a shrinking profitability figure.…

    • 471 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A successful failure means to have a mission to be done and something bad happens, but it turned out to be ok. In the article 9 Brilliant Inventions Made by Mistake scientist from around the world have made mistakes and created a completely different invention. Even astronauts make mistakes like Lovell, Haise, and Swigert.…

    • 347 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    If I had three wishes I would pick to live again, be able to go to a D1 college when I’m older and play sports in college. I would like to live again because life is fun and full of adventures. Living again would be cool because you be able to be a kid again and experience different things. I want to go to a D1 college because they have great education, and are good at sports. If I went to a D1 college and earned my master’s degree I would have a good oprotunity to have a good job as an adult that pays good money. I would like to play a sport in college because would be a great experience in life.…

    • 124 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Source Analysis Project

    • 749 Words
    • 3 Pages

    The letter I have researched was written by Livingstone to his son Robert M. Livingstone. It was sent from River Zambesi May 31, 1859. In this letter, there are three major themes including: slavery, religion, and fatherly advice. He made it clear in the end of the letter that his words were written specifically for Robert and his brother Thomas and no one else, leading to the conclusion the words in this letter are from his heart and very personal. He trusts his sons therefore his writing was not influenced by anything but his guilt for not being there for his sons as much as he’d like but also a passion for his work.…

    • 749 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Invetigatory Project

    • 788 Words
    • 4 Pages

    Squashes generally refer to four species of the genus cucurbita, also called marrows (mainly in British English). Kalabasa cucurbita maxima, a squash with orange flesh, is popular in Filipino cuisine, it is species of cucurbita family of squashes that includes pumpkins that are familiar to growers in temperate climates. Cucurbita squashes all have orange, yellow or green exteriors with creases running from bottom to top. Filipinos sometimes refer to kalabasa seeds are popular snacks I the Philippines. Now we made a dessert pancake, squash an additive in making pancake.…

    • 788 Words
    • 4 Pages
    Satisfactory Essays

Related Topics