dionnejkelly / parrot-im

Automatically exported from code.google.com/p/parrot-im
0 stars 0 forks source link

Remove profile #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In the main menu create a profile
2. Click Remove profile

What is the expected output? What do you see instead?
You should be able to delete any profile. 
Instead this error comes up:
Please use labels and text to provide additional information.

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: 
java.lang.String cannot be cast to model.dataType.ProfileData
    at view.mainwindow.SignInPanel$removeProfileListener.mouseClicked
(SignInPanel.java:435)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown 
Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown 
Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown 
Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Original issue reported on code.google.com by rma...@gmail.com on 23 Jul 2009 at 10:03

GoogleCodeExporter commented 8 years ago
That's also happen when you click manage

Original comment by rma...@gmail.com on 23 Jul 2009 at 10:04

GoogleCodeExporter commented 8 years ago
Never mind, I did that when I didn't select any profile.
But I think it's better for the interface if a window comes up telling the user 
to 
select a profile from the list above, or something like that.

Original comment by rma...@gmail.com on 23 Jul 2009 at 10:09

GoogleCodeExporter commented 8 years ago
I think I disable the remove and manage button for the first selection of the
JComboBox. They are light gray right?

Original comment by shichan....@gmail.com on 24 Jul 2009 at 3:23