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

    M1 Unit 4 Assignment

    • 438 Words
    • 2 Pages

    2. Update the employee table and provide a salary for each employee using the salary column added in the previous problem. Validate the rows are there using a SELECT clause.…

    • 438 Words
    • 2 Pages
    Satisfactory Essays
  • 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
  • Satisfactory Essays

    Code Talkers

    • 350 Words
    • 1 Page

    The second reason I recommend Code Talkers is for teaching you that hard work pays…

    • 350 Words
    • 1 Page
    Satisfactory 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
  • 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
  • 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
  • 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
  • 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

    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
  • 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
  • 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

    Learning and Student Code

    • 447 Words
    • 2 Pages

    Was there anything in either the University of Phoenix Student Code of Conduct or the Student Code of Academic Integrity that surprised you? If so, what was it? Why were you surprised? If not, why not?…

    • 447 Words
    • 2 Pages
    Satisfactory 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