View Single Post
  #4 (permalink)  
Old 09-01-2008, 06:45 AM
booter4429 booter4429 is offline
Member
 
Join Date: Jul 2008
Posts: 20
booter4429 is on a distinguished road
Ok In the Modify class, I am getting some errors. Here is the code and the errors.

Code:
class ModifyHandler implements ActionListener { private Object title; private Object numItems; private Object inStock; public void actionPerformed(ActionEvent e){ if (title.getClass().equals("")) { JOptionPane.showMessageDialog(null, "Please Complete the Entry.","Not Going to Happen", JOptionPane.ERROR_MESSAGE); repaintGUI(); } if (numItems.getClass().equals("")) { JOptionPane.showMessageDialog(null, "Please Complete the Entry.","Not Going to Happen", JOptionPane.ERROR_MESSAGE); repaintGUI(); } try { } catch (Exception d) { JOptionPane.showMessageDialog(null, "Recheck Entry use numbers for price and quantity.","Not Going to Happen", JOptionPane.ERROR_MESSAGE); repaintGUI(); } String name; int number; double amount, price; name = title(); number = numItems(); amount = inStock(); price = unitPrice(); repaintGUI(); } private int numItems() { throw new UnsupportedOperationException("Not yet implemented"); } private double inStock() { throw new UnsupportedOperationException("Not yet implemented"); } private String title() { throw new UnsupportedOperationException("Not yet implemented"); } private double unitPrice() { throw new UnsupportedOperationException("Not yet implemented"); } private void repaintGUI() { throw new UnsupportedOperationException("Not yet implemented"); } }
And here are the errors

javaapplication52.InventoryGUI$ModifyHandler.actio nPerformed(Week9a.java:408)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6041)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3265)
at java.awt.Component.processEvent(Component.java:580 6)
at java.awt.Container.processEvent(Container.java:205 8)
at java.awt.Component.dispatchEventImpl(Component.jav a:4413)
at java.awt.Container.dispatchEventImpl(Container.jav a:2116)
at java.awt.Component.dispatchEvent(Component.java:42 43)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3916)
at java.awt.Container.dispatchEventImpl(Container.jav a:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440 )
at java.awt.Component.dispatchEvent(Component.java:42 43)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:121)


Thanks for any help.
Reply With Quote