473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Inventory program

how do i get my program to add,delete and save? i could use help asap thanks i will work on my code if i get to work ill let you all know here is what i have so far
Expand|Select|Wrap|Line Numbers
  1. // created by Nicholas Baatz on July 24,2007
  2.  import java.awt.BorderLayout;
  3. import java.awt.Font;
  4. import java.awt.GridLayout;
  5. import java.awt.event.ActionEvent;
  6. import java.awt.event.ActionListener;
  7.  
  8. import javax.swing.Icon;
  9. import javax.swing.ImageIcon;
  10. import javax.swing.JButton;
  11. import javax.swing.JFrame;
  12. import javax.swing.JLabel;
  13. import javax.swing.JPanel;
  14. import javax.swing.JScrollPane;
  15. import javax.swing.JTextArea;
  16.  
  17. public class Inventory2
  18. {
  19.     static int dispProd = 0; // variable for actionEvents
  20.     // main method begins execution of java application
  21.  
  22.     static JTextArea textArea;
  23.  
  24.     public static void main(final String args[])
  25.     {
  26.  
  27.         int i; // varialbe for looping
  28.         double total = 0; // variable for total inventory
  29.  
  30.         // Instantiate a product object
  31.         final ProductAdd[] nwProduct = new ProductAdd[5];
  32.         // Instantiate objects for the array
  33.         for (i = 0; i < 5; i++)
  34.         {
  35.             nwProduct[0] = new ProductAdd("Paper", 101, 10, 1.00, "Box");
  36.             nwProduct[1] = new ProductAdd("Pen", 102, 10, 0.75, "Pack");
  37.             nwProduct[2] = new ProductAdd("Pencil", 103, 10, 0.50, "Pack");
  38.             nwProduct[3] = new ProductAdd("Staples", 104, 10, 1.00, "Box");
  39.             nwProduct[4] = new ProductAdd("Clip Board", 105, 10, 3.00,
  40.                     "Two Pack");
  41.         }
  42.  
  43.         for (i = 0; i < 5; i++)
  44.             total += nwProduct.length; // calculate total inventory cost
  45.  
  46.         final JButton firstBtn = new JButton("First"); // first button
  47.         final JButton prevBtn = new JButton("Previous"); // previous button
  48.         final JButton nextBtn = new JButton("Next"); // next button
  49.         final JButton lastBtn = new JButton("Last"); // last button
  50.  
  51.         final JButton addBtn = new JButton("Add");
  52.         final JButton deleteBtn = new JButton("Delete");
  53.         final JButton modifyBtn = new JButton("Modify");
  54.  
  55.         final JLabel label; // logo
  56.         //final JTextArea textArea; // text area for product list
  57.         final JPanel buttonJPanel; // panel to hold buttons
  58.  
  59.         // JLabel constructor for logo
  60.         Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
  61.         label = new JLabel(logo); // create logo label
  62.         label.setToolTipText("Company Logo"); // create tooltip
  63.  
  64.         buttonJPanel = new JPanel(); // set up panel
  65.         buttonJPanel.setLayout(new GridLayout(0, 4)); // set layout
  66.         // add buttons to buttonPanel
  67.         buttonJPanel.add(firstBtn);
  68.         buttonJPanel.add(prevBtn);
  69.         buttonJPanel.add(nextBtn);
  70.         buttonJPanel.add(lastBtn);
  71.  
  72.         buttonJPanel.add(addBtn);
  73.         buttonJPanel.add(deleteBtn);
  74.         buttonJPanel.add(modifyBtn);
  75.  
  76.         textArea = new JTextArea(nwProduct[3] + "\n"); // create textArea for
  77.                                                         // product display
  78.  
  79.         // add total inventory value to GUI
  80.         textArea.append("\nTotal value of Inventory "
  81.                 + new java.text.DecimalFormat("$0.00").format(total) + "\n\n");
  82.         textArea.setEditable(false); // make text uneditable in main display
  83.         JFrame invFrame = new JFrame(); // create JFrame container
  84.         invFrame.setLayout(new BorderLayout()); // set layout
  85.         invFrame.getContentPane().add(new JScrollPane(textArea),
  86.                 BorderLayout.CENTER); // add textArea to JFrame
  87.         invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH); // add
  88.                                                                             // buttons
  89.                                                                             // to
  90.                                                                             // JFrame
  91.         invFrame.getContentPane().add(label, BorderLayout.NORTH); // add logo
  92.                                                                     // to JFrame
  93.         invFrame.setTitle("Office Min Inventory"); // set JFrame title
  94.         invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // termination
  95.                                                                     // command
  96.         // invFrame.pack();
  97.         invFrame.setSize(400, 400); // set size of JPanel
  98.         invFrame.setLocationRelativeTo(null); // set screem location
  99.         invFrame.setVisible(true); // display window
  100.  
  101.         // assign actionListener and actionEvent for each button
  102.         firstBtn.addActionListener(new ActionListener()
  103.         {
  104.             public void actionPerformed(ActionEvent ae)
  105.             {
  106.                 dispProd = 0;
  107.                 textArea.setText(nwProduct[dispProd] + "\n");
  108.  
  109.             } // end firstBtn actionEvent
  110.  
  111.         }); // end firstBtn actionListener
  112.  
  113.         // textArea.setText(nwProduct[4]+"n");
  114.  
  115.         prevBtn.addActionListener(new ActionListener()
  116.  
  117.         {
  118.             public void actionPerformed(ActionEvent ae)
  119.             {
  120.                 dispProd--;
  121.                 if (dispProd < 0)
  122.                 {
  123.                     dispProd = 0;
  124.                 }
  125.                 // dispProd = (nwProduct.length+dispProd-1) % nwProduct.length;
  126.                 textArea.setText(nwProduct[dispProd] + "\n");
  127.             } // end prevBtn actionEvent
  128.         }); // end prevBtn actionListener
  129.  
  130.         lastBtn.addActionListener(new ActionListener()
  131.         {
  132.             public void actionPerformed(ActionEvent ae)
  133.             {
  134.                 dispProd = nwProduct.length - 1;
  135.                 textArea.setText(nwProduct[dispProd] + "\n");
  136.  
  137.             } // end lastBtn actionEvent
  138.  
  139.         }); // end lastBtn actionListener
  140.  
  141.         nextBtn.addActionListener(new ActionListener()
  142.  
  143.         {
  144.             public void actionPerformed(ActionEvent ae)
  145.             {
  146.                 dispProd++;
  147.                 if (dispProd >= nwProduct.length)
  148.                 {
  149.                     dispProd = nwProduct.length - 1;
  150.                 }
  151.                 textArea.setText(nwProduct[dispProd] + "\n");
  152.             } // end nextBtn actionEvent
  153.         }); // end nextBtn actionListener
  154.         addBtn.addActionListener(new extraBtnAxnL());
  155.         deleteBtn.addActionListener(new extraBtnAxnL());
  156.         modifyBtn.addActionListener(new extraBtnAxnL());
  157.  
  158.     } // end main
  159.  
  160.     static class extraBtnAxnL implements ActionListener
  161.     {
  162.  
  163.         public void actionPerformed(ActionEvent arg0)
  164.         {
  165.             mybtnAction(arg0, null);
  166.         }
  167.     }
  168.  
  169.     private static void mybtnAction(ActionEvent arg0, String stock) 
  170.     {
  171.         String axnCmd = arg0.getActionCommand();
  172.         Font oldFont = textArea.getFont();
  173.         textArea.setFont(new Font(oldFont.getName(), Font.BOLD, 16));
  174.         if (axnCmd.equalsIgnoreCase("add"))
  175.         {
  176.             textArea.setText(new String(  ));
  177.         }
  178.         else if (axnCmd.equalsIgnoreCase("delete"))
  179.         {
  180.             textArea.setText(new String());
  181.         }
  182.         else if (axnCmd.equalsIgnoreCase("modify"))
  183.         {
  184.             textArea.setText(new String());
  185.         }
  186.     }
  187.  
  188.  
  189.     };
  190.  
  191.  // end class Inventory2
  192.  
  193.  
  194. class Product
  195. {
  196. protected String prodName; // name of product
  197. protected int itmNumber; // item number
  198. protected int units; // number of units
  199. protected double price; // price of each unit
  200. protected double value; // value of total units
  201.  
  202.  
  203. public Product(String name, int number, int unit, double each) // Constructor for class Product
  204. {
  205. prodName = name;
  206. itmNumber = number;
  207. units = unit;
  208. price = each;
  209.  
  210. } // end constructor
  211.  
  212. public void setProdName(String name) // method to set product name
  213. {
  214. prodName = name;
  215. }
  216.  
  217. public String getProdName() // method to get product name
  218. {
  219. return prodName;
  220. }
  221.  
  222. public void setItmNumber(int number) // method to set item number
  223. {
  224. itmNumber = number;
  225. }
  226.  
  227. public int getItmNumber() // method to get item number
  228. {
  229. return itmNumber;
  230. }
  231.  
  232. public void setUnits(int unit) // method to set number of units
  233. {
  234. units = unit;
  235. }
  236.  
  237. public int getUnits() // method to get number of units
  238. {
  239. return units;
  240. }
  241.  
  242. public void setPrice(double each) // method to set price
  243. {
  244. price = each;
  245. }
  246.  
  247. public double getPrice() // method to get price
  248. {
  249. return price;
  250. }
  251.  
  252. public double calcValue() // method to set value
  253. {
  254. return units * price;
  255. }
  256.  
  257.  
  258.  
  259. } // end class Product
  260.  
  261.  
  262.  
  263. class ProductAdd extends Product
  264. {
  265. private String feature; // variable for added feature
  266.  
  267.  
  268. public ProductAdd(String name, int number, int unit, double each, String addFeat)
  269. {
  270. // call to superclass Product constructor
  271. super(name, number, unit, each);
  272.  
  273. feature = addFeat;
  274. }// end constructor
  275.  
  276. public void setFeature(String addFeat) // method to set added feature
  277. {
  278. feature = addFeat;
  279. }
  280.  
  281. public String getFeature() // method to get added feature
  282. {
  283. return feature;
  284. }
  285.  
  286. public double calcValueRstk() // method to set value and add restock fee
  287. {
  288. return units * price * 0.05;
  289. }
  290.  
  291. public String toString()
  292. {
  293. return String.format("Product: %s\nItem Number: %d\nIn Stock: %d\nPrice: $%.2f\nType: %s\nTotal Value of Stock: $%.2f\nRestock Cost: $%.2f\n\n\n",
  294. getProdName(), getItmNumber(), getUnits(), getPrice(), getFeature(), calcValue(), calcValueRstk());
  295. }
  296.  
  297.  
  298. } // end class ProductAdd
Aug 25 '07 #1
3 1275
Nepomuk
3,112 Expert 2GB
First of all, everything, which should be done after any Products were added (both the initial Products as any added by the user) shoud be moved into a seperate function. (Example: Calculating overall value.)

Then you have to write a listener for the add button, which can change the Collection of Products, which you allready have. I can see two possibilities right now:
  1. You read out the size of the current Array (nwProduct.size) and then create a new Array, which is one bigger. Then copy all Products from the current Array to the new Array and add the one, which should be created.
  2. You use a Vector instead of an Array. Then you won't need all that copying, just say nwProduct.add(...) (nwProduct now being a Vector instead of an Array). When acessing it, you might have to cast the element (which you access with nwProduct.elementAt(i)) to a Product, but that's the least Problem, I would think.
Aug 25 '07 #2
im not quite fowining you on this im new to java but i think you mean make a class for it the set atvie listners?
Aug 25 '07 #3
Nepomuk
3,112 Expert 2GB
im not quite fowining you on this im new to java but i think you mean make a class for it the set atvie listners?
No, I don't. Here's what I mean, shown with an example of how to add a product:
Expand|Select|Wrap|Line Numbers
  1. // created by Nicholas Baatz on July 24,2007
  2. import java.util.Vector;
  3.  
  4. import java.awt.BorderLayout;
  5. import java.awt.Font;
  6. import java.awt.GridLayout;
  7. import java.awt.event.ActionEvent;
  8. import java.awt.event.ActionListener;
  9.  
  10. import javax.swing.Icon;
  11. import javax.swing.ImageIcon;
  12. import javax.swing.JButton;
  13. import javax.swing.JFrame;
  14. import javax.swing.JLabel;
  15. import javax.swing.JPanel;
  16. import javax.swing.JScrollPane;
  17. import javax.swing.JTextArea;
  18.  
  19. public class Inventory2
  20. {
  21.     static int dispProd = 0; // variable for actionEvents
  22.     // main method begins execution of java application
  23.  
  24.     static JTextArea textArea;
  25.  
  26.     public static int totalCost(Vector<ProductAdd> nwProduct)
  27.     {
  28.     int total = 0;
  29.         for (int i = 0; i < 5; i++)
  30.             total += nwProduct.size(); // calculate total inventory cost
  31.     return total;
  32.  
  33.     }
  34.  
  35.     public static void main(final String args[])
  36.     {
  37.  
  38.         int i; // varialbe for looping
  39.         double total = 0; // variable for total inventory
  40.  
  41.         // Instantiate a product object
  42.         final Vector<ProductAdd> nwProduct = new Vector<ProductAdd>();
  43.         // Instantiate objects for the array
  44.         nwProduct.add(new ProductAdd("Paper", 101, 10, 1.00, "Box"));
  45.         nwProduct.add(new ProductAdd("Pen", 102, 10, 0.75, "Pack"));
  46.         nwProduct.add(new ProductAdd("Pencil", 103, 10, 0.50, "Pack"));
  47.         nwProduct.add(new ProductAdd("Staples", 104, 10, 1.00, "Box"));
  48.         nwProduct.add(new ProductAdd("Clip Board", 105, 10, 3.00,
  49.                 "Two Pack"));
  50.  
  51.         total += totalCost(nwProduct);
  52.  
  53.         final JButton firstBtn = new JButton("First"); // first button
  54.         final JButton prevBtn = new JButton("Previous"); // previous button
  55.         final JButton nextBtn = new JButton("Next"); // next button
  56.         final JButton lastBtn = new JButton("Last"); // last button
  57.  
  58.         final JButton addBtn = new JButton("Add");
  59.         final JButton deleteBtn = new JButton("Delete");
  60.         final JButton modifyBtn = new JButton("Modify");
  61.  
  62.         final JLabel label; // logo
  63.         //final JTextArea textArea; // text area for product list
  64.         final JPanel buttonJPanel; // panel to hold buttons
  65.  
  66.         // JLabel constructor for logo
  67.         Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
  68.         label = new JLabel(logo); // create logo label
  69.         label.setToolTipText("Company Logo"); // create tooltip
  70.  
  71.         buttonJPanel = new JPanel(); // set up panel
  72.         buttonJPanel.setLayout(new GridLayout(0, 4)); // set layout
  73.         // add buttons to buttonPanel
  74.         buttonJPanel.add(firstBtn);
  75.         buttonJPanel.add(prevBtn);
  76.         buttonJPanel.add(nextBtn);
  77.         buttonJPanel.add(lastBtn);
  78.  
  79.         buttonJPanel.add(addBtn);
  80.         buttonJPanel.add(deleteBtn);
  81.         buttonJPanel.add(modifyBtn);
  82.  
  83.         textArea = new JTextArea(nwProduct.elementAt(3) + "\n"); // create textArea for
  84.                                                         // product display
  85.  
  86.         // add total inventory value to GUI
  87.         textArea.append("\nTotal value of Inventory "
  88.                 + new java.text.DecimalFormat("$0.00").format(total) + "\n\n");
  89.         textArea.setEditable(false); // make text uneditable in main display
  90.         JFrame invFrame = new JFrame(); // create JFrame container
  91.         invFrame.setLayout(new BorderLayout()); // set layout
  92.         invFrame.getContentPane().add(new JScrollPane(textArea),
  93.                 BorderLayout.CENTER); // add textArea to JFrame
  94.         invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH); // add
  95.                                                                             // buttons
  96.                                                                             // to
  97.                                                                             // JFrame
  98.         invFrame.getContentPane().add(label, BorderLayout.NORTH); // add logo
  99.                                                                     // to JFrame
  100.         invFrame.setTitle("Office Min Inventory"); // set JFrame title
  101.         invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // termination
  102.                                                                     // command
  103.         // invFrame.pack();
  104.         invFrame.setSize(400, 400); // set size of JPanel
  105.         invFrame.setLocationRelativeTo(null); // set screem location
  106.         invFrame.setVisible(true); // display window
  107.  
  108.         // assign actionListener and actionEvent for each button
  109.         firstBtn.addActionListener(new ActionListener()
  110.         {
  111.             public void actionPerformed(ActionEvent ae)
  112.             {
  113.                 dispProd = 0;
  114.                 textArea.setText(nwProduct.elementAt(dispProd) + "\n");
  115.  
  116.             } // end firstBtn actionEvent
  117.  
  118.         }); // end firstBtn actionListener
  119.  
  120.         // textArea.setText(nwProduct.elementAt(4)+"n");
  121.  
  122.         prevBtn.addActionListener(new ActionListener()
  123.  
  124.         {
  125.             public void actionPerformed(ActionEvent ae)
  126.             {
  127.                 dispProd--;
  128.                 if (dispProd < 0)
  129.                 {
  130.                     dispProd = 0;
  131.                 }
  132.                 // dispProd = (nwProduct.size()+dispProd-1) % nwProduct.size();
  133.                 textArea.setText(nwProduct.elementAt(dispProd) + "\n");
  134.             } // end prevBtn actionEvent
  135.         }); // end prevBtn actionListener
  136.  
  137.         lastBtn.addActionListener(new ActionListener()
  138.         {
  139.             public void actionPerformed(ActionEvent ae)
  140.             {
  141.                 dispProd = nwProduct.size() - 1;
  142.                 textArea.setText(nwProduct.elementAt(dispProd) + "\n");
  143.  
  144.             } // end lastBtn actionEvent
  145.  
  146.         }); // end lastBtn actionListener
  147.  
  148.         nextBtn.addActionListener(new ActionListener()
  149.  
  150.         {
  151.             public void actionPerformed(ActionEvent ae)
  152.             {
  153.                 dispProd++;
  154.                 if (dispProd >= nwProduct.size())
  155.                 {
  156.                     dispProd = nwProduct.size() - 1;
  157.                 }
  158.                 textArea.setText(nwProduct.elementAt(dispProd) + "\n");
  159.             } // end nextBtn actionEvent
  160.         }); // end nextBtn actionListener
  161.  
  162.         addBtn.addActionListener(new ActionListener()
  163.  
  164.     {
  165.             public void actionPerformed(ActionEvent ae)
  166.             {
  167.         // Read in Information about the new Product
  168.         String prodName = "Folder";
  169.         int itmNumber = 42;
  170.         int units = 20;
  171.         double price = 0.89;
  172.         double value = 1.88;
  173.         String addFeat = "Two Pack";
  174.         // create new ProductAdd and add it to the Vector
  175.         nwProduct.add(new ProductAdd(prodName, itmNumber, units, price, addFeat));
  176.         total = totalCost(nwProduct);
  177.         }
  178.     });
  179.         deleteBtn.addActionListener(new extraBtnAxnL());
  180.         modifyBtn.addActionListener(new extraBtnAxnL());
  181.  
  182.     } // end main
  183.  
  184.     static class extraBtnAxnL implements ActionListener
  185.     {
  186.  
  187.         public void actionPerformed(ActionEvent arg0)
  188.         {
  189.             mybtnAction(arg0, null);
  190.         }
  191.     }
  192.  
  193.     private static void mybtnAction(ActionEvent arg0, String stock) 
  194.     {
  195.         String axnCmd = arg0.getActionCommand();
  196.         Font oldFont = textArea.getFont();
  197.         textArea.setFont(new Font(oldFont.getName(), Font.BOLD, 16));
  198.         if (axnCmd.equalsIgnoreCase("add"))
  199.         {
  200.             textArea.setText(new String(  ));
  201.         }
  202.         else if (axnCmd.equalsIgnoreCase("delete"))
  203.         {
  204.             textArea.setText(new String());
  205.         }
  206.         else if (axnCmd.equalsIgnoreCase("modify"))
  207.         {
  208.             textArea.setText(new String());
  209.         }
  210.     }
  211.  
  212.  
  213.     };
  214.  
  215.  // end class Inventory2
  216.  
  217.  
  218. class Product
  219. {
  220.     protected String prodName; // name of product
  221.     protected int itmNumber; // item number
  222.     protected int units; // number of units
  223.     protected double price; // price of each unit
  224.     protected double value; // value of total units
  225.  
  226.  
  227.     public Product(String name, int number, int unit, double each) // Constructor for class Product
  228.     {
  229.         prodName = name;
  230.         itmNumber = number;
  231.         units = unit;
  232.         price = each;
  233.  
  234.     } // end constructor
  235.  
  236.     public void setProdName(String name) // method to set product name
  237.     {
  238.         prodName = name;
  239.     }
  240.  
  241.     public String getProdName() // method to get product name
  242.     {
  243.         return prodName;
  244.     }
  245.  
  246.     public void setItmNumber(int number) // method to set item number
  247.     {
  248.         itmNumber = number;
  249.     }
  250.  
  251.     public int getItmNumber() // method to get item number
  252.     {
  253.         return itmNumber;
  254.     }
  255.  
  256.     public void setUnits(int unit) // method to set number of units
  257.     {
  258.         units = unit;
  259.     }
  260.  
  261.     public int getUnits() // method to get number of units
  262.     {
  263.         return units;
  264.     }
  265.  
  266.     public void setPrice(double each) // method to set price
  267.     {
  268.         price = each;
  269.     }
  270.  
  271.     public double getPrice() // method to get price
  272.     {
  273.         return price;
  274.     }
  275.  
  276.     public double calcValue() // method to set value
  277.     {
  278.         return units * price;
  279.     }
  280.  
  281. } // end class Product
  282.  
  283.  
  284. class ProductAdd extends Product
  285. {
  286.     private String feature; // variable for added feature
  287.  
  288.  
  289.     public ProductAdd(String name, int number, int unit, double each, String addFeat)
  290.     {
  291.         // call to superclass Product constructor
  292.         super(name, number, unit, each);
  293.  
  294.         feature = addFeat;
  295.     }// end constructor
  296.  
  297.     public void setFeature(String addFeat) // method to set added feature
  298.     {
  299.         feature = addFeat;
  300.     }
  301.  
  302.     public String getFeature() // method to get added feature
  303.     {
  304.         return feature;
  305.     }
  306.  
  307.     public double calcValueRstk() // method to set value and add restock fee
  308.     {
  309.         return units * price * 0.05;
  310.     }
  311.  
  312.     public String toString()
  313.     {
  314.         return String.format("Product: %s\nItem Number: %d\nIn Stock: %d\nPrice: $%.2f\nType: %s\nTotal Value of Stock: $%.2f\nRestock Cost: $%.2f\n\n\n",
  315.         getProdName(), getItmNumber(), getUnits(), getPrice(), getFeature(), calcValue(), calcValueRstk());
  316.     }
  317.  
  318.  
  319. } // end class ProductAdd
  320.  
Aug 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
109
by: zaidalin79 | last post by:
I have a java class that goes for another week or so, and I am going to fail if I can't figure out this simple program. I can't get anything to compile to at least get a few points... Here are the...
0
by: south622 | last post by:
I'm taking a beginning Java course and I'm stuck in week eight of a nine week course. If anyone could help me I would greatly appreciate it. This assignment was due yesterday and each day I go past...
4
nexcompac
by: nexcompac | last post by:
Ok, I posted a similar post but now need to jump back into it. Here is what I have been able to clean up. I am using textpad and jbuilder. Still getting used to the whole java world and I am...
9
by: xxplod | last post by:
I am suppose to modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including...
3
by: cblank | last post by:
I need some help if someone could help me. I know everyone is asking for help in java. But for some reason I'm the same as everyone else when it comes to programming in java. I have an inventory...
2
by: pinkf24 | last post by:
I cannot figure out how to add the following: Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform...
1
by: jcato77 | last post by:
I need help with a class project I'm working on, Below is my assignment and the code I have currently created. Assignment: Modify the Inventory Program by creating a subclass of the product class...
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
2
by: blitz1989 | last post by:
Hello all, I'm new to this forum and Java and having a alot of problems understanding this language. I am working on an invetory program part 4. The assignment requirements are listed but the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.